TokenLab

Core

Get Pricing

Get pricing information for models

GET
/v1/pricing

This public endpoint does not require an API key.

Overview

Return current public model prices.

For complex billing details, see Get a Model.

Query Parameters

providerstringquery

Optional provider filter such as openai, anthropic, or google.

tagstringquery

Optional model tag filter such as chat, image, video, embedding, or translation.

Response

objectstring

Always pricing.

updated_atstring

ISO timestamp when the current public prices were published.

currencystring

Always USD.

dataarray

Array of pricing entries. Each item includes model, provider, is_lock_price, capabilities, aliases, and the public scalar or structured pricing summary fields returned by the interactive schema above.

Request

curl "https://api.tokenlab.sh/v1/pricing?provider=openai&tag=chat"

Response

Response
{
  "object": "pricing",
  "updated_at": "2026-04-20T00:00:00.000Z",
  "currency": "USD",
  "data": [
    {
      "model": "gpt-4o",
      "provider": "openai",
      "is_lock_price": false,
      "input_per_1m_tokens": "2.50",
      "output_per_1m_tokens": "10.00",
      "capabilities": ["chat"],
      "aliases": ["gpt-4o-latest"]
    }
  ]
}

Complex pricing entries may also include lock_price_per_request, has_complex_pricing, supported_operations, and pricing_summary.

Authorization

BearerAuth
AuthorizationBearer <token>

API Key authentication. Create or manage API keys in Dashboard > API > API Keys.

In: header

Query Parameters

provider?string

Filter by provider ID.

tag?string

Filter by model tag.

Response

application/json

application/json

application/json

application/json