Skip to main content
GET
What a window of one model's requests would have cost on other models

Authorizations

Authorization
string
header
required

Gateway API key (imp-rt-...) from POST /v1/accounts or /v1/keys.

Query Parameters

model
string
required

The text model whose requests are repriced

last
integer
default:100

How many of the newest requests make up the window

Required range: x <= 1000
since
string<date-time>

Only requests at or after this ISO timestamp

candidates
string

Comma-separated model ids to price; every text model when absent

header
string

Only requests sent with this header set to exactly this value, as name:value. Tag requests with a header of your own to pick them out later; header names match in any case

Example:

"x-feature:checkout"

Response

The window (requests, from, to, tokens), its actual cost, one cost per candidate, cheapest first, and a sample to verify with: size (the square root of the window, 2 to 50) and request_ids, every replayable request in random order, to read size at a time as disjoint samples for POST /v1/requests/{id}/replay