x-ai logo
x-ai

xAI: Grok Imagine Image 2.0

Source description (English)

Grok Imagine Image 2.0 is an image generation and editing model from xAI. It is suited for creating images from text prompts and editing images from references, with low and...

Overview

Model specifications

Context
65,536 tokens
Maximum output
58,982 tokens
Architecture
text+image->image
Tokenizer
Grok
Knowledge cutoff
Not provided
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Image output
$0.04
per image
  • low/1K$0.04
  • low/2K$0.06
  • medium/1K$0.06
  • medium/2K$0.08
Image input
$0.01
per image
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

API documentation

curl --fail-with-body https://openrouter.ai/api/v1/images \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"x-ai/grok-imagine-image-2.0","prompt":"A sunlit mountain landscape"}'
Capabilities

InputOutput

Input
textimage
Output
image
API

Supported API parameters

logprobsmax_tokensresponse_formatseedtemperaturetop_logprobstop_p
Available providers

1 Provider

Checked: September 7, 2026

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

xAI

Not provided
Context
66K
Maximum output
59K
x-ai

4 models

All models