Skip to content

Public Model Pricing API

GET /api/provider/pricing requires no login. It publishes token prices for currently visible groups and models to compatible pricing aggregators.

Request

bash
curl https://quotarouter.ai/api/provider/pricing

Response shape

json
{
  "schema_version": "1.0",
  "success": true,
  "message": "",
  "data": {
    "currency": "CNY",
    "price_basis_currency": "USD",
    "price_unit": "per_1m_tokens",
    "site_name": "QuotaAPI",
    "site_domain": "quotarouter.ai",
    "updated_at": "2026-08-06T00:00:00Z",
    "display_fx": {
      "base_currency": "USD",
      "quote_currency": "CNY",
      "rate": 7.2,
      "source": "cached",
      "updated_at": "2026-08-06T00:00:00Z",
      "expires_at": "2026-08-06T01:00:00Z",
      "available": true
    },
    "models": [{
      "model_name": "example-model",
      "group_name": "Standard",
      "input_price": 1.0,
      "output_price": 4.0,
      "cache_input_price": 0.1,
      "cache_create_price": 1.25,
      "enabled": true,
      "note": ""
    }]
  }
}

Timestamps and prices are structural examples. Use the live response for current values.

Currency and unit

  • currency is fixed to CNY for compatibility with the external pricing schema.
  • price_basis_currency is fixed to USD; model price numbers remain USD-based and are not converted by FX.
  • price_unit is fixed to per_1m_tokens; all four price fields are per one million tokens.
  • display_fx supplies a USD-to-CNY display snapshot and does not change model prices.

Groups and filtering

  • group_name is the name of the ordinary group associated with the model.
  • The effective model price already includes the group multiplier.
  • Exclusive-group pricing is omitted completely and never appears in models.
  • Disabled channels, missing effective prices, and pricing-only mapping entries can also be absent.

Caching

Cache the response according to updated_at and your use case instead of polling continuously. When display_fx.available=false, USD-based prices remain usable, but clients should not calculate a CNY display value.

QuotaAPI is an AI API relay service for developers and teams.