🌐
xAI
x.ai › api
API | xAI
1 month ago - Contact us to discuss your specific enterprise needs. ... 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
Starting today, developers can build on our Grok foundation models using our newly released API. We will run a public beta program until the end of 2024 during which everyone will get $25 of free API credits per month.
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 - You can sign in in one of three ways: enter your email address and password manually or go through an OAuth flow to authenticate either via your Twitter or Google account. ... Below the welcome message, you should see a small text block that ...
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
Xai API as grok-beta : custom model
How can I use a custom model with my own API? Xai API was released, and their model is grok-beta. How can I use this? Cursor does not have a spot to add my API key for my custom model. See picture. here are Xai docs for integration: Welcome to the xAI documentation More on forum.cursor.com
🌐 forum.cursor.com
1
October 25, 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 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 - Grok API
Build with Grok 3To access the Grok 3 models via API, please create an xAI account and an API key. ... The xAI API is a toolkit for developers to integrate xAI's Grok models into their own applications, the xAI API provides the building blocks to create new AI experiences.
🌐
Apideck
apideck.com › blog › how-to-get-your-grok-xai-api-key
How to Get Your Grok (XAI) API Key
September 10, 2025 - } ], "stream": false, "temperature": 0.7 }' Replace YOUR_API_KEY_HERE with your actual API key. A successful response will contain Grok's reply. ... import os import requests headers = { "Authorization": f"Bearer {os.getenv('GROK_API_KEY')}", ...
🌐
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.
🌐
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.
🌐
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.
Find elsewhere
🌐
DataCamp
datacamp.com › tutorial › grok-3-api
Grok 3 API: A Step-by-Step Guide With Examples | DataCamp
May 1, 2025 - conda create -n grok3 python=3.10 conda activate grok3 ... Time to get started with our first script! First, we need to import the functions we will be using from the packages we installed earlier, as well as os to read the API key.
🌐
Groq
console.groq.com › keys
API Keys - GroqCloud
Manage your project API keys. Remember to keep your API keys safe to prevent unauthorized access.
🌐
Reddit
reddit.com › r/aitoolstipsnews › how to get grok api key (step by step guide) | 2024
r/AIToolsTipsNews on Reddit: How to Get Grok API Key (Step by Step Guide) | 2024
August 9, 2024 - Grok is a fast LLM model like ChatGPT, but open source You need a Grok API key to use its features in programs A step-by-step guide is available to…
🌐
Elephas
elephas.app › blog › how-to-get-grok-api-key
How to Get Grok API Key (Step by Step Guide) | 2026
2 weeks ago - Click the "Copy" button to grab the key for later use. That's it! You can now access and use the Grok API key, you can now use the full potential of Grok through their Python SDK.
🌐
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.
🌐
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 ...
🌐
Reddit
reddit.com › r/llmdevs › free xai grok api key/credits in 2024
r/LLMDevs on Reddit: Free xAI Grok API Key/Credits in 2024
November 6, 2024 -

November 4, 2024

https://x.ai/blog/api?_bhlid=9f5ec12bce9af5dbd44b53e85ec66e15161e6773

API Public Beta

Starting today, developers can build on our Grok foundation models using our newly released API. We will run a public beta program until the end of 2024 during which everyone will get $25 of free API credits per month.

We are happy to announce the immediate availability of our API, which gives developers programmatic access to our Grok series of foundation models. To get started, head to console.x.ai and sign up to create an account. We are excited to see what developers build using Grok.

Models

We are kicking off our public beta with a preview of a new Grok model that is currently in the final stages of development. The model – released under the provisional name grok-beta – has a context length of 128,000 tokens and also supports function calling and system prompts. We will release more information about the model shortly.

In addition to the text-only version of the model grok-beta, we will also release a multi-modal version that can ingest images. The vision model will be available next week.

Free credits

We will run a public beta program throughout the end of the year. Everyone will get $25 of free API credits per month to test the API and get started using Grok.

Anyone who has purchased prepaid credits so far will get the equivalent amount of free monthly credits for every month until the end of the year. For example, if you purchased $50 of prepaid credits already, you will now have $25 + $50 of additional free credits in November and December.

API

To learn more about our API, check out our documentation at docs.x.ai. 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.

🌐
Wasapmatic
help.wasapmatic.com › whatsapp-artificial-intelligence-a.i › how-to-get-grok-ai-api-key
How To Get Grok AI API Key | Wasapmatic
July 2, 2025 - Go to https://accounts.x.ai/si... section to purchase the credits. To create the API key, go to the API Key section and click the Create API Key button....
🌐
Analytics Vidhya
analyticsvidhya.com › home › how to access grok 3 api?
How to Access the Grok 3 API? - Analytics Vidhya
You’ll be redirected to the xAI Accounts page. 3. On the xAI Accounts page, navigate to the API Console. 4. In the left-hand sidebar of the API Console, click the key icon to view and copy your Grok API key.
Published   July 25, 2025
🌐
Oreate AI
oreateai.com › blog › unlocking-the-grok-api-key-a-stepbystep-guide › a47ebeddced262c65ea64d20456e9545
Unlocking the Grok API Key: A Step-by-Step Guide - Oreate AI Blog
3 weeks ago - Here, you’ll need to log in or create an account if you haven’t done so already. Once logged in, navigate to the section labeled 'API Keys.' It’s here that you'll initiate the creation of your unique API key.
🌐
Cursor
forum.cursor.com › support › help
Xai API as grok-beta : custom model - Help - Cursor - Community Forum
October 25, 2024 - How can I use a custom model with my own API? Xai API was released, and their model is grok-beta. How can I use this? Cursor does not have a spot to add my API key for my custom model. See picture. here are Xai docs for integration: Welcome to the xAI documentation