latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-21163196628.8 KB

2d6e4912e230

organization-pricing

Replace Organization Pricing

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.

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

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 input tokens

output_price_per_millionnumber required

Price per 1M output tokens

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