{"uid":"cap_MOFOtVsoaRbVfcWzd95CR","slug":"llm-api-pricing-lookup-5c22287f","name":"LLM API Pricing Lookup","description":"LLM API pricing lookup: USD per 1M input, output and cached-input tokens plus context window for ~3,300 models (OpenAI GPT, Anthropic Claude, Google Gemini, DeepSeek, Llama, Mistral, Qwen, xAI ...) across providers (direct, Azure, Bedrock, Vertex, Together, Fireworks ...). Filter by model and provider; sorted by input price.","url":"https://fx-reference-rates.regnotes.workers.dev/v1/ai/llm-prices?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["model"],"properties":{"limit":{"type":"string","pattern":"^\\d{1,3}$"},"model":{"type":"string","minLength":2},"provider":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"models":[{"mode":"chat","model":"claude-sonnet-4-5","provider":"anthropic","max_input_tokens":200000,"input_usd_per_mtok":3,"output_usd_per_mtok":15,"cache_read_usd_per_mtok":0.3}],"matched":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tcXLwhI9zEh2LQqac_vVF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns USD pricing per 1M input, output, and cached-input tokens plus context window size for ~3,300 LLM models across providers like OpenAI, Anthropic, Google, Azure, Bedrock, and more.","exampleAgentPrompt":"What are the input, output, and cached-input prices per million tokens for claude-sonnet-4-5 on Anthropic direct, and what's its context window size?","exampleUseCases":[{"title":"Cost comparison before model selection","prompt":"I'm picking an LLM for my summarization pipeline — can you pull the input and output prices per million tokens for gpt-4o across OpenAI direct, Azure, and any other providers that carry it?"},{"title":"Budget estimation for cached context workloads","prompt":"We're building a RAG system and expect heavy cache hits — what's the cached-input price per million tokens for Claude 3.5 Sonnet on Anthropic, and how does that compare to Bedrock?"},{"title":"Cheapest large-context model discovery","prompt":"I need a model with at least 128k context — can you find the five cheapest options by input price per million tokens, sorted lowest first?"}],"resultDescription":"A JSON object containing a 'models' array where each entry includes the model name, provider, mode (e.g. chat), max_input_tokens (context window), input_usd_per_mtok, output_usd_per_mtok, and cache_read_usd_per_mtok. Also includes a 'matched' count of results returned.","failureModes":["Model name not found — returns empty models array with matched: 0","Invalid limit format (non-numeric or >3 digits) — schema validation error","Unknown provider string — returns empty results rather than an error","No query parameters provided — may return unfiltered or error response","Rate limiting or payment failure via x402 protocol — request blocked"],"whenToPreferThis":"Choose this endpoint when you need structured, up-to-date LLM token pricing across a wide range of models and hosting providers (OpenAI, Anthropic, Azure, Bedrock, Vertex, Together, Fireworks, etc.) in a single call. It covers ~3,300 models and is ideal for cost estimation, provider comparison, or budget optimization workflows. Prefer it over manual web scraping or provider-specific pricing pages when you need machine-readable, filterable data in an agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:05:06.243Z","isFirstParty":false,"canonicalSlug":"llm-api-pricing-lookup-5c22287f"}