Grok API pricing

Oxyy is an independent API gateway, not affiliated with xAI.

Paid Grok text models run from $0.400 to $0.800 per 1M input tokens and $0.800 to $2.40 per 1M output tokens. Grok 4.6 costs $0.800 input / $2.40 output per 1M tokens, pay-as-you-go (standard price $2.00 / $6.00). The lowest-priced paid Grok text model is Grok Build 0.1 at $0.400 input / $0.800 output per 1M tokens.

Prices checked daily · last price change Sep 24, 2026 (discount changed: 70% → 60% off)

Grok API pricing per 1M tokens

Prices in USD per 1M tokens. Where two prices are shown, the first is the standard price and the second is what you pay on Oxyy, pay as you go. Cached input is the Oxyy price.
ModelContextInputOutputCached inputSavingReleased
Grok 4.6 (long prompts cost more, see note)grok-4.6500KStandard price $2.00, on Oxyy $0.800Standard price $6.00, on Oxyy $2.40$0.20060%Aug 12, 2026
Grok 4.5 (long prompts cost more, see note)grok-4.5500KStandard price $2.00, on Oxyy $0.800Standard price $6.00, on Oxyy $2.40$0.12060%—
Grok 4.3 (long prompts cost more, see note)grok-4.31MStandard price $1.25, on Oxyy $0.500Standard price $2.50, on Oxyy $1.00$0.08060%—
Grok 4.7grok-4.7500KStandard price $2.00, on Oxyy $0.800Standard price $6.00, on Oxyy $2.40$0.20060%Sep 21, 2026
Grok Uncensored (long prompts cost more, see note)grok-uncensored500KStandard price $2.00, on Oxyy $0.800Standard price $6.00, on Oxyy $2.40$0.12060%Jul 8, 2026
Grok 4.20 (0309) Multi-Agent (long prompts cost more, see note)grok-4.20-multi-agent-03091MStandard price $1.25, on Oxyy $0.500Standard price $2.50, on Oxyy $1.00$0.08060%—
Grok 4.20 (0309) Non-Reasoning (long prompts cost more, see note)grok-4.20-0309-non-reasoning1MStandard price $1.25, on Oxyy $0.500Standard price $2.50, on Oxyy $1.00$0.08060%—
Grok 4.20 (0309) Reasoning (long prompts cost more, see note)grok-4.20-0309-reasoning1MStandard price $1.25, on Oxyy $0.500Standard price $2.50, on Oxyy $1.00$0.08060%—
Grok Build 0.1 (long prompts cost more, see note)grok-build-0.1256KStandard price $1.00, on Oxyy $0.400Standard price $2.00, on Oxyy $0.800$0.08060%—
  • † Long prompts cost more. The whole request is billed at the higher rate:
    • Grok 4.6: $1.60 input / $4.80 output per 1M tokens once a prompt reaches 200K tokens.
    • Grok 4.5: $1.60 input / $4.80 output per 1M tokens once a prompt reaches 200K tokens.
    • Grok 4.3: $1.00 input / $2.00 output per 1M tokens once a prompt reaches 200K tokens.
    • Grok Uncensored: $1.60 input / $4.80 output per 1M tokens once a prompt reaches 200K tokens.
    • Grok 4.20 (0309) Multi-Agent: $1.00 input / $2.00 output per 1M tokens once a prompt reaches 200K tokens.
    • Grok 4.20 (0309) Non-Reasoning: $1.00 input / $2.00 output per 1M tokens once a prompt reaches 200K tokens.
    • Grok 4.20 (0309) Reasoning: $1.00 input / $2.00 output per 1M tokens once a prompt reaches 200K tokens.
    • Grok Build 0.1: $0.800 input / $1.60 output per 1M tokens once a prompt reaches 200K tokens.
  • The standard price is Oxyy's list price for the model before any discount. xAI publishes its own Grok prices on its pricing page.

Grok image, video, speech, transcription and realtime voice pricing

