model-pricing

Update a model pricing entry

patch/admin/v1/model-pricing/{id}

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /admin/v1/model-pricing/{id}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Model pricing ID

Request body

cache_write_per_1m_tokensinteger nullable

Cost per 1M cache write tokens in microcents

cached_input_per_1m_tokensinteger nullable

Cost per 1M cached input tokens in microcents

input_per_1m_tokensinteger nullable

Cost per 1M input tokens in microcents

output_per_1m_tokensinteger nullable

Cost per 1M output tokens in microcents

per_1m_charactersinteger nullable

Cost per 1M characters in microcents (for TTS)

per_imageinteger nullable

Cost per image in microcents

per_requestinteger nullable

Cost per request in microcents

per_secondinteger nullable

Cost per second of audio in microcents (for transcription/translation)

reasoning_per_1m_tokensinteger nullable

Cost per 1M reasoning tokens in microcents

source'manual' | 'provider_api' | 'default'

Source of pricing data

Response

Model pricing updated

cache_write_per_1m_tokensinteger nullable

Cost per 1M cache write tokens in microcents

cached_input_per_1m_tokensinteger nullable

Cost per 1M cached input tokens in microcents

created_atstring date-time required
idstring uuid required
input_per_1m_tokensinteger required

Cost per 1M input tokens in microcents

modelstring required
output_per_1m_tokensinteger required

Cost per 1M output tokens in microcents

per_1m_charactersinteger nullable

Cost per 1M characters in microcents (for TTS)

per_imageinteger nullable

Cost per image in microcents

per_requestinteger nullable

Cost per request in microcents

per_secondinteger nullable

Cost per second of audio in microcents (for transcription/translation)

providerstring required
reasoning_per_1m_tokensinteger nullable

Cost per 1M reasoning tokens in microcents

source'manual' | 'provider_api' | 'default' required

Source of pricing data

updated_atstring date-time required

Changes

No recorded changes to this operation across all 16 revisions of this API.