model-pricing

Bulk upsert model pricing entries

post/admin/v1/model-pricing/bulk

Request

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

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

Cost per 1M input tokens in microcents

modelstring required
output_per_1m_tokensinteger

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'

Source of pricing data

Response

Bulk upsert completed

countinteger required

Number of entries upserted

Changes

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