API reference

API reference · Public

Embeddable SVG badge with one model's live price

GET/api/badge/priceNo key

Always 200. The billed price per 1M tokens in and out, as /pricing states it. An unknown id or an unpublished price degrades to a gray badge with fixed words; the caller's text is never drawn. Cached ten minutes.

Parameters

Path and query parameters
FieldTypeWhat it is
id (query)requiredstringA catalog model id.

Answer 200

An SVG badge.

The answer's fields are not named in the document.

Antimatter