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
The Hitchhiker's Guide to Grok · Models and Pricing · What's New? Key Information · Manage Billing · Consumption and Rate Limits · Regional Endpoints · Collections · new · Using Management API · Usage Explorer · Migrating to New Models · Debugging Errors ·
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
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
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
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
Videos
06:31
xAI Dropped Grok-4.1… and It’s Actually SCARY Good - YouTube
05:05
SECRET Way to Use GPT-4.1, Grok & DeepSeek FREE (Aug 2025 Update) ...
03:41
AI NEWS : Grok 3 API - Gpt 4.1 , Veo 2 and much more..... - YouTube
19:23
Grok 4.1 Fast Is FREE Now… But Is It Any Good? - YouTube
19:49
Grok 4.1 vs Gemini 3 Pro - Which Model is THE ONE? | Prompt & Coding ...
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.
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.
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))
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.