providers

Get aggregated statistics for a specific provider.

Returns current metrics including latency percentiles, error counts, token usage, and costs for the specified provider.

get/admin/v1/providers/{provider_name}/stats

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /admin/v1/providers/{provider_name}/stats
  • Auth: HTTP bearer

Path parameters

provider_namestring required

Provider name

Response

Stats for the provider

avg_latency_msnumber double nullable

Average latency in milliseconds

error_countinteger required

Total number of error responses (status != success)

errors_by_statusobject

Error counts broken down by HTTP status code

input_tokensinteger required

Total input tokens consumed

last_updatedstring date-time required

When these stats were last updated

output_tokensinteger required

Total output tokens generated

p50_latency_msnumber double nullable

50th percentile latency in milliseconds

p95_latency_msnumber double nullable

95th percentile latency in milliseconds

p99_latency_msnumber double nullable

99th percentile latency in milliseconds

providerstring required

Provider name

request_countinteger required

Total number of requests

total_cost_microcentsinteger required

Total cost in microcents

Changes

No recorded changes to this operation across all 1 revision of this API.