For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pricing

List Pricing

get

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
skipintegerOptionalDefault: 0
limitinteger · min: 1 · max: 1000OptionalDefault: 100
Responses
200

Successful Response

application/json

Response model for model pricing.

cache_read_price_per_millionnumber · nullableRequired
cache_write_price_per_millionnumber · nullableRequired
created_atstringRequired
effective_atstringRequired
input_price_per_millionnumberRequired
kindstringRequired

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_keystringRequired
originstring · nullableRequired

Which writer set this row: config, api, seed or migration. Null before origins were recorded.

output_price_per_millionnumberRequired
price_per_requestnumber · nullableOptional

USD for each request, for a rate per request; null for any other unit.

unitstringRequired

What the rates are per: token for a model, request, image or character for a non-token endpoint.

updated_atstringRequired
get/api/v1/pricing
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 Pricing

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Body

Create a versioned per-model price, with optional cache and context tiers.

cache_read_price_per_millionnumber · nullableOptional

Price per 1M cached-input tokens

cache_write_price_per_millionnumber · nullableOptional

Price per 1M cache-write (creation) tokens

effective_atstring · date-time · nullableOptional

ISO 8601 datetime from which this price applies. Defaults to now if omitted.

input_price_per_millionnumberOptional

Price per 1M of the rate's unit: input tokens, requests, images or characters

kindstring · enum · nullableOptional

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.

Possible values:
model_keystringRequired

Model identifier in format 'provider:model', or a search or fetch instance's name for those kinds

output_price_per_millionnumberOptional

Price per 1M output tokens; unused by a rate per request or per image

price_per_requestnumber · nullableOptional

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.

unitstring · enumOptional

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.

Default: tokenPossible values:
Responses
200

Successful Response

application/json

Response model for model pricing.

cache_read_price_per_millionnumber · nullableRequired
cache_write_price_per_millionnumber · nullableRequired
created_atstringRequired
effective_atstringRequired
input_price_per_millionnumberRequired
kindstringRequired

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_keystringRequired
originstring · nullableRequired

Which writer set this row: config, api, seed or migration. Null before origins were recorded.

output_price_per_millionnumberRequired
price_per_requestnumber · nullableOptional

USD for each request, for a rate per request; null for any other unit.

unitstringRequired

What the rates are per: token for a model, request, image or character for a non-token endpoint.

updated_atstringRequired
post/api/v1/pricing
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 Current Pricing

get

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
skipintegerOptionalDefault: 0
limitinteger · min: 1 · max: 1000OptionalDefault: 100
Responses
200

Successful Response

application/json

One page of current prices, with the total number of priced keys of any kind.

countintegerRequired
get/api/v1/pricing/current
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"
    }
  ]
}

List Pricing Drift

get

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
limitinteger · min: 1 · max: 500OptionalDefault: 200
Responses
200

Successful Response

application/json

A stored deployment rate beside the default it shadows.

default_input_price_per_millionnumber · nullableRequired

What models.dev would meter this key at today. Null when the dataset does not know it.

default_output_price_per_millionnumber · nullableRequired
default_referencestring · nullableRequired

The models.dev entry the default came from.

effective_atstringRequired
input_delta_percentnumber · nullableRequired

(stored - default) / default, as a percentage.

input_price_per_millionnumberRequired
model_keystringRequired
originstring · nullableRequired
output_delta_percentnumber · nullableRequired
output_price_per_millionnumberRequired
unitstringRequired
get/api/v1/pricing/drift
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"
  }
]

Get Pending Pricing Refresh

get

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Responses
200

Successful Response

application/json

Reviewable summary of a pending models.dev refresh.

added_countintegerRequired
changed_countintegerRequired
changes_truncatedbooleanRequired
digeststringOptional

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.

Default: ""
fetched_atstring · date-timeRequired
needs_reviewbooleanOptional

True when the update is implausibly large; the scheduled auto policy leaves it pending.

Default: false
protected_model_countintegerRequired
removed_countintegerRequired
review_reasonstring · nullableOptional

Why the update needs review.

get/api/v1/pricing/refresh/pending
GET /api/v1/pricing/refresh/pending HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
200

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"
}

Reject Pricing Refresh

post

Discard a reviewed default-price snapshot without applying it.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
digeststring · nullableOptional

The digest of the previewed snapshot; 409 when the pending one differs.

Responses
204

Successful Response

No content

post/api/v1/pricing/refresh/reject
POST /api/v1/pricing/refresh/reject HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*

No content

List Pricing Snapshots

get

The accepted default-price snapshots, newest first.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Query parameters
limitinteger · min: 1 · max: 200OptionalDefault: 50
Responses
200

Successful Response

application/json

One accepted models.dev snapshot in the history.

accepted_atstring · date-timeRequired
accepted_bystringRequired

operator for a catalog update an operator ran, schedule for the auto policy.

idstringRequired
model_countintegerRequired
get/api/v1/pricing/snapshots
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

get

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
model_keystringRequired
Query parameters
as_ofstring · date-time · nullableOptional

ISO datetime for effective lookup

kindstring · enumOptional

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.

Default: modelPossible values:
Responses
200

Successful Response

application/json

Response model for model pricing.

cache_read_price_per_millionnumber · nullableRequired
cache_write_price_per_millionnumber · nullableRequired
created_atstringRequired
effective_atstringRequired
input_price_per_millionnumberRequired
kindstringRequired

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_keystringRequired
originstring · nullableRequired

Which writer set this row: config, api, seed or migration. Null before origins were recorded.

output_price_per_millionnumberRequired
price_per_requestnumber · nullableOptional

USD for each request, for a rate per request; null for any other unit.

unitstringRequired

What the rates are per: token for a model, request, image or character for a non-token endpoint.

updated_atstringRequired
get/api/v1/pricing/{model_key}
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

delete

Delete pricing entries for a model, or for a search or fetch instance.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
model_keystringRequired
Query parameters
effective_atstring · date-time · nullableOptional

ISO datetime identifying a specific pricing row to delete

kindstring · enumOptional

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.

Default: modelPossible values:
Responses
204

Successful Response

No content

delete/api/v1/pricing/{model_key}
DELETE /api/v1/pricing/{model_key} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*

No content

Get Pricing History

get

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
model_keystringRequired
Query parameters
kindstring · enumOptional

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.

Default: modelPossible values:
Responses
200

Successful Response

application/json

Response model for model pricing.

cache_read_price_per_millionnumber · nullableRequired
cache_write_price_per_millionnumber · nullableRequired
created_atstringRequired
effective_atstringRequired
input_price_per_millionnumberRequired
kindstringRequired

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_keystringRequired
originstring · nullableRequired

Which writer set this row: config, api, seed or migration. Null before origins were recorded.

output_price_per_millionnumberRequired
price_per_requestnumber · nullableOptional

USD for each request, for a rate per request; null for any other unit.

unitstringRequired

What the rates are per: token for a model, request, image or character for a non-token endpoint.

updated_atstringRequired
get/api/v1/pricing/{model_key}/history
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?