🌐
Groq
console.groq.com › keys
API Keys - GroqCloud
Manage your project API keys.
GroqCloud
Join 2M+ developers building on GroqCloud™ · We deliver inference with unmatched speed and cost, so you can ship fast
Playground
Build Fast with GroqCloud
Supported Models
Explore all available models on GroqCloud · Groq Compound is an AI system powered by openly available models that intelligently and selectively uses built-in tools to answer user queries, including web search and code execution
Quickstart
Get up and running with the Groq API in minutes: create an API key, set up your environment, and make your first request.
🌐
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
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 ...
🌐
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)
🌐
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....
🌐
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.
🌐
xAI
docs.x.ai › docs › overview
xAI API
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.
🌐
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.
Find elsewhere
🌐
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.
🌐
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 }'
🌐
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
🌐
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
🌐
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.

🌐
Grok API
grok-api.apidog.io › chat-15796842e0
Chat - Grok API
curl --location --request POST 'https://api.x.ai/v1/chat/completions' \ --header 'Authorization: Bearer ' \ --header 'Content-Type: application/json' \ --data-raw '{ "messages": [ { "role": "system", "content": "You are Grok, a chatbot inspired by the Hitchhikers Guide to the Galaxy."
🌐
Apidog
apidog.com › blog › grok-3-api
How to Use the Grok-3 API
November 16, 2025 - Once installed, launch Apidog and create a new project dedicated to your Grok-3 API work. This project serves as your workspace for all API-related tasks. ... Next, you need an API key to authenticate your requests. Head to the xAI console at .
🌐
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 ...
🌐
DataCamp
datacamp.com › tutorial › grok-4-api
Grok 4 API: A Step-by-Step Guide With Examples | DataCamp
July 15, 2025 - While using the API can be more affordable than opting for a premium subscription, it isn’t free. Unlike the SuperGrok plan, which starts at $30 per month for a fixed subscription, API costs are entirely based on how much you use the service. However, if you want to access Grok 4 Heavy, things work differently: you’ll need an active SuperGrok Heavy subscription ($300 per month), even when using the API.