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
| Field | Type | What it is |
|---|---|---|
| id (query)required | string | A catalog model id. |
Answer 200
An SVG badge.
The answer's fields are not named in the document.