FLUX 3 Text to Image
blackforestlabs/flux-3/text-to-imageGenerate images from text with FLUX 3 Text to Image from fal through one Spiral API key. FLUX 3 Image is Black Forest Labs' newest image model. Generate detailed, well-composed images in native 2K and 4K with precise layout control and improved text rendering. It runs in the background and returns images. Pay as you go, with no subscription.
Pricing
resolution: otherwise $0.0624, 1k (default) $0.1248, 1.5k $0.1872, 2k $0.312, 4k $1.0608 per megapixel.
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
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
prompt required | text | — | The prompt to generate an image from. |
aspect_ratio | one of auto, 21:9, 2:1, 16:9, 3:2, 7:5, 4:3, 5:4, 1:1, 4:5, 3:4, 5:7, 2:3, 9:16, 1:2 | auto | Output aspect ratio. Auto uses the first reference image when editing. |
resolution | one of 768sq, 1k, 1.5k, 2k, 4k | 1k | Output resolution tier. 4k can take several minutes. |
enable_prompt_expansion | true or false | false | Expand the prompt while preserving its intent and reference roles. |
safety_tolerance | number (whole) 0 to 4 | 2 | Safety tolerance, from 0 (strictest) to 4. |
output_format | one of jpeg, png | jpeg | The format of the generated image. |
version | text | latest | The model version. |
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": "blackforestlabs/flux-3/text-to-image",
"input": {
"prompt": "A red fox leaping over a stream in a pine forest, low-angle wildlife photograph."
}
}'Frequently asked questions
How much does FLUX 3 Text to Image cost?
`resolution`: otherwise $0.0624, 1k (default) $0.1248, 1.5k $0.1872, 2k $0.312, 4k $1.0608 per megapixel. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use FLUX 3 Text to Image through an API?
Send `POST /v1/runs` with `"provider": "fal"`, `"model": "blackforestlabs/flux-3/text-to-image"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with fal to use FLUX 3 Text to Image?
No. Spiral runs it on its own fal account and charges your Spiral balance.
Can my AI agent use FLUX 3 Text to Image?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.