🌐
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
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.
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

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
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
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
API Key or No Key
Hey u/Jappzqz , welcome to the community! Please make sure your post has an appropriate flair. Join our r/Grōk 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
1
3
August 3, 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
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 - Critical Security Notice: Your API key will only be shown once. Copy it immediately: ... Grok API keys typically start with "xai-".
🌐
Griptapenodes
docs.griptapenodes.com › en › stable › how_to › keys › grok
How to get and use an xAI Grok API key - Griptape Nodes
Grok is a family of Large Language Models (LLMs) developed by xAI. 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.
Find elsewhere
🌐
xAI
docs.x.ai › docs › tutorial
The Hitchhiker's Guide to Grok | xAI
Create an API key via the API Keys Page in the xAI API Console.
🌐
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
🌐
Puter
developer.puter.com › tutorials › free-unlimited-grok-api
Free, Unlimited Grok API
December 14, 2025 - In this tutorial, we'll show you how to use Grok through Puter.js to create engaging and intelligent applications. Puter is the pioneer of the "User-Pays" model, which allows developers to incorporate AI capabilities into their applications while each user will cover their own usage costs. This model enables developers to access advanced AI capabilities for free, without any API keys, usage costs, or server-side setup.
🌐
Cline
docs.cline.bot › provider-config › xai-grok
xAI (Grok) - Cline
grok-beta - xAI’s Grok Beta model ... “xAI” from the “API Provider” dropdown. Enter API Key: Paste your xAI API key into the “xAI API Key” field....
🌐
OpenRouter
openrouter.ai › x-ai › grok-4.1-fast:free
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
🌐
xAI
docs.x.ai › docs › key-information › using-management-api
Using Management API | xAI
FAQ - Grok Website / Apps · Loading... Some enterprise users may prefer to manage their account details programmatically rather than manually through the xAI Console. For this reason, we have developed a Management API to enable enterprise users to efficiently manage their team details. You can read the endpoint specifications and descriptions at Management API Reference. You need to get a management key, which is separate from your API key, to use the management API.
🌐
Apidog
apidog.com › blog › xai-grok-api
Overview of xAI Grok & How to Use Its API
August 1, 2025 - Install the Grok Python SDK on your computer using the following PIP command, and then refer to the detailed usage guide. ... Step 1: Before using the SDK, save your API key in the XAI_API_KEY environment variable.
🌐
Vercel
vercel.com › marketplace › xai
xAI for Vercel – Vercel
Your product will provide you access to an API key via anXAI_API_KEY environment variable. Clicking "Open in Grok" allows you to explore the available models in the xAI console. You can also experiment with them in the playground before integrating ...
🌐
DataCamp
datacamp.com › tutorial › grok-3-api
Grok 3 API: A Step-by-Step Guide With Examples | DataCamp
May 1, 2025 - The next step is to initialize the client. We call the OpenAI function with our API key from the .env file and the URL of the Grok server, and assign it to the variable client.
🌐
GitHub
github.com › RMNCLDYO › grok-ai-toolkit
Python API & CLI for Grok Language Models
🤖 Interactive chat sessions with Grok by xAI language models ... Obtain an API key from xAI.
Starred by 27 users
Forked by 3 users
Languages   Python
🌐
Viblo
viblo.asia › p › how-to-use-the-grok-3-api-EoW4oQkXLml
How to Use the Grok 3 API?
April 10, 2025 - To integrate the Grok-3 API into ... official developer platform. Generate API Keys: Once registered, generate your unique API keys, including an Access Key and a Secret Key....
🌐
xAI
x.ai › news › api
API Public Beta | xAI
November 4, 2024 - Our REST API is fully compatible with the ones offered by OpenAI and Anthropic. This simplifies migration. For example, if you’re currently using the OpenAI Python SDK, you can start using Grok by simply changing the base_url to https://api.x.ai/v1 and using your xAI API key that you created on console.x.ai.