organization-pricing

Replace Organization Pricing

Changed on

Replace an override's rates and period.

Future requests in the period price at the new rate; usage already settled keeps the cost it was billed, because a settled cost is stored on the usage row rather than recomputed.

Refused with a 403 on the same deployment-supplied-model rule the create path carries, so a row stored before that rule existed cannot be edited into a rate nobody could create today.

put/api/v1/organizations/me/pricing/{pricing_id}

Request

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

Path parameters

pricing_idstring uuid required

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_fromstring date-time required

ISO 8601 datetime from which this rate applies, inclusive. Required on a replacement, so an omitted value cannot silently move a stored period to the present.

effective_tostring date-time nullable

ISO 8601 datetime at which this rate stops applying, exclusive. Null leaves it open ended. Because the end is exclusive, the next period may begin at exactly this instant without overlapping.

input_price_per_millionnumber required

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

output_price_per_millionnumber required

Price per 1M output tokens; unused by a rate in requests or images

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

What the rates are per: tokens for a model, requests or images for a non-token endpoint, each priced per million. A completion model priced per requests is charged one request per successful call.

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 date-time required
effective_fromstring date-time required
effective_tostring date-time nullable required
idstring uuid required
input_price_per_millionnumber required
model_keystring required
organization_idstring uuid required
output_price_per_millionnumber required
unitstring required
updated_atstring date-time required

Changes