LLM pricing, compare AI model API prices
llm_pricesCompare 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. Example: q=llama. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Words in the model id or name, e.g. gpt, claude, llama 70b | |
| sort | No | input (default), output, blended (3:1 input:output) or context | |
| limit | No | Number of models (1-50, default 20) | |
| vision | No | true: only models that take image input | |
| provider | No | Only this provider: openai, anthropic, google, meta-llama, mistralai, deepseek, qwen… | |
| minContext | No | Only models with at least this context length in tokens | |
| inputTokens | No | Input tokens of your call, to estimate its cost | |
| outputTokens | No | Output tokens of your call, to estimate its cost | |
| maxInputPrice | No | Only models at or under this USD per million input tokens |