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.
Videos
12:11
How to use Grok API with Free Credits!!! - YouTube
01:13
How to Generate the xAI Grok API Key - YouTube
08:29
Grok API: Crash Course for Beginners in 8 Mins! - YouTube
03:30
How to Get Instant Access to Grok 3 API Now! - YouTube
44:45
Grok 4 CLI: Full Setup, Live Test & Cost Breakdown - YouTube
01:48
How to Create Your GROK API Key Now! - YouTube
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%
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
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 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
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 ...
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 ...