{"uid":"cap_v4NCuuMbSj_2LVy9xxrff","slug":"agent-data-tools-revmesh2074-workers-dev-llm-pricing-compare-ai-model-d60c7f5e","name":"LLM Pricing - Compare AI Model API Prices","description":"LLM pricing, compare AI model. Compare the API prices of about 450 LLMs from OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, Qwen and others: USD per million input and output tokens, context length, max output, modalities, and the cost of your call when you give token counts. Filter by name, provider, price cap, context or image input; sort by input, output or blended price. Source: OpenRouter's public model list. Use to pick the cheapest model that fits a job.","url":"https://agent-data-tools.revmesh2074.workers.dev/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":[],"properties":{"q":{"type":"string","examples":["llama"],"description":"Words in the model id or name, e.g. gpt, claude, llama 70b"},"sort":{"type":"string","examples":["blended"],"description":"input (default), output, blended (3:1 input:output) or context"},"limit":{"type":"integer","examples":[5],"description":"Number of models (1-50, default 20)"},"vision":{"type":"string","examples":["false"],"description":"true: only models that take image input"},"provider":{"type":"string","examples":["meta-llama"],"description":"Only this provider: openai, anthropic, google, meta-llama, mistralai, deepseek, qwen…"},"minContext":{"type":"integer","examples":[32000],"description":"Only models with at least this context length in tokens"},"inputTokens":{"type":"integer","examples":[2000],"description":"Input tokens of your call, to estimate its cost"},"outputTokens":{"type":"integer","examples":[500],"description":"Output tokens of your call, to estimate its cost"},"maxInputPrice":{"type":"number","examples":[1],"description":"Only models at or under this USD per million input tokens"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":"string"},"sort":{"type":"string"},"count":{"type":"number"},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"free":{"type":"boolean"},"name":{"type":"string"},"inputs":{"type":"array","items":{"type":"string"}},"outputs":{"type":"array","items":{"type":"string"}},"provider":{"type":"string"},"contextLength":{"type":"number"},"maxOutputTokens":{"type":"number"},"inputPerMillionUsd":{"type":"number"},"outputPerMillionUsd":{"type":"number"}}}},"source":{"type":"string"},"matched":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"asOf":"2026-11-06T06:00:00.000Z","sort":"input","count":1,"models":[{"id":"meta-llama/llama-3.3-70b-instruct","free":false,"name":"Meta: Llama 3.3 70B Instruct","inputs":["text"],"outputs":["text"],"provider":"meta-llama","contextLength":131072,"maxOutputTokens":16384,"inputPerMillionUsd":0.1,"outputPerMillionUsd":0.25}],"source":"OpenRouter public model list (openrouter.ai/api/v1/models)","matched":41}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__MK9GOpMWh4i5p3c64IN4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Returns pricing, context length, and capability data for ~450 LLMs, with optional filtering, sorting, and per-call cost estimation","exampleAgentPrompt":"Can you find the top 10 cheapest LLMs that support vision input and have at least 32,000 token context — sort by blended price and estimate the cost for 5,000 input tokens and 1,000 output tokens?","exampleUseCases":[{"title":"Pick cheapest model for a batch job","prompt":"I need to process a huge batch of text documents and want the absolute cheapest LLM API available — show me the 20 lowest-priced models by input cost and estimate how much it would cost per call if I'm sending about 8,000 input tokens and getting 500 output tokens back."},{"title":"Find affordable vision-capable model","prompt":"I need a model that can take image input, costs less than $2 per million input tokens, and has at least a 16,000 token context window — what are my options sorted by blended price?"},{"title":"Compare Anthropic vs OpenAI pricing","prompt":"Can you pull up the current API prices for all Anthropic Claude models and all OpenAI models side by side, sorted by blended cost, so I can decide which provider is cheaper for my chatbot?"}],"resultDescription":"A JSON object containing: a timestamp (asOf), sort order used, total matched count, and an array of model objects each with model ID, name, provider, input/output price per million USD, context length, max output tokens, supported input/output modalities, optional free flag, and optionally an estimated call cost in USD if token counts were provided.","failureModes":["Invalid sort value returns error or default behavior","limit outside 1-50 range may be clamped or rejected","Provider name typo returns empty results","Very restrictive filter combination returns zero models","Network timeout from upstream OpenRouter data source"],"whenToPreferThis":"Use this endpoint when an agent needs to programmatically select the optimal LLM for a task based on price, context length, or capability constraints — especially when cost optimization matters or when comparing across multiple providers. Prefer over manual documentation lookups because it covers ~450 models in one call with filtering, sorting, and cost estimation built in.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-07T06:43:22.550Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-llm-pricing-compare-ai-model-d60c7f5e"}