| Attribute | Default | Description |
|---|---|---|
| data-models | (all) | Comma-separated model names to display. Omit to show all models from all providers. |
| data-provider | (all) | Filter to a single provider (e.g. openai, anthropic). Ignored when data-models is set. |
| data-theme | dark | dark or light |
| data-layout | table | table for a full pricing table, compact for a card grid. |
| data-refresh | 300 | Seconds between auto-refresh. Set to 0 to disable. |
| data-server | (auto) | Override the server origin. Defaults to the hostname from which widget.js was loaded. |
The widget fetches from a public endpoint — no API key required.
{
"models": [
{
"model_name": "gpt-4o",
"provider": "openai",
"input_per_1m_usd": 2.5,
"output_per_1m_usd": 10.0,
"context_window": 128000
}
],
"total": 1,
"updated_at": "2026-03-09T12:00:00+00:00"
}