Grok 4.7
Grok 4.7 (x-ai/grok-4.7) is a multimodal language model from SpaceXAI on the OceanToken API at $2.00 per 1M input tokens and $6.00 per 1M output tokens, with a 500K-token context window and reasoning, tool calling, structured outputs and image input.
- Context window
- 500K tokens
- Max output
- 450K tokens
- Input
- text + image + file
- Output
- text
LearnWhat Grok 4.7 is and what it can do
What is Grok 4.7?
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.
- Per 1M input / output tokens
- $2.00 / $6.00
- Context window
- 500K
- Input
- text + image + file
Starting price
Up to 450K output per reply
Output: text
What Grok 4.7 can do
Multi-step reasoning
Tool-using agents
Structured outputs (JSON)
Image understanding
CompareHow its price and specs stack up
Grok 4.7 vs similar models: price
What you pay for Grok 4.7 and the models most like it: the same kind of work, from the families we feature, priced within about three times of it.
Grok 4.7SpaceXAI
Qwen3.8 MaxQwen
Gemini 3.5 FlashGoogle
GLM 5.3Z.ai
GPT-6.1 SolOpenAI
Claude Sonnet 5.5Anthropic
Grok 4.7 vs Qwen3.8 Max
Qwen3.8 Max costs $3.80: 5% less than Grok 4.7.
−25% at the top tier
Grok 4.7 vs Gemini 3.5 Flash
Gemini 3.5 Flash costs $4.725: 1.2× the price of Grok 4.7.
−10% at the top tier
Grok 4.7 vs GLM 5.3
GLM 5.3 costs $2.465: 38% less than Grok 4.7.
−25% at the top tier
Grok 4.7 vs GPT-6.1 Sol
GPT-6.1 Sol costs $5.40: 1.4× the price of Grok 4.7.
−10% at the top tier
Grok 4.7 vs Claude Sonnet 5.5
Claude Sonnet 5.5 costs $5.40: 1.4× the price of Grok 4.7.
−10% at the top tier
Grok 4.7 benchmarks
Scores from independent leaderboards. We did not run these tests ourselves.
- Intelligence Index
- 34.3
- LMArena Text
- 1,441
- Terminal-Bench 4.0
- 25.8%
- Humanity’s Last Exam
- 43.1%
Score out of 100 · Artificial Analysis
Human preference rating · LMArena
Tasks solved · Artificial Analysis
Answers correct · Artificial Analysis
Source: Artificial Analysis and LMArena, as of November 1, 2026.
Grok 4.7 specs
The technical card for Grok 4.7, from the OceanToken catalog.
- Context window
- 500K tokens
- Max output
- 450K tokens
- Input
- text, image, file
- Output
- text
- Reasoning
- Yes
- Tool calling
- Yes
- Structured outputs
- Yes
- Prompt caching
- Reads $0.50
500,000
450,000
reasoning_effort
tool_choice
response_format
official price, at every tier
Grok 4.7 model ID and endpoint
- OceanToken model ID
x-ai/grok-4.7- OpenAI-compatible base URL
https://api.oceantoken.ai/v1- Endpoint
POST /v1/chat/completions
Buy and buildWhat it costs and how to send your first request
Grok 4.7 API pricing
Prices come from the OceanToken catalog as of November 5, 2026. You pay per use from a prepaid balance, with no subscription.
- Input
- $2.00 / 1M tokens
- Output
- $6.00 / 1M tokens
- Cached input
- $0.50 / 1M tokens
- Web search
- $0.005 / search
OceanToken starting price as of November 5, 2026. The console always shows the current price. How tiers work
Add credits Specs, request sample and alternatives in the docsGrok 4.7 cost calculator
Pick a typical request or enter your own token counts. The calculator uses the starting prices on this page and shows the same workload on the models compared above.
- Per request
- $0.14
- Per month
- $144.00
The same workload per month
At the starting price (tier 1). Cached input is billed at the cache-read price; cache writes are left out because they depend on how often your prompt prefix changes. Your console shows the rate for your tier.
What a request costs
| Request | Input tokens per request | Output tokens per request | Cost |
|---|---|---|---|
| Chat reply | 2,000 | 600 | $0.0076 |
| Agent step | 60,000 | 4,000 | $0.14 |
| Long document summary | 400,000 | 12,000 | $0.87 |
Input and output tokens at the starting price above, with no caching.
How to use Grok 4.7 on OceanToken
Three steps from no account to a working request. The same key and balance work for every model in the catalog.
Create an account and get an API key
Create an OceanToken account, then create a key. One key works for every model your account can use.
Add credits
OceanToken is prepaid: add credits, and each request is billed from that balance. Your console shows the rate for your tier.
Call Grok 4.7 from your code
Point an OpenAI SDK at
https://api.oceantoken.ai/v1and use the model IDx-ai/grok-4.7. The code below sends one request.Get API Key from openai import OpenAI # Your API Key from the OceanToken console client = OpenAI(base_url="https://api.oceantoken.ai/v1", api_key="YOUR_API_KEY") reply = client.chat.completions.create( model="x-ai/grok-4.7", messages=[{"role": "user", "content": "Hello"}]) print(reply.choices[0].message.content)# Your API Key from the OceanToken console curl https://api.oceantoken.ai/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "x-ai/grok-4.7", "messages": [{"role": "user", "content": "Hello"}]}'
Grok 4.7 API: frequently asked questions
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.
Grok 4.7 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens. Cached input costs $0.50 per 1M tokens. Web search costs $0.005 per search. These are OceanToken starting prices as of November 5, 2026, charged per use to your prepaid balance. The console always shows the current price.
Grok 4.7 has a context window of 500K tokens (500,000 tokens).
Grok 4.7 supports tool calling, structured outputs, image input (vision) and reasoning. It takes text, image and file input and returns text.
Send requests to https://api.oceantoken.ai/v1/chat/completions with the model ID x-ai/grok-4.7 and your OceanToken API key. The API is OpenAI-compatible, so an OpenAI SDK needs only the base URL https://api.oceantoken.ai/v1 and your key. The Responses API and the Anthropic Messages API (/v1/messages) work too. The same OceanToken API key works for every model your account can use. Full reference: docs.oceantoken.ai.
OceanToken is prepaid. Open Credits in the console, choose an amount and pay by card on Stripe's hosted checkout page (Link works too). Your balance updates a few seconds after payment. Have a trial code? Redeem it on the same page.
Purchased credits are valid for 12 months from the date of purchase. Credits from trial codes, promotions or gifts may have a shorter validity. All purchases are final and non-refundable, except where the law requires a refund. Section 6 of the Terms of Service has the details.
Not if the request never ran: a request refused for an insufficient balance or by a safety check, or one whose provider fails before returning any output, is not charged. A video job that fails releases the amount it held. If a request breaks off after the model has started producing output, for example a stream cut off part-way, you pay for the tokens that were processed and generated for it.
Sources
- OceanToken model catalog: every price, context window, input, output and parameter on this page (November 5, 2026).
By the OceanToken team, from the catalog and the sources above.
Whatever you want.