xAI Grok API
xAI Grok API — free tier with API key
xAI Grok API exposes a free-tier JSON API. Register for an API key if required; we verified a public or demo endpoint.
GET https://docs.x.ai/v1
{
"code": "unauthenticated:no-credentials",
"error": "No credentials presented."
}curl "https://docs.x.ai/v1"const res = await fetch("https://docs.x.ai/v1");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://docs.x.ai/v1")
print(res.json())THIS API IS DEAD — NOTHING TO RUN
/v1PROBEDxAI Grok API — free tier with API key
/v1/V1 — documented GET route.
/v1/searchSearch by query parameters.
/v1/popularPopular items ranked by usage.
/v1/api-keyGet information about an API key, including name, status, permissions and users who created or modified this key.
/v1/chat/deferred-completion/{request_id}Tries to fetch a result for a previously-started deferred completion. Returns `200 Success` with the response body, if t
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
xAI Grok API: common questions
Is xAI Grok API free to use?
Yes — xAI Grok API is a free open data API. Free tier: Free tier — API key required. Whether the free tier allows commercial use is unclear — check the provider docs.
Does xAI Grok API need an API key?
Yes — xAI Grok API needs a free API key, which you pass on each request. Rate limits: Unpublished.
Can I call xAI Grok API from the browser?
Not directly — xAI Grok API doesn't send browser-friendly CORS headers, so call it from a server or proxy instead. Copy the curl or Python snippet on this page to get started.
Is xAI Grok API up right now?
As of our last scheduled check, xAI Grok API is dead. We re-probe it every sweep — the status badge and uptime chart above always show the latest.