OpenRouterText to imageComing soon
x-ai/grok-imagine-image-2.0
x-ai/grok-imagine-image-2.0 is a text to image tool from OpenRouter that runs in the background and returns images. Coming soon: listed with its price, not yet open to runs.
This tool is listed but not yet available to run.
Price pendingPricing
Price pending.
Limits
- Runs
- In the background
- Returns
- image
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
prompt required | text | — | Text description of the desired image |
n | number (whole) 1 to 1 | — | Upper bound on the number of images to generate (1-10). Providers may return fewer images, and providers that only support single-image generation reject n > 1. |
quality | one of low, medium | — | Rendering quality. Providers without a quality knob ignore this. |
resolution | one of 1K, 2K | — | Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider. |
aspect_ratio | one of 1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, 9:19.5, 19.5:9, 9:20, 20:9, 1:2, 2:1, auto | — | Normalized aspect ratio of the generated image. Providers clamp to their supported subset. |
input_references | number (whole) 0 to 3 | — | Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs. |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "openrouter",
"model": "x-ai/grok-imagine-image-2.0",
"input": {
"prompt": "a red panda astronaut floating in space, studio lighting"
}
}'