🌐
xAI
docs.x.ai › docs › tutorial
The Hitchhiker's Guide to Grok | xAI
As you use your API key, you will be charged for the number of tokens used.
🌐
xAI
x.ai › api
API | xAI
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
🌐
xAI
docs.x.ai › docs › overview
Overview | xAI
Grok is our flagship AI model designed to deliver truthful, insightful answers. ... Create an API Key and make your first request. ... Let Grok perform actions and look up information. ... Use Grok to analyze images or perform OCR. Are you a non-developer or simply looking for our consumer services? Visit Grok.com or download one of the iOS or Android apps. See our Comparison Table for the differences. If you have any questions or feedback, feel free to email us at [email protected].
🌐
Merge.dev
merge.dev › blog › grok-api-key
How to get your Grok API key (5 steps)
January 2, 2025 - Learn about each step you'll need to take to generate your API key for any of xAI's Grok models.
🌐
Apideck
apideck.com › blog › how-to-get-your-grok-xai-api-key
How to Get Your Grok (XAI) API Key
September 10, 2025 - Unlock the power of xAI with our complete guide to getting your Grok API key. Follow these step-by-step instructions to subscribe, generate, and test your key today.
🌐
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.

🌐
Stammer
docs.stammer.ai › stammer.ai-docs › ai-features › vault › xai-api-key-grok
xAI API Key (Grok) | Stammer.ai Docs
Once created, you’ll be redirected to the xAI Console dashboard. During the public beta (until the end of 2024), xAI provides $25 in free monthly API credits, so you may not need to purchase credits immediately.
🌐
Google AI
ai.google.dev › gemini api › using gemini api keys
Using Gemini API keys | Google AI for Developers
If you don't have any projects created yet, you must either create a new project or import one from Google Cloud into Google AI Studio. The Projects page in Google AI Studio will display all keys that have sufficient permission to use the Gemini API.
🌐
AI Engineer Guide
aiengineerguide.com › blog › free-xai-grok-code-fast-1-api
How to use xAI's Grok Code Fast 1 API for free
August 31, 2025 - xAI’s Grok Code Fast (which was ... that account). We can use that model for free using that credit. Get your API key for AI Gateway from your Vercel Dashboard....
Find elsewhere
🌐
xAI
console.x.ai › home
Welcome | xAI Cloud Console
The xAI Cloud Console is your gateway to access the xAI API and other developer tools.
🌐
Make
apps.make.com › xai
xAI - Apps Documentation
with the xai app in {{product name}} ... the two services to communicate to create the connection, you need to /#obtain your api key in xai /#create ......
🌐
Grok API
grok-api.apidog.io › introduction-933934m0
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. The same models power our consumer facing services such as Grok.com, the iOS and Android 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.
🌐
Apidog
apidog.com › blog › openai-api-key-free
How to Use OpenAI API Key for Free in 2026
2 weeks ago - Locate the Key: Look for the key provided, sometimes labeled as openai_api_key free. Secure the Key: Copy and store your key securely—it provides open ai api key free access to use in your development environment.
🌐
Medium
medium.com › @piyushkashyap045 › how-to-leverage-xai-api-for-your-projects-a-step-by-step-guide-2f2ae6bf4f9f
How to Leverage xAI API for Your Projects: A Step-by-Step Guide | by Piyush Kashyap | Medium
November 12, 2024 - Go to the xAI website: Navigate to x.ai. Sign Up: Click on the “Try now” button and fill in your details. You’ll need a valid email address and password . Verification: You may be asked to verify your email address. Access the Dashboard: Once verified, log in to your account, and you’ll have access to the xAI dashboard. After setting up your xAI account, you’ll need to generate an API key to authenticate your API requests.
🌐
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 - Unlike fixed subscriptions, you pay only for what you actually use. Visit https://console.x.ai/team/default/usage to monitor your xAI API usage and set spending limits. xAI Subscriptions vs. xAI API Keys — Complete comparison:
🌐
xAI
x.ai › news › grok-4-1-fast
Grok 4.1 Fast and Agent Tools API | xAI
We’re releasing two variants of Grok 4.1 Fast on the API: ... We’ve partnered with OpenRouter to make the Grok 4.1 Fast models available for free.
🌐
OpenAI
platform.openai.com › api-keys
OpenAI Platform
Explore resources, tutorials, API docs, and dynamic examples to get the most out of OpenAI's developer platform.
🌐
GitGuardian
docs.gitguardian.com › x ai api key
X AI API Key | GitGuardian documentation
Summary: X's AI API allow integrating Grok in an application. The API Key is used to authenticate requests to the API.