openai/gpt-image-2.5/flare/text-to-image
openai/gpt-image-2.5/flare/text-to-image is an image tool from fal that runs in the background and returns images. Pay as you go, with one API key.
Pricing
$0.0473 per 4:3 image at high quality ($0.00559 low, $0.0121 medium, $0.0839 xhigh, $0.188 max). At high: $0.0603 square, $0.0689 square HD, $0.0341 16:9. Auto quality or size: the price of the one chosen for the request. Prompt: $6.50 per 1M tokens.
Limits
- Runs
- In the background
- Returns
- image
- Longest queue wait
- 1 hour
- Run deadline
- 30 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 500 MB
- Largest output
- 5 GB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
prompt required | text | — | The prompt for image generation |
image_size | JSON | landscape_4_3 | The size of the generated image. Supports preset names, explicit {width, height}, or 'auto' to let the model pick the best size. Concrete sizes must have both dimensions as multiples of 16, max edge 3840px, aspect ratio <= 3:1, total pixels between 655,360 and 8,294,400. |
background | one of auto, transparent, opaque | auto | Background for the generated image |
quality | one of auto, low, medium, high, xhigh, max | high | Quality for the generated image. Higher settings increase detail, latency, and token usage. Use 'auto' to let the model choose. |
num_images | number (whole) 1 to 10 | 1 | Number of images to generate |
output_format | one of jpeg, png, webp | png | Output format for the images |
output_compression | number (whole) 0 to 100 | — | Compression level from 0 to 100. Only supported when output_format is 'jpeg' or 'webp'. |
image_passthrough | true or false | false | Send reference images and masks without resizing or re-encoding, and return the provider's original image bytes and format. Requests use the direct OpenAI API. Masks must be PNGs with an alpha channel: transparent regions are edited, and dimensions must match the first reference. |
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": "fal",
"model": "openai/gpt-image-2.5/flare/text-to-image",
"input": {
"prompt": "create a realistic image taken with iphone at these coordinates 41°43′32″N 49°56′49″W 15 April 1912"
}
}'