X.ai
Latencyβ
Throughputβ
Upload rateβ
Context length500K tokens
Max outputβ
Input price$2per 1M tokens
Output price$6per 1M tokens
Cache readβper 1M tokens
Cache writeβper 1M tokens
/x.ai/grok-4.5
Grok 4.5 is a reasoning model designed for coding, engineering, and agentic workflows. It accepts text and image inputs and generates text. It supports function calling and structured outputs.
curl ${API_BASE_URL}/v1/responses \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4.5",
"input": "Hello"
}'Replace <YOUR_API_KEY> with the API key generated on your token management page.
All requests must include the Authorization: Bearer <TOKEN> header.
RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply by token group.