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...
Grok
Meet Grok by xAI: your truth-seeking AI companion for honest answers and insightful analysis.
News
State-of-the-art RAG system built directly into our API. ... Bringing the power of Grok Voice to all developers.
Careers
We are a team of AI technologists and business leaders on a mission to build AI systems that can help humanity understand the world better.
Colossus
We’re running the biggest supercomputer in the world. From start to finish, Colossus was built in 122 days—outpacing every estimate. It’s the most powerful AI training system out there, and it’s expected to double in size in a matter of months.
Grok API
grok-api.apidog.io
Introduction - Grok API
Build with Grok 3To access the Grok 3 models via API, please create an xAI account and an API key.
Videos
01:13
How to Generate the xAI Grok API Key - YouTube
08:29
Grok API: Crash Course for Beginners in 8 Mins! - YouTube
12:11
How to use Grok API with Free Credits!!! - YouTube
03:43
Grok xAI API in Python - Getting Started - YouTube
04:16
How to install and get the Grok API: Detailed tutorial ($25 free) ...
19:41
xAI has released their Grok Public API! How to use it in Clay - ...
How can I access Grok's API?
You can access the API by registering on the xAI Developer Portal, generating API keys, and authenticating your requests with the Authorization header. The base URL is https://api.grok.xai.com/v1.
latenode.com
latenode.com › home › blog about no-code integrations with latenode - the ultimate no-code automation platform › undefined › xai grok (grok 2, grok 3) in ai technology & language models - explore no-code automation with latenode › complete guide to xai's grok: api documentation and implementation
Complete Guide to xAI's Grok: API Documentation and Implementation
What pricing tiers are available for Grok?
Grok offers a Standard tier priced at $0.03 per request and an Enterprise tier with custom pricing. During the public beta, users get $25 in monthly API credits, requiring an X Premium+ subscription.
latenode.com
latenode.com › home › blog about no-code integrations with latenode - the ultimate no-code automation platform › undefined › xai grok (grok 2, grok 3) in ai technology & language models - explore no-code automation with latenode › complete guide to xai's grok: api documentation and implementation
Complete Guide to xAI's Grok: API Documentation and Implementation
What are the key features of Grok by xAI?
Grok offers real-time responses via webhooks and a scalable architecture suitable for large workloads. It also integrates with cloud services and supports custom connectors for flexible integration.
latenode.com
latenode.com › home › blog about no-code integrations with latenode - the ultimate no-code automation platform › undefined › xai grok (grok 2, grok 3) in ai technology & language models - explore no-code automation with latenode › complete guide to xai's grok: api documentation and implementation
Complete Guide to xAI's Grok: API Documentation and Implementation
AI SDK
ai-sdk.dev › providers › ai-sdk-providers › xai
AI SDK Providers: xAI Grok
You can use the OpenAI provider with xAI's base URL to search vector stores: ... File search requires grok-4 family models. See the OpenAI provider documentation for additional file search options like filters and ranking. You can combine multiple server-side tools for comprehensive research: ... Control the reasoning effort for the model. Higher effort may produce more thorough results at the cost of increased latency and token usage. The Responses API only supports server-side tools.
DataCamp
datacamp.com › tutorial › grok-3-api
Grok 3 API: A Step-by-Step Guide With Examples | DataCamp
May 1, 2025 - The next step is to initialize the client. We call the OpenAI function with our API key from the .env file and the URL of the Grok server, and assign it to the variable client.
Merge.dev
merge.dev › blog › grok-api-key
How to get your Grok API key (5 steps)
January 2, 2025 - Grok consists of a family of large language models (LLMs) developed by xAI. While the models are helpful within X (formerly Twitter), they can offer even more value when they’re integrated with your product or your internal applications. For either integration scenario, you’ll need to start by creating your API key on xAI.
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)
Readthedocs
grok.readthedocs.io › en › stable › api.html
API reference — grok 5.0 documentation
By default, the name that must be appended to the URL should simply be the same as the name of the attribute; but by providing a name keyword argument, the programmer can designate another name to appear in the URL instead of the raw attribute name. ... A grokcore.catalog.Indexes index that matches against an entire field.
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
Griptapenodes
docs.griptapenodes.com › en › stable › how_to › keys › grok
How to get and use an xAI Grok API key - Griptape Nodes
Navigate to the API keys section; there are multiple links to take you there.
xAI
docs.x.ai › docs › api-reference
REST API Reference | xAI
Reference of all available xAI REST API endpoints
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.