Grok 4.7 API Price
xAI's Grok 4.7, the successor to Grok 4.6, built for coding, reasoning and agent work. 500K context, function calling and image input, through the OpenAI-compatible Chat Completions API.
API access
- Endpoint
- POST /v1/chat/completions
- Base URL
- https://api.apiko.app/v1
Speaks OpenAI Chat Completions; one APIKO key reaches every listed model.
Input price
90% off$2.00
$0.200
/ 1M tokens
Output price
90% off$6.00
$0.600
/ 1M tokens
Context
500K
Context window
Max output
32K
Max output tokens
Start testing Grok 4.7
Ask a question — the answer streams in, followed by token usage, latency and an estimated cost.
Grok 4.7 API quickstart
Call Grok 4.7 in the OpenAI Chat Completions format. Copy-ready cURL, Python and Node.js samples below.
Code sample
Endpoint:/v1/chat/completions
curl https://api.apiko.app/v1/chat/completions \
-H "Authorization: Bearer $APIKO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.7",
"messages": [{"role": "user", "content": "Hello"}]
}'Tip: set APIKO_API_KEY to a key created on the API keys page.
Works with the official SDKs — swap in the base URL, API key and model ID.
Full Grok 4.7 API docsManage API keysOne APIKO key works across every listed model.
Grok 4.7 API pricing
Billed on the input, output and cached tokens reported in usage; every price is per 1M tokens.
- Input tokens90% off
- $2.00$0.200/ 1M tokens
The prompt and context you send to the model
- Output tokens90% off
- $6.00$0.600/ 1M tokens
What the model generates, reasoning tokens included
- Cached input
$0.500$0.050/ 1M tokens
| Context window | Input | Output | Cached input |
|---|---|---|---|
| ≤ 199,999 tokens | $0.200 | $0.600 | $0.050 |
| > 199,999 tokens | $0.400 | $1.20 | $0.100 |
Grok 4.7 specs
Specs follow APIKO's public request contract first; anything it does not publish is taken from the model vendor's official docs, and shows as not disclosed only when neither publishes it.
- Streaming
- Supported
- Tool calling
- Supported
- Structured JSON
- Supported
- Reasoning mode
- Supported
- Input modality
- text · image
- Output modality
- text
- Reasoning levels
- Not disclosed
- Max output
- 32K per response (16K on the free trial)
About Grok 4.7
xAI's Grok 4.7, the successor to Grok 4.6, built for coding, reasoning and agent work. 500K context, function calling and image input, through the OpenAI-compatible Chat Completions API.
APIKO serves this model at /v1/chat/completions. Try prompts and parameters in the playground on this page first, then connect your server with the same APIKO API key.
- Provider
- xAI
- Endpoint
- /v1/chat/completions
- Context window
- 500K
- Model ID
- grok-4.7
How to use Grok 4.7
The playground and the API share one model ID — three steps take you from trying a prompt to production calls.
Step 1
Try it online
Test the system prompt, output length and sampling settings in the playground.
Step 2
Manage API keys
Sign in to see your keys or create one; one key works across every listed model.
Step 3
Connect your server
Send requests to /v1/chat/completions and record cost from the usage field.
Compare Grok 4.7 with other xAI models
Live APIKO prices per 1M tokens. Every model here works with the same API key — switch by changing the model ID.
| Model | Context window | Input | Output |
|---|---|---|---|
| Grok 4.6grok-4.6 | 500K | $0.200 | $0.600 |
| Grok 4.7This pagegrok-4.7 | 500K | $0.200 | $0.600 |
Comparing models and price tiers?
See live prices for every modelGrok 4.7 FAQ
How much does the Grok 4.7 API cost?
On APIKO it costs 10% of xAI's list price in both tiers. xAI lists $2 input / $6 output / $0.50 cached per 1M tokens for prompts under 200K, and $4 / $12 / $1 for the whole request at 200K or more. APIKO's live prices for both tiers are shown in the pricing section above.
What is the Grok 4.7 model ID?
The model ID is grok-4.7. Call it through the OpenAI-compatible Chat Completions endpoint at https://api.apiko.app/v1/chat/completions.
When was Grok 4.7 released?
xAI's docs give no release date. Third-party reports put it at 21 September 2026. According to xAI, its knowledge cutoff is May 2026.
What is the Grok 4.7 context window?
500K tokens. A prompt of 200K tokens or more is billed at the long-context rate for the whole request.
How does Grok 4.7 compare with Grok 4.6?
Both have the same official price and a 500K context window. Grok 4.7 is the newer release, with a May 2026 knowledge cutoff. Both are available on APIKO, so you can switch by changing the model ID (grok-4.6 or grok-4.7).
Is there a free Grok 4.7 API?
There is no permanent free tier. New APIKO accounts get a small free trial credit that works on every model, Grok 4.7 included.
How is Grok 4.7 billed?
By input and output tokens at the per-1M rates above; cached input uses its published rate when available. See the failed-request question below for the refund rule.
Is it OpenAI-compatible?
Yes. Point the OpenAI SDK at the gateway base URL, replace the model id, and keep the rest of your request unchanged.
How do I get an API key?
Sign up, then create an API key in your console. One API key can call every model on the gateway.
Can I stream responses?
Yes. Set stream: true; for Chat Completions, also send stream_options.include_usage = true to receive usage in the final event.
What if a request fails?
You are not billed for failed or errored calls. Retry, and if it keeps failing, contact us via the live chat at the bottom right of the page.