Model detail
Grok 4 0709
Grok 4 is xAI's latest reasoning model with a 256k context window. It supports parallel tool calling, structured outputs, and both image and text inputs. Note that reasoning is not exposed, reasoning cannot be disabled, and the reasoning effort cannot be specified. Pricing increases once the total tokens in a given request is greater than 128k tokens. See more details on the [xAI docs](https://docs.x.ai/docs/models/grok-4-0709)
Model specs
- Model ID
-
grok-4-0709
- Context length
- 256K
- Max output
- –
- I/O modalities
- Released
- 2025-07
02
API endpoints
One MixRoute gateway, OpenAI-compatible
-
OpenAI-compatible
/v1/chat/completionsPOST
03
Pricing
Flat rate, unit: /1M Tokens
Input
$3.0000 /1M Tokens
Completion
$15.0000 /1M Tokens
Cache read
$0.7500 /1M Tokens
05
Selection summary
Quickly judge whether it fits your workload
What is this model good for?
xAI's latest reasoning model with a 256k context window
Grok 4 is xAI's latest reasoning model with a 256k context window. It supports parallel tool calling, structured outputs, and both image and text inputs.
What should you check before using it?
256,000 context tokens
xAI model that supports reasoning, tool calling and structured output. Knowledge cutoff: 2025-07. Released 2025-07-09.
Why use it through MixRoute?
Swap the base URL, keep the Grok 4 client
MixRoute serves Grok 4 on the OpenAI-compatible endpoint /v1/chat/completions; point your existing client at https://api.mixroute.ai/v1 with the model ID grok-4-0709 and re-run your integration tests.
07
Capabilities & compatibility
Unconfirmed capabilities stay "Unknown," no guesses
Tool calling
Grok 4 supports function and tool calls.
tools definition; the response returns tool_calls to execute and feed results back.
Structured output
Grok 4 can produce JSON-formatted output on demand.
response_format: { type: "json_schema" } forces valid JSON output.
Streaming
Grok 4 supports streamed responses.
stream: true streams tokens incrementally, so chat UIs render as they arrive.
Prompt caching
Grok 4 supports prompt caching under supported routing conditions.
Vision input
Grok 4 can process image inputs alongside text.
image_url content part alongside text messages.
OpenAI SDK
Call Grok 4 through MixRoute's OpenAI-compatible endpoint.
base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.
08
Token cost estimator
Live estimate from this page's pricing, not an actual bill
Share of the same prefix read repeatedly, up to 100%
09
FAQ
Recorded results for Grok 4: aa_intelligence_index 37.8; arena_text 82.7. Benchmark positions are a coarse filter only — run your own prompts against the candidate models before you commit, because ranking shifts with task shape and prompt style.
One endpoint, a testable decision
Test this model and alternate routes with the same request format
Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.