🎉 Get Free $5 on Signup!
Models
Enterprise
Subscribe
Resource
Activity
Documentation
Console

/x.ai/grok-imagine-image

G

X.ai: grok-imagine-image

Grok Imagine Image is xAI's image-generation line for creating and editing images from natural-language instructions.

Modetext → text
Input price$0.06 per M tokens
Output price—
Context length
Listed at

X.ai

Latency—
Throughput—
Upload rate—
Context length—
Max output—
Input price$0.06per request
Output price—per request
Cache read—per request
Cache write—per request

Performance

Avg TPS—
Avg latency—
Avg success rate—
TPS—
TTFT—
Latency—
Success rate—

Success rate

Speed

Code Example

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

Supported Parameters

ParameterTypeDefaultDescription

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
Per call
Input price$0.06per request
Completion price$—per request
Cache read price$—per request
Cache write price$—per request