🌐
xAI
x.ai › api
API | xAI
1 month ago - Our API is compatible with OpenAI and Anthropic’s SDKs. Migrating is as easy as generating an API key and changing a URL.Start building · Installing Grok... We're proud to bring you Grok 4 access on the API, offering advanced reasoning, coding, and visual processing capabilities.View docs
Grok
Meet Grok by xAI: your truth-seeking AI companion for honest answers and insightful analysis.
News
State-of-the-art RAG system built directly into our API. ... Bringing the power of Grok Voice to all developers. ... Announcing Our Transformative Partnership with the Government of El Salvador. ... Grok 4.1 is now available to all users on grok.com, 𝕏, and the iOS and Android apps.
Careers
We are a team of AI technologists and business leaders on a mission to build AI systems that can help humanity understand the world better.
Colossus
We’re running the biggest supercomputer in the world. From start to finish, Colossus was built in 122 days—outpacing every estimate. It’s the most powerful AI training system out there, and it’s expected to double in size in a matter of months.
🌐
xAI
docs.x.ai › docs › models › grok-4-0709
Grok 4
Responses API · Chat with Reasoning · Tools · new · Files · new · Live Search · Using Collections · new · Image Generations · Voice · new · Stream Response · Deferred Chat Completions · Asynchronous Requests · Function Calling · Structured Outputs · Fingerprint · Migration from Other Providers · Prompt Engineering for Grok ...
Discussions

