Skip to content

Prices endpoints

List price overrides

Ordered by provider, pattern, start time and tier.

Parameter In Type Required Notes
org_id path string (uuid) yes
Status Description Body
200 Successful Response application/json: array of PriceOverrideOut
422 Validation Error application/json: HTTPValidationError

POST /api/v1/orgs/{org_id}/price-overrides

Section titled “POST /api/v1/orgs/{org_id}/price-overrides”

Add a price override

Rates are USD per million tokens. effective_from defaults to now.

The pattern matches a model exactly or with a snapshot suffix, like the seed prices. The optional cache-write rates fall back to the input rate; min_prompt_tokens (default 0) makes the override one tier of the model, applied to prompts of at least that many tokens. 409 PRICE_OVERRIDE_EXISTS when the organization already has one for the same provider, pattern, start time and tier.

Parameter In Type Required Notes
org_id path string (uuid) yes

Request body (application/json, required): PriceOverrideCreate

Status Description Body
201 Successful Response application/json: PriceOverrideOut
422 Validation Error application/json: HTTPValidationError

DELETE /api/v1/orgs/{org_id}/price-overrides/{override_id}

Section titled “DELETE /api/v1/orgs/{org_id}/price-overrides/{override_id}”

Delete a price override

Spans ingested from now on fall back to the next price; stored costs are not rewritten.

Parameter In Type Required Notes
org_id path string (uuid) yes
override_id path string (uuid) yes
Status Description Body
204 Successful Response none
422 Validation Error application/json: HTTPValidationError

Get Prices

The price table the server computes costs from. Any signed-in user, session or token.

Status Description Body
200 Successful Response application/json: array of PriceOut

GET /api/v1/projects/{project_id}/unpriced-models

Section titled “GET /api/v1/projects/{project_id}/unpriced-models”

Get Unpriced Models

Models with LLM usage in the window whose calls got no cost for want of a price.

Parameter In Type Required Notes
project_id path string (uuid) yes
from query string (date-time) or null no
to query string (date-time) or null no
Status Description Body
200 Successful Response application/json: array of UnpricedModelOut
422 Validation Error application/json: HTTPValidationError