🌐
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
docs.x.ai › docs › overview
xAI API
... 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.
🌐
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)
🌐
GitHub
github.com › superagent-ai › grok-cli
GitHub - superagent-ai/grok-cli: An open-source AI agent that brings the power of Grok directly into your terminal.
🌍 Global Installation: Install and use anywhere with bun add -g @vibe-kit/grok-cli ... By default, the CLI uses https://api.x.ai/v1 as the Grok API endpoint.
Starred by 2.2K users
Forked by 288 users
Languages   TypeScript 94.4% | JavaScript 5.6%
🌐
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
🌐
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.
Published   July 25, 2025
🌐
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 }'
Find elsewhere
🌐
Apidog
apidog.com › blog › grok-3-api
How to Use the Grok-3 API
November 16, 2025 - After downloading, run the installer and follow the prompts to set it up on your system. 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 - The API supports a context window of up to 131,072 tokens, though earlier claims suggested Grok 3 could handle 1 million tokens, which is not yet reflected in the API. The API is accessible via the xAI Console, where developers can generate ...
🌐
xAI
x.ai › news › api
API Public Beta | xAI
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.
🌐
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."
🌐
GitHub
github.com › mem0ai › grok3-api
GitHub - mem0ai/grok3-api: Unofficial Grok 3 API
Grok3 is cool, smart, and useful, but there is no official API available. This is an unofficial Python client for interacting with the Grok 3 API.
Starred by 526 users
Forked by 98 users
Languages   Python
🌐
GitHub
github.com › RMNCLDYO › grok-ai-toolkit
GitHub - ramonclaudio/grok-ai-toolkit: A lightweight Python API ...
You can use grok-2 and grok-2-latest if you want to automatically access the latest model version, or choose a model with a specific version number to keep a consistent output. ... Note your model access might vary depending on various factors such as geographical location, account limitations, etc. For the most up-to-date information on your team's model access, visit the API Models page on your xAI Console ...
Starred by 27 users
Forked by 3 users
Languages   Python
🌐
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.
🌐
DataCamp
datacamp.com › tutorial › grok-4-api
Grok 4 API: A Step-by-Step Guide With Examples | DataCamp
July 15, 2025 - Although its context window size ... standard Grok 3 model. You’ll pay $3 for every million input tokens and $15 for every million output tokens. To access the API, you’ll need to purchase credits. Starting out, it’s wise to use prepaid credits instead of automatic billing—this helps you avoid surprise charges. You can buy tokens and track your usage in the xAI console, under Invoices ...
🌐
Stammer
docs.stammer.ai › stammer.ai-docs › chat-ai-agents › vault › xai-api-key-grok
xAI API Key (Grok) | Stammer.ai Docs
Navigate to console.x.ai. ... Click Sign Up and provide your email address, password, and other required details. Verify your email by clicking the link sent to your inbox. If you have an account, click Sign In and log in using your credentials ...
🌐
xAI
docs.x.ai › docs › introduction
Introduction | xAI
To access the grok-4 models via API, please create an xAI account and an API key.
🌐
DataCamp
datacamp.com › tutorial › grok-3-api
Grok 3 API: A Step-by-Step Guide With Examples | DataCamp
May 1, 2025 - The fast versions of both Grok 3 and Grok 3 mini use the exact same underlying models, but are served on faster infrastructure, leading to improved response times. To use the API, we need to buy credits. Using prepaid credits rather than automatic invoice billing is recommended in the beginning, as it is a good safeguard against unexpected costs. You can buy tokens and get an overview of your usage in the xAI console ...