pricing

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.

post/api/v1/pricing

Request

  • The document declares no server URL.
  • Auth: one of:
    • API key in header Otari-Key
    • API key in header x-api-key

Request body

cache_read_price_per_millionnumber nullable

Price per 1M cached-input tokens

cache_write_1h_price_per_millionnumber nullable

Price per 1M Anthropic 1-hour cache-write tokens

cache_write_price_per_millionnumber nullable

Price per 1M cache-write (creation) tokens

effective_atstring date-time nullable

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

input_price_per_millionnumber required

Price per 1M input tokens

model_keystring required

Model identifier in format 'provider:model'

output_price_per_millionnumber required

Price per 1M output tokens

unit'tokens' | 'requests' | 'images'

What the rates are per: 'tokens' for a model, 'requests' for a gateway-run tool, a moderation call, or a completion model billed per call (USD per million requests), 'images' for image generation.

Response

Successful Response

cache_read_price_per_millionnumber nullable required
cache_write_1h_price_per_millionnumber nullable required
cache_write_price_per_millionnumber nullable required
created_atstring required
effective_atstring required
input_price_per_millionnumber required
model_keystring required
originstring nullable required

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

output_price_per_millionnumber required
unitstring required

What the rates are per: tokens, requests, or images.

updated_atstring required

Changes

    • info

      added the optional property to the response with the status

    • info

      added the new optional request property

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status