Pricing

List pricing history for a (provider, model, tokenClass) triple

get/api/pricing/{provider}/{model}/{tokenClass}

Path parameters

provider'claude' | 'claude-managed' | 'codex' | 'pi' | 'opencode' | 'devin' | 'gemini' | 'acp' required
modelstring required
tokenClass'input' | 'cached_input' | 'output' | 'cache_write' | 'cache_write_1h' | 'web_search' | 'runtime_hour' | 'acu' required

Response

Pricing rows (latest first)

Changes

Changed in 3 of the 104 revisions of this API.14

    • added the new acp enum value to the // response property for the response status

      response-property-enum-value-added

    • added the new enum value acp to the path request parameter provider

      request-parameter-enum-value-added

    • added the media type application/json for the response with the status

      response-media-type-added

    • added the new enum value cache_write_1h to the path request parameter tokenClass

      request-parameter-enum-value-added

    • added the new enum value web_search to the path request parameter tokenClass

      request-parameter-enum-value-added