{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xpay-sh/json-schema/xpay-sh-run-result-schema.json",
  "title": "RunResult",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xpay-sh-openapi.json#/components/schemas/RunResult",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "runId": {
      "type": "string"
    },
    "output": {
      "type": "string",
      "description": "RDA output (format varies by type)"
    },
    "cost": {
      "type": "number",
      "description": "Amount charged in USDC"
    },
    "duration": {
      "type": "integer",
      "description": "Execution time in milliseconds"
    },
    "modelId": {
      "type": "string"
    },
    "usage": {
      "type": "object",
      "properties": {
        "prompt_tokens": {
          "type": "integer"
        },
        "completion_tokens": {
          "type": "integer"
        },
        "total_tokens": {
          "type": "integer"
        }
      }
    }
  }
}