Grok Overview
Grok is xAI’s flagship model series, known for real-time information (X/Twitter ecosystem) and a direct response style.
On 4ALL API, it uses the same unified interface as other series; simply change the model field to call it.
Integration Methods
Exactly the same as GPT/Claude/Gemini, OpenAI-compatible with zero changes:
curl https://api.4allapi.com/v1/chat/completions \ -H "Authorization: Bearer $AIPROXY_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-4.5", "messages": [{"role": "user", "content": "Hello, introduce yourself"}] }'For existing OpenAI SDK projects, you only need to change the model name; see Compatibility Mode Calls.
Capability Highlights
- Real-time capability: With internet-connected/X search, it is especially strong at understanding news, trending topics, and social media dynamics, see Web Search and X Search;
- Reasoning: Higher-tier models have strong math and logical reasoning abilities, see Chat and Reasoning;
- Style: Responses are relatively direct and humorous, making them suitable for conversational personas in community/social media products.
General Capabilities
Streaming Output, Multi-turn Conversations, and FC Function Calling are all supported according to the standard protocol; billing is also based on input/output tokens, see Pricing.