OhMyGPT
Models

Get model historical stats

GET
/v1/models/{creator}/{model}/stats

Returns historical latency, availability, tool-call, structured-output and effective user pricing statistics for a specific model, in two units: auto counts each request that left the provider choice to the gateway by the result the caller received, and each provider counts every upstream attempt it was sent. Only rates, percentiles, shares and prices are published, never request or token counts. Each number is null until it rests on enough samples: rates and shares need at least 20 samples, means, percentiles and weighted prices at least 30.

Path Parameters

creator*string

Model creator namespace (e.g. openai, anthropic)

model*string

Model slug (e.g. gpt-4o, claude-sonnet-4)

Query Parameters

period?string

Historical stats window.

Default"30d"
Value in"7d""30d""90d"

Response Body

Successful response

application/json
  1. response
auto*

Every request for this model, whoever chose the provider, by the result the caller received. The gateway moves a failed request to another provider when it can, so a request succeeds when any provider serves it: these numbers are not an average of the providers and cannot be derived from them.

model_id*string
period*string
Value in"7d""30d""90d"
providers*array<>
Example Request
curl -X GET 'https://api.ohmygpt.com/v1/models/string/string/stats'
Example Response
{  "auto": {    "latency_ms": {      "p50": 0,      "p75": 0,      "p90": 0,      "p95": 0,      "p99": 0    },    "throughput_tokens_per_second": {      "p50": 0,      "p75": 0,      "p90": 0,      "p95": 0,      "p99": 0    },    "ttft_ms": {      "p50": 0,      "p75": 0,      "p90": 0,      "p95": 0,      "p99": 0    },    "avg_latency_ms": 0,    "effective_pricing": {      "cache_hit_rate": 0,      "credits_per_million_tokens": 0,      "discount_pct": 0,      "list_credits_per_million_tokens": 0    },    "structured_output_error_rate": 0,    "tool_call_error_rate": 0,    "uptime_pct": 0  },  "model_id": "string",  "period": "7d",  "providers": [    {      "latency_ms": {        "p50": 0,        "p75": 0,        "p90": 0,        "p95": 0,        "p99": 0      },      "throughput_tokens_per_second": {        "p50": 0,        "p75": 0,        "p90": 0,        "p95": 0,        "p99": 0      },      "ttft_ms": {        "p50": 0,        "p75": 0,        "p90": 0,        "p95": 0,        "p99": 0      },      "avg_latency_ms": 0,      "effective_pricing": {        "cache_hit_rate": 0,        "credits_per_million_tokens": 0,        "discount_pct": 0,        "list_credits_per_million_tokens": 0      },      "provider": "string",      "structured_output_error_rate": 0,      "token_share": 0,      "tool_call_error_rate": 0,      "uptime_daily": [        {          "date": "2019-08-24",          "uptime_pct": 0        }      ],      "uptime_pct": 0    }  ]}