🌐
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 · Installing Grok...
🌐
xAI
docs.x.ai › docs › tutorial
The Hitchhiker's Guide to Grok | xAI
Certain grok models can accept both text AND images as an input. For example: ... import os from xai_sdk import Client from xai_sdk.chat import user, image client = Client( api_key=os.getenv("XAI_API_KEY"), timeout=3600, # Override default timeout with longer timeout for reasoning models ) chat = client.chat.create(model="grok-4") chat.append( user( "What's in this image?", image("https://science.nasa.gov/wp-content/uploads/2023/09/web-first-images-release.png") ) ) response = chat.sample() print(response.content)
🌐
xAI
x.ai › news › api
API Public Beta | xAI
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 ...
🌐
Puter
developer.puter.com › tutorials › free-unlimited-grok-api
Free, Unlimited Grok API
December 14, 2025 - Puter is the pioneer of the "User-Pays" ... 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....
🌐
xAI
docs.x.ai › docs › overview
Overview | xAI
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 ...
🌐
BytePlus
byteplus.com › en › topic › 499378
Is the Grok API Free? Pricing & Features 2025
Gaining access to the Grok API begins with a simple registration process. Whether you are aiming to use the promotional free credits or move directly to a paid plan, the initial steps are the same. The process is designed to be accessible, allowing you to sign up using several common authentication methods. ... Navigate to the xAI Developer Console: The official portal for the Grok API is located at console.x.ai.
🌐
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.
🌐
Grok API
grok-api.apidog.io › free-credits-934025m0
Free Credits - Grok API
To qualify for free credits, your team must have already spent a minimum of $5 on the API before choosing to opt in. ... Only teams that have spent at least $5 are eligible to enroll in this program. Data sharing is set at the team level. You can have multiple teams—some opted in, others not.
Find elsewhere
🌐
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 - This comprehensive guide explores how you can access and use Grok 3 and Grok 3 Mini online without paying for an X Premium+ subscription, focusing on OpenRouter as a gateway. We'll examine their performance benchmarks, API pricing structures, usage limits, and provide practical steps to leverage these powerful models effectively.
🌐
OpenRouter
openrouter.ai › x-ai › grok-4.1-fast
Grok 4.1 Fast - API, Providers, Stats | OpenRouter
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
🌐
Apideck
apideck.com › blog › how-to-get-your-grok-xai-api-key
How to Get Your Grok (XAI) API Key
September 10, 2025 - 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": [ { "role": "user", "content": "What is happening on X today?" } ], "stream": false, "temperature": 0.7 }'
🌐
Analytics Vidhya
analyticsvidhya.com › home › how to access grok 3 api?
How to Access the Grok 3 API? - Analytics Vidhya
1. Visit grok.com and log in with your account credentials. 2. Click on your profile avatar in the top-right corner, choose Settings, and then select Manage. You’ll be redirected to the xAI Accounts page. 3. On the xAI Accounts page, navigate to the API Console.
Published   July 25, 2025
🌐
GitHub
github.com › realasfngl › Grok-Api
GitHub - realasfngl/Grok-Api: A free Grok API wrapper that allows you to use Grok without API access or Account.
It includes both a direct Python interface and a FastAPI server for easy integration into your applications. 🔓 No Authentication Required - Access Grok without an account · 🆓 Completely Free - No API keys or paid subscriptions needed
Starred by 86 users
Forked by 24 users
Languages   Python
🌐
Grok AI
grokai.bot › home
Grok AI API - Grok AI
May 15, 2025 - You can access Grok through several platforms, as it’s designed to be user-friendly and integrated with xAI’s ecosystem. ... Note: The API offers $25 free credits per month during the public beta, with costs at $2 per million input tokens ...
🌐
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.

🌐
Cursor IDE
cursor-ide.com › 首页 › 博客 › free grok 3 api guide 2025: access xai's model without x premium
Free Grok 3 API Guide 2025: Access xAI's Model Without X Premium - Cursor IDE 博客
March 25, 2025 - Comprehensive guide on how to access Grok 3 API for free in 2025. Learn three methods to use xAI's flagship model, with code examples and performance comparison.
🌐
Roo Code
docs.roocode.com › xai (grok)
Using xAI (Grok) With Roo Code | Roo Code Documentation
xAI is the company behind Grok, a large language model known for its conversational abilities and large context window. Grok models are designed to provide helpful, informative, and contextually relevant responses. ... Sign Up/Sign In: Go to the xAI Console. Create an account or sign in. Navigate to API Keys: Go to the API keys section in your dashboard.
🌐
CometAPI
cometapi.com › how-to-use-grok-3-for-free-with-cursor
How to Use Grok 3 for Free with Cursor - CometAPI - All AI Models in One API
May 13, 2025 - Toggle Grok-3 Mini on (it’s marked as free for all users) . Once enabled, Grok-3 Mini becomes available in both the chat pane and the inline autocompletion dropdown. Cursor’s Agent Mode allows Grok models to interact with your project files, ...