Prices in USD, in each model's own billing unit. Where two prices are shown, the first is the standard price and the second is what you pay on Oxyy, pay as you go.
ModelTypePriceSavingReleased
Grok Imagine Imagegrok-imagine-imageImage generationStandard price $0.020, on Oxyy $0.008per image60%—
Grok Imagine Videogrok-imagine-videoText to videoFrom Standard price $0.050, on Oxyy $0.020per second of video60%—
Grok Imagine Video 1.5grok-imagine-video-1.5Text to videoFrom Standard price $0.080, on Oxyy $0.032per second of video60%—
Grok Voice API — Speech to Textgrok-sttSpeech to textStandard price $0.100, on Oxyy $0.040per hour of audio60%—
Grok Voice API — Text to Speechgrok-ttsText to speechStandard price $0.015, on Oxyy $0.006per 1K characters60%—
Grok Voice Think Fast 2.0grok-voice-think-fast-2.0Realtime voiceStandard price $0.080, on Oxyy $0.032per minute of input60%—
Grok Imagine Image 2.0grok-imagine-image-2.0Image generationNot yet priced——

Recent Grok price changes

Changes to the Oxyy price of Grok models over the last 90 days, newest first, from Oxyy's daily price checks.
DateModelChange
Sep 24, 20267 modelsDiscount changed: 70% → 60% off
Sep 22, 20267 modelsDiscount started: 70% off

Grok API cost calculator

Estimate a month of Grok API usage: set your input and output volume and how much of your input is a repeated prompt prefix served from cache, or start from a preset.

Estimated monthly cost for 10M input and 2M output tokens, with 0% of input served from cache.

Estimates in USD per month. Standard price: Oxyy's list price before any discount. On Oxyy: the pay-as-you-go price you are billed. Taxes are not included.
Grok modelAt standard priceOn OxyyYou save
Grok 4.6 (estimate is a lower bound, see note)$32.00$12.80$19.20 (60%)
Grok 4.5 (estimate is a lower bound, see note)$32.00$12.80$19.20 (60%)
Grok 4.3 (estimate is a lower bound, see note)$17.50$7.00$10.50 (60%)
Grok 4.7$32.00$12.80$19.20 (60%)
Grok Uncensored (estimate is a lower bound, see note)$32.00$12.80$19.20 (60%)
Grok 4.20 (0309) Multi-Agent (estimate is a lower bound, see note)$17.50$7.00$10.50 (60%)
Grok 4.20 (0309) Non-Reasoning (estimate is a lower bound, see note)$17.50$7.00$10.50 (60%)
Grok 4.20 (0309) Reasoning (estimate is a lower bound, see note)$17.50$7.00$10.50 (60%)
  • † A lower bound: prompts past the model's long-context threshold are billed at a higher rate (see the table above).

Which Grok model should you use?

For each kind of work, the lowest-priced paid Grok model tagged for it and the one developers use most on Oxyy.

Lowest price: the paid model tagged for the need with the lowest Oxyy price (3 input tokens to 1 output token). Most used: the busiest of those models on Oxyy over the last 7 days.
NeedLowest priceMost used on Oxyy
CodingGrok Build 0.1$0.400 / $0.800 per 1M tokensGrok 4.6
ReasoningGrok 4.3$0.500 / $1.00 per 1M tokensGrok 4.6
Agents and tool useGrok Build 0.1$0.400 / $0.800 per 1M tokensGrok 4.6
Long documentsGrok 4.3$0.500 / $1.00 per 1M tokensGrok 4.6
Lowest costGrok Build 0.1$0.400 / $0.800 per 1M tokensGrok 4.6

Grok API pricing FAQ

How much does the Grok API cost?

On Oxyy, Grok 4.6 costs $0.800 input / $2.40 output per 1M tokens at the pay-as-you-go price (standard price $2.00 / $6.00). Across paid Grok text models, input runs from $0.400 to $0.800 per 1M tokens and output from $0.800 to $2.40. Text to video starts at $0.020 per second of video, image generation starts at $0.008 per image and realtime voice starts at $0.032 per minute of input. There is no subscription: you pay only for what you use.

What is the cheapest Grok model?

Grok Build 0.1 is the lowest-priced paid Grok text model on Oxyy, at $0.400 input / $0.800 output per 1M tokens.

How much does cached input cost on Grok models?

Cached input on Grok 4.6 costs $0.200 per 1M tokens on Oxyy, against $0.800 for regular input. The price table on this page lists the cache rate of every model that has one.

Can I call Grok models with the OpenAI SDK?

Yes. Oxyy's API is OpenAI-compatible: set the base URL to https://api.oxyy.ai/v1, use your Oxyy API key and pass the model id, for example "grok-4.6", to /v1/chat/completions. Image models use /v1/images/generations, video models use /v1/videos/generations, transcription models use /v1/audio/transcriptions and text-to-speech models use /v1/audio/speech.

