Treza · Schema

RunStatus

Artificial IntelligenceVideoGenerative MediaPlatformAutomation

Properties

Name Type Description
runId string
status string cancelled is a run stopped before it finished (cancel_run or the dashboard), or one Treza closed after its worker was lost.
version integer The published version that ran.
startedAt string
finishedAt string Present once the run has finished.
durationMs integer Present once the run has finished.
usage object Token counts summed over the run's model steps, and the provider cost when reported.
outputs object Values keyed by the output contract of the version that ran, present once the run has finished. Media URLs are returned verbatim; long text values are truncated.
View JSON Schema on GitHub

JSON Schema

trezalabs-com-run-status-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trezalabs-com/json-schema/trezalabs-com-run-status-schema.json",
  "title": "RunStatus",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trezalabs-com-openapi.json#/components/schemas/RunStatus",
  "type": "object",
  "properties": {
    "runId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "running",
        "success",
        "error",
        "partial",
        "cancelled"
      ],
      "description": "cancelled is a run stopped before it finished (cancel_run or the dashboard), or one Treza closed after its worker was lost."
    },
    "version": {
      "type": "integer",
      "description": "The published version that ran."
    },
    "startedAt": {
      "type": "string",
      "format": "date-time"
    },
    "finishedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Present once the run has finished."
    },
    "durationMs": {
      "type": "integer",
      "description": "Present once the run has finished."
    },
    "usage": {
      "type": "object",
      "description": "Token counts summed over the run's model steps, and the provider cost when reported.",
      "properties": {
        "prompt": {
          "type": "integer"
        },
        "completion": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        },
        "costUsd": {
          "type": "number",
          "description": "Provider cost in USD before markup (not the credits charged)."
        }
      }
    },
    "outputs": {
      "type": "object",
      "description": "Values keyed by the output contract of the version that ran, present once the run has finished. Media URLs are returned verbatim; long text values are truncated.",
      "additionalProperties": true
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/trezalabs-com-run-status"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.