Alternative
Grok alternative: Grok API prices next to Claude, GPT and Gemini on one key
Prices checked Nov 26, 2026 · 3 min read

A Grok alternative, for an API user, is another chat model you can reach with the same code. xAI's docs list Grok 4.7 at $2.00 input and $6.00 output per 1M tokens for prompts under 200k tokens. On TapModels, Grok 4.7 is $0.80 and $2.40, Claude Sonnet 5.5 is $0.80 and $4.00, GPT-6.2 Sol is $0.60 and $3.00, and Gemini 4 Hydrogen is $0.60 and $3.00. They share one key, one balance and one endpoint, so trying one is a string change. We publish no quality benchmarks: the prices below say what a model costs, not which is better.
What xAI charges for Grok
From xAI's models page, per 1M tokens:
| Model | Context | Input | Cached input | Output |
|---|---|---|---|---|
| grok-4.7, prompt under 200k | 500k | $2.00 | $0.50 | $6.00 |
| grok-4.7, prompt 200k or more | 500k | $4.00 | $1.00 | $12.00 |
| grok-4.3, prompt under 200k | 1M | $1.25 | $0.20 | $2.50 |
For two-row models, a request that reaches 200k prompt tokens is billed at the higher rate for all of its tokens. Media: grok-imagine-image $0.02 per image, grok-imagine-image-2.0 $0.04, grok-imagine-video $0.050 per second, grok-imagine-video-1.5 $0.080 per second and the lite version $0.020 per second. Text to speech is $15.00 per 1M characters. The page does not mention prepaid credits or a minimum purchase.
Grok and its alternatives, per 1M tokens
List prices come from each provider's page, checked 2026-11-26. TapModels prices come from our catalog. Our catalog lists one price per model and does not show a long-prompt tier, so check how your longest prompts are billed.
| Model | Official input / output | TapModels input / output |
|---|---|---|
| Grok 4.7 (xAI, prompt under 200k) | $2.00 / $6.00 | $0.80 / $2.40 |
| Claude Sonnet 5.5 | $2.00 / $10.00 | $0.80 / $4.00 |
| GPT-6.2 Sol | $2.00 / $10.00 | $0.60 / $3.00 |
| Gemini 4 Hydrogen | $1.50 / $7.50 | $0.60 / $3.00 |
On TapModels, Grok 4.7 has the lowest output price of the four: $2.40.
A worked month
An app that sends 5M input tokens and 1M output tokens a month:
- Grok 4.7 at xAI's list: 5 x $2.00 = $10.00, plus 1 x $6.00 = $6.00, so $16.00.
- Grok 4.7 on TapModels: 5 x $0.80 = $4.00, plus 1 x $2.40 = $2.40, so $6.40.
- Claude Sonnet 5.5 on TapModels: $4.00 plus 1 x $4.00 = $8.00.
- GPT-6.2 Sol on TapModels: 5 x $0.60 = $3.00, plus 1 x $3.00 = $3.00, so $6.00.
- Gemini 4 Hydrogen on TapModels: $3.00 plus $3.00 = $6.00.
The spread across the four is $6.00 to $8.00 on TapModels, so price alone rarely decides it. Quality on your task usually does. Put your own token counts into the LLM cost calculator.
Video: Grok Imagine
TapModels carries Grok Imagine Video 1.5 for image to video, priced per second: $0.012 at 480p, $0.0225 at 720p and $0.04 at 1080p. xAI's page lists $0.080 per second for the same model without a resolution. A 6-second clip is 6 x $0.080 = $0.48 at xAI's list and $0.072, $0.135 or $0.24 on TapModels. The catalog marks this model as degraded right now, so check the model page before you build on it.
Where xAI is the better choice
- You want a direct account with xAI, with cached-input rates and its own long-context tiers.
- You use xAI products we do not carry: its speech-to-speech and speech-to-text models, listed on the same page.
- You want the original grok-4.3 or grok-4.5 models, which are listed on xAI's page and not in our catalog.
Where TapModels fits
- One key for Grok, Claude, GPT and Gemini, so you can test an alternative in five minutes.
- Per-key
allowed_modelsandspend_limit_credits, so a test key cannot call the expensive model. - An OpenAI-compatible endpoint:
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.tapmodels.com/v1", apiKey: process.env.TAPMODELS_API_KEY });
for (const model of ["grok-4-7", "claude-sonnet-5-5", "gpt-6-2-sol", "gemini-4-hydrogen"]) {
const res = await client.chat.completions.create({
model,
messages: [{ role: "user", content: "Rewrite this error message for a non-technical user: ECONNRESET" }],
max_tokens: 200,
});
console.log(model, res.usage, res.choices[0].message.content);
}
Send the same 20 real prompts to each and compare answers and token usage before you move traffic. See Grok pricing, Claude Sonnet pricing, and the pairs GPT vs Grok and Gemini vs Grok.
Frequently asked questions
What is the best Grok alternative for the API?
It depends on the job, and we publish no quality benchmarks. On price per 1M tokens, GPT-6.2 Sol and Gemini 4 Hydrogen are $0.60 in and $3.00 out on TapModels, Claude Sonnet 5.5 is $0.80 and $4.00, and Grok 4.7 is $0.80 and $2.40. Test your own prompts.
How much does the Grok API cost?
xAI's docs list grok-4.7 at $2.00 input, $0.50 cached input and $6.00 output per 1M tokens for prompts under 200k tokens, and $4.00, $1.00 and $12.00 at 200k or more. Grok Imagine Video 1.5 is $0.080 per second and Grok Imagine Image 2.0 is $0.04 per image.
Can I still use Grok models if I switch?
Yes. TapModels carries Grok 4.7 for chat and Grok Imagine Video 1.5 for image-to-video, on the same key as Claude, GPT and Gemini. You change one string, the model id, to move between them. The catalog marks Grok Imagine Video 1.5 as degraded at the time of writing.
Is switching from Grok a big code change?
For chat, usually not: TapModels exposes an OpenAI-compatible /v1/chat/completions endpoint. Change the base URL to api.tapmodels.com/v1, use your TapModels key, and set model to the new id. Re-test your prompts, because models differ in how they follow instructions.
Sources
- xAI models and pricing · checked Nov 26, 2026
- Anthropic API pricing · checked Nov 26, 2026
- OpenAI API pricing · checked Nov 26, 2026
- Google Gemini API pricing · checked Nov 26, 2026