{"slug":"agent-data-tools-revmesh2074-workers-dev-grok-pricing-d69248","title":"Grok pricing for every xAI model","host":"agent-data-tools.revmesh2074.workers.dev","method":"GET","resource":"https://agent-data-tools.revmesh2074.workers.dev/grok/pricing","category":"image","description":"Grok pricing for every xAI model: USD per million input and output tokens, context length, max output and modalities for Grok 4.x and the other xAI models, cheapest first, plus the cost of your call when you give token counts. Filter by name (q=grok-4), price cap, context or image input. Source: Ope","price_listed":0.01,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"q":"grok"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"inputTokens":{"description":"Input tokens of your call, to estimate its cost","examples":[2000],"type":"integer"},"limit":{"description":"Number of models (1-50, default 20)","examples":[5],"type":"integer"},"maxInputPrice":{"description":"Only models at or under this USD per million input tokens","examples":[1],"type":"number"},"minContext":{"description":"Only models with at least this context length in tokens","examples":[32000],"type":"integer"},"outputTokens":{"description":"Output tokens of your call, to estimate its cost","examples":[500],"type":"integer"},"provider":{"description":"Provider to list (default x-ai); any other provider name works too, e.g. google, meta-llama, mistralai","examples":["x-ai"],"type":"string"},"q":{"description":"Words in the model id or name, e.g. gpt, claude, llama 70b","examples":["grok"],"type":"string"},"sort":{"description":"input (default), output, blended (3:1 input:output) or context","examples":["blended"],"type":"string"},"vision":{"description":"true: only models that take image input","examples":["false"],"type":"string"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"asOf":{"type":"string"},"count":{"type":"number"},"matched":{"type":"number"},"models":{"items":{"properties":{"contextLength":{"type":"number"},"free":{"type":"boolean"},"id":{"type":"string"},"inputPerMillionUsd":{"type":"number"},"inputs":{"items":{"type":"string"},"type":"array"},"maxOutputTokens":{"type":"number"},"name":{"type":"string"},"outputPerMillionUsd":{"type":"number"},"outputs":{"items":{"type":"string"},"type":"array"},"provider":{"type":"string"}},"type":"object"},"type":"array"},"sort":{"type":"string"},"source":{"type":"string"}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Grok pricing for every xAI model: USD per million input and output tokens, context length, max output and modalities for Grok 4.x and the other xAI models, cheapest first, plus the cost of your call when you give token counts. Filter by name (q=grok-4), price cap, context or image input. Source: OpenRouter's public model list. Use to pick a Grok model for a job or to estimate what a prompt will cost before sending it.","last_updated":"2026-11-15T04:50:34.488Z","schemes":["exact"]}