Do long prompts cost more on Grok models?

For some models, yes. Grok 4.6 costs $1.60 input / $4.80 output per 1M tokens once a prompt reaches 200K tokens, instead of $0.800 / $2.40; the whole request is priced at the higher rate.

Is Oxyy affiliated with xAI?

No. Oxyy is an independent API gateway, not affiliated with or endorsed by xAI. It gives you one API key and one bill for models from many AI labs, xAI among them.

xAI tokens processed on Oxyy· daily, UTC

All xAI models 16

xAI: Grok 4.6TextImageText-60%968.8K tokens
reasoningcodingagenticlong-context

xAI's flagship model for code and everything else: agentic tool calling, minimal hallucinations, configurable reasoning.

by xAIAug 12, 2026500K context$0.800/M input standard price $2.00$2.40/M output standard price $6.008153ms latency88 t/s
xAI: Grok 4.5TextImageText-60%212.2K tokens
reasoningcodingagenticlong-context

Previous-generation Grok flagship. Same standard input and output rates as Grok 4.6 but a cheaper cached-input rate.

by xAI500K context$0.800/M input standard price $2.00$2.40/M output standard price $6.007007ms latency85 t/s
xAI: Grok 4.7TextImageFileText-60%16.8K tokens

Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...

by xAISep 21, 2026500K context$0.800/M input standard price $2.00$2.40/M output standard price $6.003247ms latency142 t/s
xAI: Grok UncensoredTextImageText-60%4mo ago
reasoningcodingagenticlong-contextstem

xAI frontier model for coding, knowledge work and STEM, co-trained with Cursor and tuned for agentic tool calling.

by xAIJul 8, 2026500K context$0.800/M input standard price $2.00$2.40/M output standard price $6.00
xAI: Grok 4.20 (0309) Multi-AgentTextImageText-60%—
multi-agentreasoninglong-contextpinned-snapshot

Pinned 0309 release of Grok 4.20 configured for multi-agent orchestration.

by xAI1M context$0.500/M input standard price $1.25$1.00/M output standard price $2.50
long-contextlow-latencypinned-snapshot

Pinned 0309 release of Grok 4.20 in non-reasoning mode, for low-latency responses.

by xAI1M context$0.500/M input standard price $1.25$1.00/M output standard price $2.50
xAI: Grok 4.20 (0309) ReasoningTextImageText-60%—
reasoninglong-contextpinned-snapshot

Pinned 0309 release of Grok 4.20 in reasoning mode, with a 1M token context window.

by xAI1M context$0.500/M input standard price $1.25$1.00/M output standard price $2.50
xAI: Grok 4.3TextImageText-60%—
reasoninglong-contextcost-efficient

Cost-efficient Grok model with a 1M token context window and a 20% Batch API discount.

by xAI1M context$0.500/M input standard price $1.25$1.00/M output standard price $2.50
xAI: Grok Build 0.1TextImageText-60%—
codingagenticlow-cost

xAI's coding-specialized model, the cheapest per token in the Grok lineup.

by xAI256K context$0.400/M input standard price $1.00$0.800/M output standard price $2.00
xAI: Grok Imagine ImageTextImageImage-60%—
image-generationimage-editinglow-cost

xAI's low-cost image generation and editing model, flat-priced across resolutions.

by xAI$0.008 per image standard price $0.020
xAI: Grok Imagine Image 2.0TextImageImage—
image-generationimage-editing

xAI's recommended image generation and editing model. Text and image in, image out.

by xAINot yet priced
xAI: Grok Imagine VideoTextImageVideoVideo-60%—
video-generationvideo-editinglow-cost

Previous-generation, lower-cost video generation and editing model. Text, image and video in, video out.

by xAIFrom $0.020 per second of video standard price $0.050
xAI: Grok Imagine Video 1.5TextImageAudioVideoAudio-60%—
video-generationimage-to-videoaudio

xAI's recommended video generation model. Text, image and audio in, video out, with native audio.

by xAIFrom $0.032 per second of video standard price $0.080
speech-to-texttranscriptionstreaming

xAI's speech-to-text transcription, available as batch REST or streaming.

by xAI$0.040 per hour of audio standard price $0.100
xAI: Grok Voice Think Fast 2.0TextAudioTextAudio-60%—
voicerealtimespeech-to-speech

xAI's realtime speech-to-speech voice agent model.

by xAI$0.032 per minute of input standard price $0.080