Free LLM pricing API
Every number on this site is available as JSON. No key, no rate limit worth worrying about, CORS open to any origin. Licensed CC-BY - use it anywhere, just link back.
Endpoints
| Endpoint | Returns | Query parameters |
|---|---|---|
| /api/models | Every model with normalised pricing, context window, modalities and capabilities. | provider, free, open_weights, limit |
| /api/providers | The labs training the models, with model counts and official pricing links. | - |
| /api/gateways | Inference gateways and routers with category, free tier and compatibility. | category |
Example
curl "https://www.getsnippets.ai/api/models?provider=anthropic&limit=5"
{
"meta": {
"count": 5,
"currency": "USD",
"unit": "per 1,000,000 tokens",
"blendWeights": { "input": 0.75, "output": 0.25 },
"license": "CC-BY-4.0"
},
"data": [ { "id": "anthropic/claude-...", "price": { ... } } ]
}Units and conventions
- • All prices are US dollars per 1,000,000 tokens.
- •
blendedPerMTokweights input at 75% and output at 25%. - •
nullmeans the figure is not published, never zero. - •
meta.staleis true when upstream was unreachable and a snapshot was served.
See the methodology for where each field comes from and how often it refreshes.