grok-4 · Grok · text
Grok 4 is xAI's flagship model with a 256K context window and powerful reasoning and real-time information capabilities. It supports Function Calling, Structured Output, and vision understanding. Integrated with real-time data from X (Twitter), it's ideal for tasks that require the latest information.
256K context; Function Calling; Structured Output; vision understanding; JSON mode; X real-time data integration; fast responses.
Real-time information Q&A; news summarization; social media analysis; code generation; multi-turn conversations; Agent workflows; image understanding.
No image generation; no cache_write support; high concurrency requires a quota increase; real-time data depends on the X platform; max_tokens capped at 16K.
Anthropic official CLI coding agent. Multi-file edits, tool use, long-context reasoning.
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
export ANTHROPIC_BASE_URL="https://api.robovai.com"
export ANTHROPIC_MODEL="grok-4"
claude