OpenRouterText to imageComing soon

openai/gpt-5.4-image-2

openai/gpt-5.4-image-2 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 pending

Pricing

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

FieldKindDefaultDescription
prompt requiredtext—Text description of the desired image
nnumber (whole)
1 to 10
—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.
qualityone of
auto, low, medium, high
—Rendering quality. Providers without a quality knob ignore this.
backgroundone of
auto, opaque
—Background treatment. `transparent` requires an output_format that supports alpha (png or webp).
aspect_ratioone of
1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, auto
—Normalized aspect ratio of the generated image. Providers clamp to their supported subset.
input_referencesnumber (whole)
0 to 16
—Reference images to guide image-to-image generation, as base64 data URLs or HTTP(S) URLs.
output_compressionnumber (whole)
0 to 100
—Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.

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": "openai/gpt-5.4-image-2",
    "input": {
      "prompt": "a red panda astronaut floating in space, studio lighting"
    }
  }'