πŸŽ‰ Get Free $5 on Signup!
Models
Enterprise
Subscribe
Resource
Activity
Documentation
Console

/x.ai/grok-4.5

G

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.

Modetext、image β†’ text
Input price$2 per M tokens
Output price$6 per M tokens
Context length500K tokens
Listed at2026-07-08T00:00:00Z

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

Performance

Avg TPSβ€”
Avg latencyβ€”
Avg success rateβ€”
TPSβ€”
TTFTβ€”
Latencyβ€”
Success rateβ€”

Success rate

Speed

Code Example

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.

Authentication

All requests must include the Authorization: Bearer <TOKEN> header.

Endpoint Path

POST
xai

Supported Parameters

ParameterTypeDefaultDescription
string-
string-
string-
string-
string-
string-
string-
string-

Rate Limits

GroupRPMTPMRPD

RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply by token group.

Pricing

ProviderBilling typePrice summary
G
Grok
Expression
Input price$2per 1M tokens
Completion price$6per 1M tokens
Cache read price$β€”per 1M tokens
Cache write price$β€”per 1M tokens