Use when an agent must price an LLM call or pick the cheapest model
Use when an agent must price an LLM call or pick the cheapest model. Input: model (up to 5, comma list) plus optional input_tokens, output_tokens, requests; or no model plus mode, provider, min_context, capabilities (vision, function_calling...). Output: JSON USD per 1M input/output tokens, cached/batch prices, context window, provider, capabilities, cost estimate or cheapest ranking, as_of + source commit. Example: ?model=gpt-4o&input_tokens=12000&output_tokens=800
Answeringour last check, 2026-10-18
1 of 1checks answered this week
479 msmedian answer time
$0.004listed price per call
$0.004price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://1gateway.dev/v1/ai/llm-prices
| Category | Market data |
|---|---|
| Provider host | 1gateway.dev |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-18 | valid payment request | 402 | $0.004 | 479 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"capabilities": "vision",
"include_deprecated": "false",
"input_tokens": 12000,
"limit": 5,
"min_context": 100000,
"mode": "chat",
"model": "gpt-4o",
"output_tokens": 800,
"provider": "openai",
"requests": 1000
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"capabilities": {
"description": "Comma-separated required capabilities: vision, function_calling, reasoning, prompt_caching, response_schema, pdf_input, audio_input, audio_output, web_search, computer_use, video_input",
"examples": [
"vision"
],
"maxLength": 200,
"type": "string"
},
"include_deprecated": {
"description": "Include models past their deprecation date in the cheapest search (default false)",
"enum": [
"true",
"false"
],
"examples": [
"false"
],
"type": "string"
},
"input_tokens": {
"description": "Input (prompt) tokens per request, for the cost estimate and ranking",
"examples": [
12000
],
"maximum": 100000000,
"minimum": 0,
"type": "integer"
},
"limit": {
"description": "Max rows per model or in the ranking (default 10)",
"examples": [
5
],
"maximum": 25,
"minimum": 1,
"type": "integer"
},
"min_context": {
"description": "Minimum context window (max input tokens)",
"examples": [
100000
],
"maximum": 100000000,
"minimum": 1,
"type": "integer"
},
"mode": {
"description": "Model type for the cheapest search (default chat; chat includes responses-API models). Ignored when model is given",
"enum": [
"chat",
"embedding",
"completion",
"rerank",
"image_generation",
"audio_transcription",
"audio_speech",
"realtime",
"moderation"
],
"examples": [
"chat"
],
"type": "string"
},
"model": {
"description": "Model name(s), up to 5 comma-separated (gpt-4o, claude-sonnet-4-5, gemini/gemini-2.5-flash). Also lists the same model at other providers. Omit to rank the cheapest models. Unknown \u2192 400 with suggestions (not charged)",
"examples": [
"gpt-4o"
],
"maxLength": 400,
"type": "string"
},
"output_tokens": {
"description": "Output (completion) tokens per request",
"examples": [
800
],
"maximum": 100000000,
"minimum": 0,
"type": "integer"
},
"provider": {
"description": "LiteLLM provider id filter: openai, anthropic, gemini, vertex_ai, bedrock, azure, groq, deepseek, mistral...",
"examples": [
"openai"
],
"pattern": "^[A-Za-z0-9_.-]{1,40}$",
"type": "string"
},
"requests": {
"description": "Number of requests to multiply the estimate by (default 1)",
"examples": [
1000
],
"maximum": 1000000000,
"minimum": 1,
"type": "integer"
}
},
"required": [],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"as_of": {
"type": "string"
},
"attribution": {
"type": "string"
},
"kind": {
"type": "string"
},
"matched_total": {
"type": "integer"
},
"models": {
"items": {
"properties": {
"batch_input_per_1m_usd": {
"type": [
"number",
"null"
]
},
"batch_output_per_1m_usd": {
"type": [
"number",
"null"
]
},
"cached_input_per_1m_usd": {
"type": [
"number",
"null"
]
},
"capabilities": {
"items": {
"type": "string"
},
"type": "array"
},
"context_window": {
"type": [
"integer",
"null"
]
},
"deprecated": {
"type": "boolean"
},
"deprecation_date": {
"type": [
"string",
"null"
]
},
"estimate": {
"properties": {
"cost_per_request_usd": {
"type": "number"
},
"input_cost_usd