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

Where is the 'available' grok 4 xAI API?
https://openrouter.ai/x-ai/grok-4 256,000 context Starting at $3/M input tokens Starting at $15/M output token Same price as Claude Sonnet 4. More on reddit.com
🌐 r/grok
3
2
April 24, 2025
xAI discontinuing their free API tier ($150 credits) by May 2025
How do we get those credits? Are they still available? More on reddit.com
🌐 r/grok
21
42
May 13, 2025
xAI Grok Conversation Agent
Our REST API is fully compatible ... 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. I re...... More on community.home-assistant.io
🌐 community.home-assistant.io
2
January 12, 2025
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
🌐
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.
🌐
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)
🌐
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
🌐
Apideck
apideck.com › blog › how-to-get-your-grok-xai-api-key
How to Get Your Grok (XAI) API Key
September 10, 2025 - Grok API access requires an active ... to activate after subscribing to Premium. Navigate to the xAI developer platform: Go to console.x.ai ·...
Find elsewhere
🌐
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."
🌐
Zuplo
zuplo.com › zuplo learning center - articles on api development and best practices › apis › seamlessly integrate xai api (grok) at scale: a guide
Seamlessly Integrate xAI API (Grok) at Scale: A Guide | Zuplo Learning Center
April 17, 2025 - The xAI API provides programmatic access to Grok, a family of large language models trained on diverse internet data. This interface allows developers to integrate AI capabilities into applications through standard HTTP requests, without managing ...
🌐
xAI
docs.x.ai › docs › overview
xAI API
Grok is our flagship AI model designed to deliver truthful, insightful answers. ... Create an API Key and make your first request.
🌐
xAI
x.ai
Welcome | xAI
We've just launched SuperGrok Heavy, providing access to Grok Heavy and much higher rate limits.Sign up now ... The best assistant in the world is now Enterprise ready. ... State-of-the-art RAG system built directly into our API.
🌐
Reddit
reddit.com › r/grok › where is the 'available' grok 4 xai api?
r/grok on Reddit: Where is the 'available' grok 4 xAI API?
April 24, 2025 -

I just saw the livestream, and was looking up and down for documentation of the API, and the API itself. But on the site its still saying Grok 3 beta etc.

Does anyone knows more, and where to find the info about the api (like price etc).

--

Its now visible in the xAI console! Wondering if its as unhinged as the x/twitter one. :'

🌐
Coda
coda.io › @peter-sigurdson › getting-and-testing-your-grok-api
Getting and Testing your GROK API
June 12, 2025 - console.x.ai⁠⁠ · This guide will walk you through using the curl command in a Windows environment to interact with the GROQ API. Prerequisites: Windows Operating System: Windows 10 or 11 is recommended. curl installed: curl is usually pre-installed on modern Windows versions.
🌐
Cline
docs.cline.bot › provider-config › xai-grok
xAI (Grok) - Cline
Learn how to configure and use xAI’s Grok models with Cline, including API key setup, supported models, and reasoning capabilities. 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. Website: https://x.ai/ Sign Up/Sign In: Go to the xAI Console.
🌐
Grok API
grok-api.apidog.io › consumption-and-rate-limits-934014m0
Consumption and Rate Limits - Grok API
The tokenizer page or API might display less token count than the actual token consumption. The inference endpoints would automatically add pre-defined tokens to help our system process the request. On xAI Console, you can use the tokenizer page to estimate how many tokens your text prompt will consume.
🌐
Home Assistant
community.home-assistant.io › configuration
xAI Grok Conversation Agent - Configuration - Home Assistant Community
January 12, 2025 - Our REST API is fully compatible ... 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. I re......
🌐
xAI
docs.x.ai › docs › api-reference
REST API Reference | xAI
For all routes, you have to authenticate with the header Authorization: Bearer <your xAI API key>.