Skip to main content
GET
Get latency, cost and tokens per version for a product

Authorizations

Authorization
string
header
required

API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....

Query Parameters

productId
string
required

The product to read

Minimum string length: 1
versionIds
string[]

Filter by version IDs

testIds
string[]

Filter by test IDs

metricIds
string[]

Accepted for parity with GET /analytics; does not narrow this response.

specificationIds
string[]

Accepted for parity with GET /analytics; does not narrow this response.

languages
string[]

Filter by language codes

from
string

Start date for filtering (epoch milliseconds). Ranges wider than 1830 days (5 years) are rejected with 400.

to
string

End date for filtering (epoch milliseconds)

isProduction
boolean

When set, returns only production (true) or only development (false) data. Omit to include both.

Response

The inference data of the product

groups
object[]
required

The measures per test type, as groups[].inferenceResults on GET /analytics

averages
object[]
required

The measures pooled over the test types, as averages.inferenceResults on GET /analytics: per version, the unweighted mean of the test-type values