NezhaGateNezhaGate
Chat

Grok 4.7

⧉
grok-4.7

Grok 4.7 is xAI's flagship reasoning model, strong at complex reasoning, coding and long-document analysis, with image input. It always thinks before it answers; the reasoning comes back in reasoning_content and reasoning tokens bill at the output rate. Tool calling, JSON Schema structured output and streaming are supported. Fully OpenAI-compatible: set model to grok-4.7. Pay-as-you-go, failed calls never billed, and no long-context surcharge.

ChatReasoningLong contextTool callingOpenAI compatible

Live Test · Playground

Try out Grok 4.7 right here (available after login).

Input

Advanced
Web search
Memory · multi-turn

Conversation

Start a conversationType a message below to begin

About Grok 4.7

Grok 4.7 is xAI's flagship reasoning model, offered on NezhaGate through an OpenAI-compatible API. It is strong at complex reasoning, coding and long-document analysis, and supports image input, tool calling and JSON Schema structured output. The model always thinks before it answers: the reasoning returns in message.reasoning_content, the answer in content, and reasoning tokens bill at the output rate within usage.completion_tokens. Set model to grok-4.7; pay-as-you-go, failed calls never billed.

Use cases

Complex reasoning and math

It thinks before it answers, which suits math, logic and multi-step problems; the reasoning is available in reasoning_content.

Coding and debugging

Write, explain and change code, trace the cause of an error and propose a fix that runs.

Long-document analysis

Summaries and Q&A over contracts, papers and logs. Verified to pinpoint a fact inside a 240K-token document, with no long-context surcharge.

Agents and structured output

OpenAI-style tools / tool_calls (streamed too) and strict JSON Schema output, plus image input, for workflow orchestration and data extraction.

How to choose

Pick Grok 4.7 for strong reasoning, long-document analysis or structured output; for lower-cost everyday chat, DeepSeek V4.1 Flash or GLM-5.3 work well, and switching is just a change of the model field.

FAQ

Can I turn thinking off or change the reasoning effort?
No. Grok 4.7 always thinks before it answers and decides how deeply on its own: reasoning_effort is accepted but does not change the depth. Reasoning tokens bill at the output rate within usage.completion_tokens, and max_tokens limits only the visible answer, not the reasoning. For shorter replies, ask for brevity in the prompt.
Which parameters are not supported?
stop is not supported and returns a 400, so leave it out. presence_penalty, frequency_penalty and logit_bias are ignored by the gateway without an error. temperature, top_p, max_tokens, tools, response_format (including json_schema) and stream all work normally.
Why does a short prompt show over a thousand input tokens?
The upstream adds a fixed preamble of about 1,200 tokens to every request, so even a one-word prompt shows 1,200+ prompt_tokens. Most of it is served from cache and bills at the cache rate, so the actual cost is very small.
How long is the context, and do long prompts cost more?
The official context window is 500K tokens, and we verified precise retrieval inside a 240K-token document. The official price doubles above 200K input tokens; on NezhaGate it does not, so long and short prompts cost the same per token.
Am I charged for failed calls?
No. Only successful calls are settled, at their actual usage; upstream errors and timeouts never touch your balance.

Related Models

Explore other models you can integrate.

View all →