Pricing
List every stored price version, of every kind.
A row's kind says whether it prices a model or a search or fetch instance. A hosted provider restricted to another organization than the caller's is left out, as it is from the catalog.
Enter your API key here (sent as Otari-Key header).
0100Successful Response
Response model for model pricing.
What the row prices: 'model' (the default), or 'search' or 'fetch' for a search or fetch instance, keyed by the instance's name and priced per call. Only the deployment operator sets a search or fetch rate.
Which writer set this row: config, api, seed or migration. Null before origins were recorded.
USD for each request, for a rate per request; null for any other unit.
What the rates are per: token for a model, request, image or character for a non-token endpoint.
Validation Error
GET /api/v1/pricing HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
[
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"created_at": "text",
"effective_at": "text",
"input_price_per_million": 1,
"kind": "text",
"model_key": "text",
"origin": "text",
"output_price_per_million": 1,
"price_per_request": 1,
"pricing_tiers": [
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"input_price_per_million": 1,
"min_input_tokens": 1,
"output_price_per_million": 1
}
],
"rates": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"unit": "text",
"updated_at": "text"
}
]Set or update pricing for a model.
Rejects an alias or a routing policy: pricing, budgets, and usage all key on the model a request resolves to, so a row stored under either name would never be read.
Enter your API key here (sent as Otari-Key header).
Create a versioned per-model price, with optional cache and context tiers.
Price per 1M cached-input tokens
Price per 1M cache-write (creation) tokens
ISO 8601 datetime from which this price applies. Defaults to now if omitted.
Price per 1M of the rate's unit: input tokens, requests, images or characters
What the row prices: 'model' (the default), or 'search' or 'fetch' for a search or fetch instance, keyed by the instance's name and priced per call. Only the deployment operator sets a search or fetch rate.
Model identifier in format 'provider:model', or a search or fetch instance's name for those kinds
Price per 1M output tokens; unused by a rate per request or per image
USD for each request, whatever it uses: a completion model billed per call, such as Exa's or Liner's answers. Shorthand for unit 'request' with input_price_per_million at a million times this; not combined with token prices.
What the rates are per: 'token' for a model, 'request' for a gateway-run tool, a moderation call, or a completion model billed per call, 'image' for image generation, 'character' for speech. Every rate is USD per million of its unit. A rate in a unit that has no meter yet is stored and prices nothing. The plural names 'tokens', 'requests' and 'images' are still read for one release.
tokenPossible values: Successful Response
Response model for model pricing.
What the row prices: 'model' (the default), or 'search' or 'fetch' for a search or fetch instance, keyed by the instance's name and priced per call. Only the deployment operator sets a search or fetch rate.
Which writer set this row: config, api, seed or migration. Null before origins were recorded.
USD for each request, for a rate per request; null for any other unit.
What the rates are per: token for a model, request, image or character for a non-token endpoint.
Validation Error
POST /api/v1/pricing HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 647
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"effective_at": "2026-01-01T00:00:00.000Z",
"input_price_per_million": 1,
"kind": "model",
"model_key": "text",
"output_price_per_million": 1,
"price_per_request": 1,
"pricing_tiers": [
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"input_price_per_million": 1,
"min_input_tokens": 1,
"output_price_per_million": 1
}
],
"rates": {
"multipliers": [
{
"factor": 1,
"when": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"web_search": {
"cache": "[Circular Reference]",
"overrides": [
"[Circular Reference]"
],
"price": 1,
"reasoning": 1,
"unit": "token"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"unit": "token"
}{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"created_at": "text",
"effective_at": "text",
"input_price_per_million": 1,
"kind": "text",
"model_key": "text",
"origin": "text",
"output_price_per_million": 1,
"price_per_request": 1,
"pricing_tiers": [
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"input_price_per_million": 1,
"min_input_tokens": 1,
"output_price_per_million": 1
}
],
"rates": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"unit": "text",
"updated_at": "text"
}List the rate each priced key is metered at, one row per kind and key.
Listing prices answers the stored history, one row per effective_at, so a page of that is a page of revisions rather than a page of keys. This answers one row per key: the newest rate that has taken effect, or the earliest scheduled rate for a key that has none yet. Every kind is returned, a row's kind telling a model's price from a search or fetch instance's, and count is the number of priced keys of any kind, so a caller can page without reading the collection to learn how long it is. A hosted provider restricted to another organization than the caller's is left out of both.
Enter your API key here (sent as Otari-Key header).
0100Successful Response
One page of current prices, with the total number of priced keys of any kind.
Validation Error
GET /api/v1/pricing/current HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"count": 1,
"data": [
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"created_at": "text",
"effective_at": "text",
"input_price_per_million": 1,
"kind": "text",
"model_key": "text",
"origin": "text",
"output_price_per_million": 1,
"price_per_request": 1,
"pricing_tiers": [
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"input_price_per_million": 1,
"min_input_tokens": 1,
"output_price_per_million": 1
}
],
"rates": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"unit": "text",
"updated_at": "text"
}
]
}Every stored deployment rate in force today, beside today's default for it.
A stored row shadows the models.dev default silently and forever, whether it was a deliberate override or a copy of a then-current default. This is what makes the difference visible: a row that matches the default is a row that could be deleted, and a row far from it is one worth a second look. Tool rows (otari:) are per request and have no default to drift from, so they are left out.
Enter your API key here (sent as Otari-Key header).
200Successful Response
A stored deployment rate beside the default it shadows.
What models.dev would meter this key at today. Null when the dataset does not know it.
The models.dev entry the default came from.
(stored - default) / default, as a percentage.
Validation Error
GET /api/v1/pricing/drift HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
[
{
"default_input_price_per_million": 1,
"default_output_price_per_million": 1,
"default_reference": "text",
"effective_at": "text",
"input_delta_percent": 1,
"input_price_per_million": 1,
"model_key": "text",
"origin": "text",
"output_delta_percent": 1,
"output_price_per_million": 1,
"unit": "text"
}
]The update the scheduled refresh has left waiting for review, if any.
What the dashboard's notice reads. 404 when nothing is pending, so a page can ask on load without treating the common case as an error banner.
Enter your API key here (sent as Otari-Key header).
Successful Response
Reviewable summary of a pending models.dev refresh.
Identity of the pending snapshot, to act on exactly this one: send it as digest to POST /hosted-providers/catalog-update to apply it, or to POST /pricing/refresh/reject to discard it.
""True when the update is implausibly large; the scheduled auto policy leaves it pending.
falseWhy the update needs review.
GET /api/v1/pricing/refresh/pending HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
Successful Response
{
"added_count": 1,
"changed_count": 1,
"changes": [
{
"change": "text",
"model_key": "text"
}
],
"changes_truncated": true,
"digest": "",
"fetched_at": "2026-01-01T00:00:00.000Z",
"needs_review": false,
"protected_model_count": 1,
"removed_count": 1,
"review_reason": "text"
}Discard a reviewed default-price snapshot without applying it.
Enter your API key here (sent as Otari-Key header).
The digest of the previewed snapshot; 409 when the pending one differs.
Successful Response
No content
Validation Error
POST /api/v1/pricing/refresh/reject HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
No content
The accepted default-price snapshots, newest first.
Enter your API key here (sent as Otari-Key header).
50Successful Response
One accepted models.dev snapshot in the history.
operator for a catalog update an operator ran, schedule for the auto policy.
Validation Error
GET /api/v1/pricing/snapshots HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
[
{
"accepted_at": "2026-01-01T00:00:00.000Z",
"accepted_by": "text",
"id": "text",
"model_count": 1
}
]Get pricing for a specific model, or a search or fetch instance, as of a timestamp.
A 404 for a model of a hosted provider restricted to another organization than the caller's.
Enter your API key here (sent as Otari-Key header).
ISO datetime for effective lookup
What the row prices: 'model' (the default), or 'search' or 'fetch' for a search or fetch instance, keyed by the instance's name and priced per call. Only the deployment operator sets a search or fetch rate.
modelPossible values: Successful Response
Response model for model pricing.
What the row prices: 'model' (the default), or 'search' or 'fetch' for a search or fetch instance, keyed by the instance's name and priced per call. Only the deployment operator sets a search or fetch rate.
Which writer set this row: config, api, seed or migration. Null before origins were recorded.
USD for each request, for a rate per request; null for any other unit.
What the rates are per: token for a model, request, image or character for a non-token endpoint.
Nothing prices the model, or its hosted provider is restricted to another organization.
Validation Error
GET /api/v1/pricing/{model_key} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"created_at": "text",
"effective_at": "text",
"input_price_per_million": 1,
"kind": "text",
"model_key": "text",
"origin": "text",
"output_price_per_million": 1,
"price_per_request": 1,
"pricing_tiers": [
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"input_price_per_million": 1,
"min_input_tokens": 1,
"output_price_per_million": 1
}
],
"rates": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"unit": "text",
"updated_at": "text"
}Delete pricing entries for a model, or for a search or fetch instance.
Enter your API key here (sent as Otari-Key header).
ISO datetime identifying a specific pricing row to delete
What the row prices: 'model' (the default), or 'search' or 'fetch' for a search or fetch instance, keyed by the instance's name and priced per call. Only the deployment operator sets a search or fetch rate.
modelPossible values: Successful Response
No content
Validation Error
DELETE /api/v1/pricing/{model_key} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
No content
Return the full pricing history for a model, or for a search or fetch instance.
A 404 for a model of a hosted provider restricted to another organization than the caller's.
Enter your API key here (sent as Otari-Key header).
What the row prices: 'model' (the default), or 'search' or 'fetch' for a search or fetch instance, keyed by the instance's name and priced per call. Only the deployment operator sets a search or fetch rate.
modelPossible values: Successful Response
Response model for model pricing.
What the row prices: 'model' (the default), or 'search' or 'fetch' for a search or fetch instance, keyed by the instance's name and priced per call. Only the deployment operator sets a search or fetch rate.
Which writer set this row: config, api, seed or migration. Null before origins were recorded.
USD for each request, for a rate per request; null for any other unit.
What the rates are per: token for a model, request, image or character for a non-token endpoint.
Nothing prices the model, or its hosted provider is restricted to another organization.
Validation Error
GET /api/v1/pricing/{model_key}/history HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
[
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"created_at": "text",
"effective_at": "text",
"input_price_per_million": 1,
"kind": "text",
"model_key": "text",
"origin": "text",
"output_price_per_million": 1,
"price_per_request": 1,
"pricing_tiers": [
{
"cache_read_price_per_million": 1,
"cache_write_price_per_million": 1,
"input_price_per_million": 1,
"min_input_tokens": 1,
"output_price_per_million": 1
}
],
"rates": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"unit": "text",
"updated_at": "text"
}
]Last updated
Was this helpful?
