chat model
Grok API pricing
Grok 4.7: $0.80 in, $2.40 out per 1M tokens. Prepaid credits, 100 credits = $1, failed tasks are not charged.
Prices checked Nov 26, 2026
Grok 4.7 price per million tokens
| Tier | TapModels price | Unit | List price | Difference |
|---|---|---|---|---|
| Input | $0.80 | 1M tokens | $2.00 | 60% lower |
| Output | $2.40 | 1M tokens | $6.00 | 60% lower |
Worked example: 1M tokens in and 250K tokens out costs $1.40.
How billing works
You buy credits first. When you submit a request we hold the estimated credits, then charge the actual usage when the task succeeds and release the hold if it fails. Credits bought one-time never expire. See plans and packs for the full rules.
Chat models bill per million tokens, input and output separately. Use the LLM cost calculator to price your own prompt sizes.
List prices are the provider's own published prices as of 2026-11-26. Providers change prices, so we show the date and update this page when ours changes.
Call Grok 4.7 with one key
Use the model id grok-4-7. Same key, same endpoint as every other model.
curl https://api.tapmodels.com/v1/chat/completions \
-H "Authorization: Bearer $TAPMODELS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4-7",
"messages": [
{
"role": "user",
"content": "Plan a zero-downtime migration of a 40M-row table."
}
],
"max_tokens": 1024
}'Try Grok 4.7 in the playground before you write any code, or read the API docs.
Frequently asked questions
How much does the Grok API cost?
On TapModels, Grok 4.7 costs $0.80 in, $2.40 out per 1M tokens. Credits are prepaid at 100 credits per $1, and you pay only for tasks that succeed.
Is there a cheaper way to use Grok than the xAI API?
Our price is at or below xAI's list price for every tier shown above. Compare the "List price" column to see the gap per tier.
What happens if a Grok request fails?
Credits are held when you submit a request and charged only when it succeeds. A failed request releases the hold and costs nothing.