TokenLab

Core

Get Model Pricing

Get the prices of one model, with the price tiers behind them

GET
/v1/models/{model}/pricing

This public endpoint does not require an API key. It returns pricing only. For request fields and supported operations, use Get a Model.

Path Parameter

modelstringpathrequired

Model ID, such as gpt-5.6-terra.

Response

modelstring
Model ID.
pricing_unitstring
Billing unit, such as per_token.
deliveryAvailabilityobject

Whether the model has verified and official supply, and the same for each operation.

scalar_pricingobject

The Verified price in USD: input_per_1m, output_per_1m, per_request, and is_lock_price. The price fields are null when deliveryAvailability.verified is false; such a model is billed at the Official price.

official_scalar_pricingobject

The Official price in the same shape. Requests that Official delivers are billed at this price.

has_complex_pricingboolean

true when the price depends on more than one rate, such as input size, resolution, or duration. Read pricing_details and pricing_summary then.

pricing_summaryobject | null

The lowest and highest price of the model.

pricing_detailsobject | null

The price tiers: each entry lists the conditions it applies to and its prices.

supported_operationsstring[]
Operations the prices cover.

An unknown or unavailable model returns 404 model_not_found.

Request

cURL
curl "https://api.tokenlab.sh/v1/models/text-embedding-3-small/pricing"

Response

Response
{
  "model": "text-embedding-3-small",
  "pricing_unit": "per_token",
  "has_complex_pricing": false,
  "supported_operations": ["embedding"],
  "deliveryAvailability": { "verified": false, "official": true },
  "scalar_pricing": {
    "input_per_1m": null,
    "output_per_1m": null,
    "per_request": null,
    "is_lock_price": false,
    "currency": "USD"
  },
  "official_scalar_pricing": {
    "input_per_1m": "0.02",
    "output_per_1m": "0",
    "per_request": null,
    "is_lock_price": false,
    "currency": "USD"
  }
}

The example shows the shape of a response. Prices change; read the live response.

Path Parameters

model*string

The model ID

Response

application/json

application/json

application/json