Skip to content
xAI

Grok 4.7

xai/grok-4.7

Grok 4.7 is a reasoning model by xAI with vision, function calling, structured output — designed for complex, multi-step problem solving where accuracy matters more than speed. It features an extended 500K token context window, suitable for processing long documents and complex conversations. Priced at $2 per million input tokens and $6 per million output tokens. Access Grok 4.7 through Inworld LLM Inference with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.

Input
$2.00
Output
$6.00
Cache read
$0.50
Context
500K
Max output
—
TextImage→Text
Function CallingReasoningStructured outputVision
Run on your server. Set INWORLD_API_KEY to your API key. Python requires pip install openai; JavaScript requires Node.js 18+; save it as example.mjs.
curl --fail-with-body https://api.inworld.ai/v1/chat/completions \
  -H "Authorization: Basic $INWORLD_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "xai/grok-4.7",
    "messages": [{"role": "user", "content": "Hello"}],
    "stream": true
  }'
Model Grok 4.7OpenAI SDK compatible

Pricing and providers

Access Grok 4.7 through Inworld LLM Inference or speech to speech via xAI. By using the providers below you agree to their terms, listed under each provider's name in the Legal section.

Modalities
xAIThis pagexai/grok-4.7
$2.00$6.00$0.50—500K—
TextImage→Text
Prices in USD per 1M tokens.

Start building with Grok 4.7

Access Grok 4.7 and every other model through LLM Inference or speech to speech. Create a free account and start in minutes.