Pricing

Get product pricing

Returns pricing entries for a single product. Most products return standard rate entries with fields like rate, unit, country_iso, direction, and tiers. Inference products return model-specific fields (model, input_rate, output_rate, cached_input_rate) with tiered pricing. Some products use rate decks (pricing_type: rate_deck) where rates are determined dynamically.

get/pricing/products/{slug}

Path parameters

slugstring required

Product slug from the catalog listing.

Query parameters

page[number]integer

Page number (1-based).

page[size]integer

Number of items per page (max 100).

filter[country_iso]string nullable

Two-letter ISO 3166-1 alpha-2 country code (uppercase, e.g. US) to filter pricing to a single country.

Response

Product pricing entries

Changes

Changed in 2 of the 61 revisions of this API.24

    • deleted the query request parameter page_number

      request-parameter-removed

    • deleted the query request parameter page_size

      request-parameter-removed

    • added the new optional query request parameter filter[country_iso]

      new-optional-request-parameter

    • added the new optional query request parameter page[number]

      new-optional-request-parameter

    • added the new optional query request parameter page[size]

      new-optional-request-parameter

    This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added