TopLLM API and badges
Everything on TopLLM is available as JSON. No key, no sign up, CORS open to any origin. The same data powers every page here.
Endpoints
| Endpoint | Returns |
|---|---|
/api/v1/models.json | Every model: slug, name, provider, availability, prices, cached and batch prices, context, scores and variants. |
/api/v1/models/{slug}.json | One model with its full record and sources. |
/api/v1/pricing.json | Prices only, with the source and the date each one was checked. |
/api/v1/benchmarks.json | Benchmark definitions and every published result. |
/api/v1/changes.json | Recent launches and registry changes. |
/api/v1/sources.json | The data sources we pull from and when each last refreshed. |
/api/v1/rankings/{category}.json | A ranked list for overall, coding, reasoning, agents or open-source. |
curl -s https://topllm.dev/api/v1/models/gemini-4-neon.json
The older /data/* paths also serve exports.
Badges
An SVG badge with the model's live rank or score.
[](https://topllm.dev/models/gemini-4-neon)
<a href="https://topllm.dev/models/gemini-4-neon"><img src="https://topllm.dev/badge/gemini-4-neon.svg" alt="Gemini 4 Neon on TopLLM"></a>
Swap the slug for any model. Every model page shows its own slug in the address bar.
Citing TopLLM
When you quote a number, please cite "TopLLM" with the date and link to the page it came from, for example the cost per task index or a model page. Machine readable summaries for AI assistants are in llms.txt and llms-full.txt.
API questions
Do I need an API key?
No. The API is free, needs no key and allows requests from any origin. Please cache responses; the data changes a few times a day.
Can I use the data in my product?
Yes, under CC BY 4.0. Credit TopLLM with a link to topllm.dev.
How do I embed a badge?
Use the badge snippet below in a README or on your site. It shows the model's current rank or score and updates by itself.