🌐
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...
Grok
This is it: The world’s smartest AI, Grok 4, now available to SuperGrok users. ... SuperGrok Heavy users will also have access to Grok 4 Heavy, for your more challenging tasks. ... Condense lengthy documents into concise summaries, highlighting key points and actionable findings.
News
We are excited to announce xAI ... frontier AI products available first to United States Government customers. ... Grok 4 is the most intelligent model in the world. It includes native tool use and real-time search integration, and is available now to SuperGrok and Premium+ subscribers, as well as through the xAI API...
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.
🌐
Merge.dev
merge.dev › blog › grok-api-key
How to get your Grok API key (5 steps)
January 2, 2025 - Below the welcome message, you should see a small text block that reads, “Manage API keys.” Click on this.
Discussions

Free xAI Grok API Key/Credits in 2024
I haven’t used the grok models, but is it true that they are a lot less restrictive than the open AI and the antropic ones ? because to me that would be important thing I’m sick of being curtailed by the random guardrails. More on reddit.com
🌐 r/LLMDevs
11
8
November 6, 2024
I have got my free API key, now what are the best ways to use it
Go to chat-preview.lobehub.com then go to settings by clicking on logo on left corner of website In OpenAI section, add the API key and the base url (api proxy address) api key: you already got it start with xai- api proxy address: " https://api.x.ai/v1 " update the model-list to have grok-beta, you can also add grok-vision-beta there the image shows the settings details: https://i.imgur.com/9OZz9Mt.png More on reddit.com
🌐 r/grok
8
7
November 27, 2024
How to use Grok api key in SillyTavern.
Edit: To use it on SillyTavern, You'll have to paste https://api.x.ai/v1 in the server URL section. and You can paste the API key in API key field. The API by default uses grok-2-1212 model for now. More on reddit.com
🌐 r/SillyTavernAI
2
7
December 17, 2024
How do I use Grok (free)?
X.ai website. Sign in and get $25 in credits until the end of the year. Then make a simple web app that uses it, an api configured for completions, and boom, your using grok. More on reddit.com
🌐 r/grok
13
11
November 22, 2024
🌐
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 is our flagship AI model designed to deliver truthful, insightful answers. ... Create an API Key and make your first request.
🌐
Grok API
grok-api.apidog.io › introduction-933934m0
Introduction - Grok API
Inspired by the Hitchhiker's Guide ... apps, as well as Grok in X experience. Build with Grok 3To access the Grok 3 models via API, please create an xAI account and an API key....
🌐
Apideck
apideck.com › blog › how-to-get-your-grok-xai-api-key
How to Get Your Grok (XAI) API Key
September 10, 2025 - Grok API keys typically start with "xai-". Store your key securely: ... curl https://api.x.ai/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY_HERE" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-1", "messages": [ { ...
🌐
xAI
docs.x.ai › docs › tutorial
The Hitchhiker's Guide to Grok | xAI
curl https://api.x.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $XAI_API_KEY" \ -m 3600 \ -d '{ "messages": [ { "role": "system", "content": "You are Grok, a highly intelligent, helpful AI assistant." }, { "role": "user", "content": "What is the meaning of life, the universe, and everything?"
🌐
Griptapenodes
docs.griptapenodes.com › en › stable › how_to › keys › grok
How to get and use an xAI Grok API key - Griptape Nodes
You can access these models via the GrokPrompt config node. To make use of these, however, you'll need to have an XAI account, and generate an API key. It's worth noting as well, that xAI is a paid service, and to make use of it, you'll need to set up billing details on their website.
Find elsewhere
🌐
TypingMind
typingmind.com › guide › use-grok-api-key-to-chat-with-ai
How to use xAI API Key for AI chat | TypingMind
September 29, 2025 - This key allows you to access their AI models directly and pay only for what you use. ... Save your API key in a secure password manager or encrypted noteSometimes, this provider will require you to add a payment method to your account before ...
🌐
OpenRouter
openrouter.ai › x-ai › grok-4.1-fast
Grok 4.1 Fast - API, Providers, Stats | OpenRouter
November 19, 2025 - Grok 4.1 Fast is xAI's best agentic tool calling model that shines in real-world use cases like customer support and deep research. Run Grok 4.1 Fast with API
🌐
Puter
developer.puter.com › tutorials › free-unlimited-grok-api
Free, Unlimited Grok API
December 14, 2025 - Learn how to use Puter.js to access Grok's AI capabilities for free. Create interactive chatbots, creative writing tools, and context-aware applications without any API keys.
🌐
AIMLAPI
aimlapi.com › build-with-grok-2-api
Build with Grok 2 API | AIMLAPI xAI Grok‑2 Beta Integration
... Begin by signing up on our AI/ML API platform. Create your account to gain access to over 200 AI models. In the Playground, navigate to the Key Management section and click on Create API Key.
🌐
Obsidian Security
obsidiansecurity.com › resource › grok-api-key-leak-exposes-xai-models-to-major-security-risks
Grok API Key Leak Exposes xAI Models to Major Security Risks
What Happened: A Department of Government Efficiency staffer accidentally exposed a sensitive API key linked to xAI’s Grok in a public GitHub repository. This leak grants access to at least 52 of xAI’s large language models. ... On July 13th, an employee from the Department of Government Efficiency unintentionally committed a script titled “agent.py” to a public GitHub repository, leaking a valid Grok API key in the process
🌐
DataCamp
datacamp.com › tutorial › grok-3-api
Grok 3 API: A Step-by-Step Guide With Examples | DataCamp
May 1, 2025 - Both model versions support advanced capabilities like native function calling and structured response generation, helping developers easily build reliable and predictable AI workflows. If you want to know more about Grok 3’s architecture and performance, make sure to take a look at this overview of Grok 3. In this section, I will explain how to create an API key, set up a Python environment to connect to the Grok API, and make your first user request.
🌐
AI SDK
ai-sdk.dev › providers › ai-sdk-providers › xai
AI SDK Providers: xAI Grok
If you need a customized setup, ... proxy servers. The default prefix is https://api.x.ai/v1. ... API key that is being sent using the Authorization header....
🌐
Grok AI
grokai.bot › home
Grok AI API - Grok AI
May 15, 2025 - Register for a Grok AI Account: Sign up, verify your identity, and access the developer dashboard. Obtain and Secure Your API Key: Generate your key and store it securely using environment variables.
🌐
Analytics Vidhya
analyticsvidhya.com › home › how to access grok 3 api?
How to Access the Grok 3 API? - Analytics Vidhya
Voila, there you have your API key! Be sure to store it carefully and securely. Let’s try to check if our Grok 3 model can respond using this Code Snippet, which is provided in the Grok xAI documentation.
Published   July 25, 2025
🌐
Apidog
apidog.com › blog › xai-grok-api
Overview of xAI Grok & How to Use Its API
August 1, 2025 - Follow these steps to get your Grok API key: Step 1: Access the Grok PromptIDE (ide.x.ai), log in with your X account, click the profile icon in the top right corner, and select "API Keys".
🌐
YouTube
youtube.com › watch
How to Generate the xAI Grok API Key - YouTube
👉 Generate your Grok API key here: https://console.x.ai/In this video, I’ll show you how to generate your xAI Grok API key step by step.🧠 What You'll Learn...
Published   May 8, 2025
🌐
Apidog
apidog.com › blog › grok-3-grok-3-mini-api-free
How to Use Grok 3 and Grok 3 Mini API for Free
April 11, 2025 - Once installed, create a new project and add the Grok 3 API endpoint: https://openrouter.ai/api/v1/chat/completions. Next, set up different environments (e.g., development and production) in Apidog.