🌐
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 ...
A powerful Python-based API wrapper and command-line interface for interacting with xAI's Grok language models. This toolkit provides seamless integration with xAI's Grok language models for chat, text completion, and vision analysis capabilities.
Starred by 27 users
Forked by 3 users
Languages   Python
🌐
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.
# Use Grok models grok --model grok-code-fast-1 grok --model grok-4-latest grok --model grok-3-latest grok --model grok-3-fast # Use other models (with appropriate API endpoint) grok --model gemini-2.5-pro --base-url https://api-endpoint.com/v1 grok --model claude-sonnet-4-20250514 --base-url https://api-endpoint.com/v1 ... Model Priority: --model flag > GROK_MODEL environment variable > user default model > system default (grok-code-fast-1) grok [options] Options: -V, --version output the version number -d, --directory <dir> set working directory -k, --api-key <key> Grok API key (or set GROK_
Starred by 2.2K users
Forked by 288 users
Languages   TypeScript 94.4% | JavaScript 5.6%
🌐
GitHub
github.com › TheSethRose › Grok3-Tunnel
GitHub - TheSethRose/Grok3-Tunnel: An unofficial (self-hosted) API tunnel that provides access to Grok3 through a simple REST interface.
API Key: your_cookie_string_here (ex. sso-rw=eyJhbGc...) This API supports special message prefixes that enable Grok's advanced features without needing to modify the API request structure.
Author   TheSethRose
🌐
GitHub
github.com › moesmufti › xai_grok_sdk
GitHub - moesmufti/xai_grok_sdk: A lightweight Python library for seamless integration with xAI's Grok API. Features minimal dependencies, robust API key management, and supports the latest xAI models for text generation and function calling.
You can get your API key here. Currently, they provide $25 free credits for new users for December 2024! pip install xai-grok-sdk · Simple and intuitive interface for xAI API interactions · Support for chat completions with the latest xAI ...
Author   moesmufti
🌐
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?
🌐
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.
🔓 No Authentication Required - Access Grok without an account · 🆓 Completely Free - No API keys or paid subscriptions needed
Starred by 87 users
Forked by 25 users
Languages   Python
🌐
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.
Find elsewhere
🌐
Grok API
grok-api.apidog.io › introduction-933934m0
Introduction - Grok API
The same models power our consumer facing services such as Grok.com, the iOS and Android apps, as well as Grok in X experience. Build with Grok 3To access the Grok 3 models via API, please create an xAI account and an API key.
🌐
GitHub
github.com › orgs › community › discussions › 165858
How to find API keys for added models? (eg. GROK4) · community · Discussion #165858
I added fresh API key for GROK4 and I get a message like in the screenshot. I'm using Code insiders. Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... @gelu22 : The issue is Grok-4 (xAI) doesn’t currently support OpenAI-compatible APIs, which is why you're getting the "Invalid API Key" error.
🌐
GitHub
github.com › grokstream › grok-cli
GitHub - grokstream/grok-cli
grok export [GROK_SERVER_URL GROK_API_KEY] > file.json
Starred by 50 users
Forked by 6 users
Languages   Python
🌐
GitHub
github.com › Hiepler › llm-grok
GitHub - Hiepler/llm-grok: LLM plugin providing access to Grok AI models using the xAI API
First, obtain an API key from xAI. Configure the key using the llm keys set grok command:
Starred by 20 users
Forked by 8 users
Languages   Python
🌐
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...
🌐
GitHub
github.com › groq › groq-api-cookbook
GitHub - groq/groq-api-cookbook: groq-api-cookbook
This repository contains a collection of tutorials, sample code, and guidelines for accomplishing tasks with Groq API. To run these examples, you'll need a Groq API key that you can get for free by creating an account here. Are you ready to cook?
Starred by 1.3K users
Forked by 261 users
Languages   Jupyter Notebook
🌐
AIMLAPI
aimlapi.com › build-with-grok-2-api
Build with Grok 2 API | AIMLAPI xAI Grok‑2 Beta Integration
Improve your business communication with AI that feels genuinely human, enhancing customer satisfaction and engagement. ... Grok-2 assists in parsing through data, offering insights, and even brainstorming new ideas. ... Generate text based on a given prompt using the Grok-2 Beta model. import os from openai import OpenAI client = OpenAI( api_key="<YOUR_API_KEY>", base_url="https://api.aimlapi.com", ) response = client.chat.completions.create( model="x-ai/grok-beta", messages=[ { "role": "system", "content": "You are an AI assistant who knows everything.", }, { "role": "user", "content": "Tell me, why is the sky blue?"
🌐
GitHub
github.com › stevegt › grokker
GitHub - stevegt/grokker: A tool for interactive conversation with your own documents and code -- for design, research, and rapid learning. Uses OpenAI API services for backend.
Before using Grokker, you'll need to set your API key as an environment variable in your terminal session or .bashrc with the following command:
Starred by 21 users
Forked by 5 users
Languages   Go 89.4% | HTML 8.9% | JavaScript 1.1%
🌐
Elephas
elephas.app › blog › how-to-get-grok-api-key
How to Get Grok API Key (Step by Step Guide) | 2026
2 weeks ago - This key will give you access to use all the features of the Grok API in your programs. However, it is fairly complex to get the Grok API key, but you need not worry. To provide you with a simple way to access your Grok API key, we have created ...
🌐
xAI
docs.x.ai › docs › tutorial
The Hitchhiker's Guide to Grok | xAI
As well as a native xAI Python SDK, the majority our APIs are fully compatible with the OpenAI and Anthropic SDKs. For example, we can make the same request from Python or Javascript like so: ... # In your terminal, first run: # pip install xai-sdk import os from xai_sdk import Client from xai_sdk.chat import user, system 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(system("You are Grok, a highly intelligent, helpful AI assistant.")) chat.append(user("What is the meaning of life, the universe, and everything?")) response = chat.sample() print(response.content)