Skip to content
LLMs

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

Available API endpoints
EndpointReturnsQuery parameters
/api/modelsEvery model with normalised pricing, context window, modalities and capabilities.provider, free, open_weights, limit
/api/providersThe labs training the models, with model counts and official pricing links.-
/api/gatewaysInference 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.
  • blendedPerMTok weights input at 75% and output at 25%.
  • null means the figure is not published, never zero.
  • meta.stale is true when upstream was unreachable and a snapshot was served.

See the methodology for where each field comes from and how often it refreshes.