{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oceantoken-ai/json-schema/oceantoken-ai-get-v1-usage-requestid-response-schema.json",
  "title": "GetV1UsageRequestidResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/oceantoken-ai-openapi-generated.yml#/components/schemas/GetV1UsageRequestidResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Request identifier."
    },
    "model": {
      "type": "string",
      "description": "Model used for the request."
    },
    "cost": {
      "type": "number",
      "description": "Cost in US dollars (four significant figures)."
    },
    "status": {
      "type": "string",
      "description": "Status of the request."
    },
    "usage": {
      "type": "object",
      "description": "Token usage details."
    },
    "usage.prompt_tokens": {
      "type": "integer",
      "description": "Number of prompt tokens."
    },
    "usage.completion_tokens": {
      "type": "integer",
      "description": "Number of completion tokens."
    },
    "usage.total_tokens": {
      "type": "integer",
      "description": "Total tokens used."
    },
    "started_at": {
      "type": "string",
      "description": "Timestamp when the request started."
    },
    "ended_at": {
      "type": "string",
      "description": "Timestamp when the request ended."
    },
    "duration_ms": {
      "type": "integer",
      "description": "Duration of the request in milliseconds."
    }
  }
}