Free JSON API

LLM pricing JSON API

Free, no auth, CORS-open

Current LLM API prices as JSON — embed live pricing in your own tool. No key, no rate-limit registration (fair-use throttled per IP). If you use it, a link back to aiArch LLM Pricing is appreciated — that is the whole ask.

Endpoints

Base: https://aiarch.dev/api/pricing/v1

  • GET /models — all current prices; ?provider=anthropic to filter.
  • GET /providers — tracked providers.
  • GET /models/{id}/history — a model's price history (the versioned records).

Example

curl https://aiarch.dev/api/pricing/v1/models?provider=anthropic
{
  "data": [
    { "id": "claude-sonnet-5", "name": "Claude Sonnet 5", "provider": "anthropic",
      "input_per_mtok": 3, "output_per_mtok": 15, "cached_input_per_mtok": 0.3,
      "context_window": 1000000, "source_url": "https://platform.claude.com/...",
      "verified": "2026-07-01" }
  ],
  "generated_at": 1753000000000,
  "attribution": "Data by aiArch — https://aiarch.dev/llm-pricing"
}

Prices are USD per 1M tokens. Every record carries its source_url; Claude rates are from Anthropic's own pricing page.

Terms

Provided as-is, no warranty; prices may lag the provider's own page — verify before relying on them for billing. Attribution link requested, not required. Fair-use rate limits apply; heavy or commercial use, get in touch: hello@aiarch.dev.

Learn to build on these models like an architect.