X.ai
Latency—
Throughput—
Upload rate—
Context length—
Max output—
Input price$0.1per request
Output price—per request
Cache read—per request
Cache write—per request
/x.ai/grok-4-1-image
Grok-4.1-Image: xAI's native multimodal image generation API (Nov 2025). It specializes in hyper-realistic portrait synthesis, strict prompt adherence, and conversational iterative editing, designed for seamless integration within interactive chatbot workflows.
curl ${API_BASE_URL}/v1/chat/completions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4-1-image",
"messages": [
{
"role": "user",
"content": "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.