{"uid":"cap_vrnxkS_4PuXRCOXETRJCB","slug":"llm-pricing-lookup-via-openrouter-75e495b3","name":"LLM Pricing Lookup via OpenRouter","description":"Price per million input and output tokens of 300+ language models (OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek...) via OpenRouter, with context window and the estimated cost of one call with your token counts; filter by name or provider, sort by price or context.","url":"https://api.vextorium.com/v1/llm-prices?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":[],"properties":{"limit":{"type":"integer"},"order":{"enum":["price","expensive","context"],"type":"string"},"search":{"type":"string"},"input_tokens":{"type":"integer"},"output_tokens":{"type":"integer"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":["object","null"],"properties":{"note":{"type":["string","null"]},"total":{"type":["number","null"]},"models":{"type":["array","null"],"items":{"type":["null","object"],"properties":{"free":{"type":["boolean","null"]},"name":{"type":["null","string"]},"model":{"type":["null","string"]},"modalities":{"type":["array","null"],"items":{"type":["null","string"]}},"call_cost_usd":{"type":["null","number"]},"context_tokens":{"type":["null","number"]},"input_usd_per_million":{"type":["null","number"]},"output_usd_per_million":{"type":["null","number"]}}}},"search":{"type":["string","null"]},"source":{"type":["string","null"]},"input_tokens":{"type":["number","null"]},"output_tokens":{"type":["number","null"]}}}}}}},"responseSchema":{"type":"json","example":{"note":"OpenRouter prices; the direct provider may differ.","total":33,"models":[{"free":false,"name":"Anthropic: Claude Haiku 4.5 (batch)","model":"anthropic/claude-haiku-4.5:batch","modalities":["text","image"],"call_cost_usd":0.00175,"context_tokens":200000,"input_usd_per_million":0.5,"output_usd_per_million":2.5},{"free":false,"name":"Anthropic: Claude Sonnet 5.5 (batch)","model":"anthropic/claude-sonnet-5.5:batch","modalities":["text","image"],"call_cost_usd":0.0035,"context_tokens":1000000,"input_usd_per_million":1,"output_usd_per_million":5}],"search":"claude","source":"OpenRouter (public model API prices)","input_tokens":1000,"output_tokens":500}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CwZHqXtWeRo7M9WRkcTvS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns pricing (input/output cost per million tokens), context window size, and estimated call cost for 300+ language models from OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, and more — with filtering and sorting.","exampleAgentPrompt":"Search for all Claude models and estimate the cost per call assuming 1000 input tokens and 500 output tokens — sort by price so I can see the cheapest ones first.","exampleUseCases":[{"title":"Find cheapest model for a task","prompt":"I need to pick the most affordable LLM that supports long context. Show me models sorted by input price, with a context window over 100k tokens, and estimate what a call with 2000 input and 800 output tokens would cost."},{"title":"Compare Anthropic model costs","prompt":"Pull up all Anthropic models and their prices per million tokens — I want to see which one is cheapest for a workload with 500 input tokens and 1500 output tokens."},{"title":"Budget estimate for GPT usage","prompt":"What would it cost to call a GPT-4 model with 3000 input tokens and 1000 output tokens? Show me all OpenAI GPT-4 variants sorted by price so I can pick the best value."}],"resultDescription":"A JSON object listing matching models with their name, model ID, supported modalities, input and output price in USD per million tokens, context window size in tokens, estimated per-call cost in USD based on provided token counts, and a free flag. Also includes total count of matching models, the search query used, and a source note indicating prices are from OpenRouter's public model API.","failureModes":["Invalid sort order enum value returns validation error","Providing non-integer token counts causes schema rejection","Empty or no matching results when search query is too specific or misspelled","Rate limiting or payment failure (x402) if USDC balance is insufficient","API may return stale prices if OpenRouter's source data is delayed"],"whenToPreferThis":"Use this endpoint when you need programmatic, structured LLM pricing data across many providers at once, especially when estimating costs for specific token budgets or comparing dozens of models simultaneously. Prefer this over manually checking provider websites when you need filtering by name/provider, sorting by cost, or automated cost estimation integrated into an agent workflow. Best when OpenRouter-sourced prices are acceptable (note: direct provider prices may differ slightly).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:54:11.629Z","isFirstParty":false,"canonicalSlug":"llm-pricing-lookup-via-openrouter-75e495b3"}