{"uid":"cap_pevcH3lX70Qf8ZjLL94fL","slug":"modelprices-xyz-xai-pricing-table-0e88aee2","name":"modelprices.xyz xAI Pricing Table","description":"xAI pricing table: per-token cost of every AI model xAI serves, in one call — input, output, cache and batch USD per 1M tokens, ranked cheapest first, with context window and capability flags joined in. Compare LLM token cost inside xAI and against other providers hosting the same model. Normalized from public sources, cross-checked, refreshed hourly.","url":"https://modelprices.xyz/llm/prices/xai","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_sfcihqooZfe0IXDnm0bUk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns per-token USD pricing for every AI model served by xAI, ranked cheapest first, with context window sizes and capability flags included.","exampleAgentPrompt":"Pull the full xAI pricing table right now — I want to see every Grok model's input, output, cache, and batch cost per million tokens, sorted cheapest first, with their context window sizes.","exampleUseCases":[{"title":"Find cheapest xAI model for a budget","prompt":"I need to pick the most cost-effective xAI model for a high-volume summarization task — show me all xAI models ranked by cheapest input token price so I can decide."},{"title":"Compare Grok input vs output costs","prompt":"What are the input and output token prices for all Grok models right now? I want to know which one gives me the best deal if my app generates a lot of output tokens."},{"title":"Evaluate xAI vs other providers","prompt":"I'm deciding between xAI and OpenAI for my project — can you get me the current xAI token pricing table so I can compare their rates side by side?"}],"resultDescription":"A ranked list of all xAI-hosted AI models with their per-token USD costs (input, output, cache, batch) per 1 million tokens, along with context window sizes and capability flags, sorted cheapest first. Data is normalized from public sources and refreshed hourly.","failureModes":["Service temporarily unavailable (503) if modelprices.xyz is down","Stale data if the hourly refresh has not yet picked up a recent xAI price change","Empty or partial results if xAI has not published pricing for a newly released model","Payment/402 failure if x402 payment token is invalid or insufficient"],"whenToPreferThis":"Use this endpoint when you need a comprehensive, up-to-date, normalized view of all xAI model token prices in a single call, especially when you want to rank models by cost or compare pricing dimensions (input vs output vs batch vs cache). Prefer this over manually scraping xAI's pricing page or checking individual model docs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:40:34.863Z","isFirstParty":false}