grok-4.7

Multimodal reasoning, coding, and tool-oriented workloads.

API IDgrok-4.7
View setup
View usage

Overview

Context
500,000 tokens
Max output
500,000 tokens
Input
Text, Image
Output
Text
Providers
Azure AI Foundry
Released
Sep 2026
API compatibility
  • OpenAI Chat Completions
Recommended for
  • General-purpose reasoning
  • Long-context analysis
  • Production assistants

Keep in mind: Higher token rates apply from 200,000 prompt tokens

Supported features
  • Function calling: Supported
  • Structured outputs: Supported
  • Vision: Supported
  • Streaming: Supported
  • Reasoning: Supported
  • Prompt caching: Supported
Supported parameters
reasoning_effortresponse_formatfrequency_penaltyfunction_callfunctionslogit_biaslogprobsmax_completion_tokensmax_tokensnparallel_tool_callspredictionpresence_penaltyprompt_cache_keyseedservice_tierstorestreamstream_optionstemperaturetool_choicetoolstop_logprobstop_p
View API reference

Make your first request

View full setup
curl --fail-with-body https://gateway.primexos.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"grok-4.7","messages":[{"role":"user","content":"Hello from Primex"}],"stream":false}'

Executing this request uses your account’s API credits.