Unofficial Grok 4 Heavy API
Hey u/Xytronix , welcome to the community! Please make sure your post has an appropriate flair. Join our r/Grok Discord server here for any help with API or sharing projects: https://discord.gg/4VXMtaQHk7 I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/grok
3
1
July 12, 2025
Grok 4 Fast Impressive performance - Gemini 2.5 pro level
I got it write a quick python script to do file manipulation. Completed around 250 lines of code in 1.4 seconds. Very nice. More on reddit.com
🌐 r/singularity
111
222
September 20, 2025
Is there a free web UI to send queries to Grok 4 using API access?
Hey u/PashkaTLT , welcome to the community! Please make sure your post has an appropriate flair. Join our r/Grok Discord server here for any help with API or sharing projects: https://discord.gg/4VXMtaQHk7 I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/grok
4
1
July 12, 2025
Where is the 'available' grok 4 xAI API?
https://openrouter.ai/x-ai/grok-4 256,000 context Starting at $3/M input tokens Starting at $15/M output token Same price as Claude Sonnet 4. More on reddit.com
🌐 r/grok
3
2
April 23, 2025
🌐
DataCamp
datacamp.com › tutorial › grok-4-api
Grok 4 API: A Step-by-Step Guide With Examples | DataCamp
July 15, 2025 - Learn how to use Grok 4’s API through practical examples featuring image recognition, reasoning, function calling, and structured output.
🌐
xAI
x.ai › news › grok-4
Grok 4 | xAI
The Grok 4 API empowers developers with frontier-level multimodal understanding, a 256,000 context window, and advanced reasoning capabilities to tackle complex tasks across text and vision.
🌐
OpenRouter
openrouter.ai › x-ai › grok-4
Grok 4 - API, Providers, Stats | OpenRouter
Grok 4 is xAI's latest reasoning model with a 256k context window. It supports parallel tool calling, structured outputs, and both image and text inputs. Run Grok 4 with API
🌐
xAI
docs.x.ai › docs › overview
xAI API
Welcome to the xAI developer docs! Our API makes it easy to harness Grok's intelligence in your projects.
🌐
Grok
grok.com
Grok
Grok is a free AI assistant designed by xAI to maximize truth and objectivity. Grok offers real-time search, image generation, trend analysis, and more.
🌐
Apidog
apidog.com › blog › how-to-access-grok-4-api
How to Access Grok 4 API
July 18, 2025 - After verification, you'll gain access to the developer dashboard where you can generate API keys. Once your account is active, select the appropriate subscription tier based on your needs. The SuperGrok plan provides the most comprehensive access to Grok 4 features, while the Basic plan offers limited functionality for testing purposes.
Find elsewhere
🌐
CometAPI
cometapi.com › how-to-access-grok-4-api
How to Access Grok 4 API - CometAPI - All AI Models in One API
July 15, 2025 - Upon subscribing, navigate to the “API Keys” section, generate a new key, and securely store it for authentication in your code. The Grok 4 API is built to be compatible with both OpenAI and Anthropic SDKs.
🌐
AI/ML API
docs.aimlapi.com › api-references › text-models-llm › xai › grok-4
grok-4 | AI/ML API Documentation
December 5, 2025 - How can I assist you today?", "refusal": null, "annotations": null, "audio": null, "tool_calls": null }, "finish_reason": "stop", "logprobs": null } ], "model": "x-ai/grok-4-07-09", "usage": { "prompt_tokens": 137, "completion_tokens": 914, "total_tokens": 1051, "completion_tokens_details": null, "prompt_tokens_details": null } } ... import requests import json # for getting a structured output with indentation response = requests.post( "https://api.aimlapi.com/v1/chat/completions", headers={ # Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>: "Authorization":"Bearer <YOUR_AIMLAPI_KEY>", "Content-Type":"application/json" }, json={ "model":"x-ai/grok-4-07-09", "messages":[ { "role":"user", "content":"Hello" # insert your prompt here, instead of Hello } ] } ) data = response.json() print(json.dumps(data, indent=2, ensure_ascii=False))
🌐
Poe
poe.com › Grok-4
Grok-4 - Poe
Grok 4 is xAI's latest and most intelligent language model. It features state-of-the-art capabilities in coding, reasoning, and answering questions. It excels at handling complex and multi-step tasks.
🌐
CometAPI
cometapi.com › grok-4-api
Grok 4 API - CometAPI - All AI Models in One API
July 9, 2025 - The Grok 4 API is a developer-friendly, OpenAI-compatible interface that enables access to xAI’s latest large language model for advanced text generation, reasoning, and coding tasks via secure RESTful endpoints.
🌐
xAI
docs.x.ai › docs › models
Models and Pricing
The advanced agentic search capabilities powering grok.com are generally available in the new agentic tool calling API, and the Live Search API but will be deprecated by January 12, 2026. Live Search costs $25 per 1,000 sources requested, each source used (Web, X, News, RSS) in a request counts ...
🌐
Grok API
grok-api.apidog.io
Introduction - Grok API
Inspired by the Hitchhiker's Guide to the Galaxy, Grok is a maximally truth-seeking AI that provides insightful, unfiltered truths about the universe. xAI offers an API for developers to programmatically interact with our Grok models.
🌐
Puter
developer.puter.com › tutorials › free-unlimited-grok-api
Free, Unlimited Grok API
December 14, 2025 - <html> <body> <script src="https://js.puter.com/v2/"></script> <script> // Chat with Grok 4.1 Fast puter.ai.chat( "Explain quantum computing in a witty and engaging way.", {model: 'x-ai/grok-4.1-fast'} ).then(response => { puter.print(response.message.content); }); </script> </body> </html>
🌐
AIMLAPI
aimlapi.com › grok-4
Grok 4 AI by xAI is now Available | AI/ML API 🔥
‍Get API Key · Both models share the same architecture base, but Grok 4 benefits from 10× more compute on reasoning during RL. Grok 4 doubles the context window to 256K tokens, and introduces native tool use training during RL. In terms of output quality and technical depth, Grok 4 is a substantial upgrade.
🌐
xAI
docs.x.ai › docs › models › grok-4-fast-reasoning
Grok 4 Fast
Responses API · Chat with Reasoning · Tools · new · Files · new · Live Search · Using Collections · new · Image Generations · Voice · new · Stream Response · Deferred Chat Completions · Asynchronous Requests · Function Calling · Structured Outputs · Fingerprint · Migration from Other Providers · Prompt Engineering for Grok ...
🌐
Laozhang
blog.laozhang.ai › ai-tools › grok-4-api-free-access-alternatives-pricing-analysis-cost-effective-solutions-2025
Grok 4 API Free Access: Alternatives, Pricing Analysis & Cost-Effective Solutions 2025 – LaoZhang-AI
Developers searching for free access to Grok 4 API will find that xAI currently offers no free tier for their latest language model. However, multiple cost-effective alternatives and strategies exist to access similar capabilities without the premium pricing.
🌐
Techloy
techloy.com › xai-releases-grok-4-fast-with-free-access-and-api-pricing-details
xAI Releases Grok 4 Fast With Free Access and API Pricing Details
September 22, 2025 - For developers and businesses, Grok 4 Fast is also available through the xAI API. Two versions are offered: one tuned for reasoning-heavy work and another for lighter, faster use cases, both sharing the same 2 million token context window.
🌐
Artificial Analysis
artificialanalysis.ai › models › grok-4 › providers
Grok 4: API Provider Performance Benchmarking & Price Analysis | Artificial Analysis
Analysis of API providers for Grok 4 across performance metrics including latency (time to first token), output speed (output tokens per second), price and others. API providers benchmarked include Microsoft Azure, xAI.