Flux 3 API: Photoreal Images and Clean Text by Code
Call the Flux 3 API with one key: Black Forest Labs' FLUX.3 for natural light and readable lettering, from a prompt, with code and the price per image.
Updated 5 min read
The Flux 3 API on Frameport is a call to Flux 3 Image, Black Forest Labs's FLUX.3, through the same key and balance as every other model here: a prompt in, up to 4 images out, $0.088 for each one that succeeds. FLUX.3 aims for photographs that look lit by a real window or a real street lamp, and it can set short words inside the picture so they read.
Below: the model's options, a request that checks its price before it runs, how to get lettering right, prompts for natural light, what batches cost, and which FLUX versions the catalog sells.
Flux 3 Image options, id and limits
| Maker | Black Forest Labs |
| Model id | flux-3-image |
| What it does | Text to image, from a prompt of up to 2,400 characters |
| Pictures it reads | None |
| Aspect ratios | 1:1, 3:4, 4:3, 9:16 and 16:9 |
| Images per request | Up to 4 |
| Price | $0.088 per image |
| Endpoint | POST /v1/images/generations |
There is no separate Black Forest Labs account to open: the request goes to Frameport, and the model field selects FLUX.3. It is a text-to-image model here, so a subject that must match your own photo, or an edit of an existing picture, needs a model that reads pictures, such as Nano Banana Pro or Frameport Image 1.
Calling the Flux 3 API: quote, submit, save
A quote and a request take the same body, so code can price a batch, check the balance, then send it with a cap at the quoted price. Nothing is held at the quote; the submit answers 202 Accepted with the generation's id, reserved_usd and one queued output per image.
# 1. Price the batch: nothing is held
curl https://frameport.ai/v1/generations/quote \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "flux-3-image", "n": 4, "aspect_ratio": "4:3"}'
# 2. Submit the same body with its prompt
curl https://frameport.ai/v1/images/generations \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-3-image",
"prompt": "A street-food stall at dusk, a hand-painted sign reading \"NOODLES\" above the counter, steam rising through warm lamp light, 35mm photograph, shallow depth of field",
"n": 4,
"aspect_ratio": "4:3"
}'
# 3. Read it with the id it returned until it has settled
curl https://frameport.ai/v1/images/generations/$GENERATION_ID \
-H "Authorization: Bearer $FRAMEPORT_API_KEY"{
"object": "quote",
"model": "flux-3-image",
"type": "image",
"mode": "generate",
"price_usd": 0.352,
"reserved_usd": 0.352,
"breakdown": "4 images × $0.088",
"available_usd": 42.5,
"enough_balance": true
}A request priced above its max_cost_usd is refused with 400 max_cost_exceeded before any hold (quotes). Once an image is ready, its output holds a link you can open without a key for roughly an hour; the images reference covers every other field.
Lettering that reads
FLUX.3 can set short words in the frame: a shop sign, a label, the title of a poster. Treat the lettering as an object in the scene and describe it like one:
- Quote the exact words, in the case you want them: "OPEN", "Harvest Fest", "No. 9".
- Say where they sit and what they are made of: painted on a shop window, stitched on a cap, embossed on a leather cover, glowing in neon over a door.
- Name the type: condensed sans-serif, hand-lettered brush script, chunky slab serif.
- Keep one short text element per image. A layout carrying several lines of copy suits a model that lists typography among its strengths, such as GPT Image 2.5.
A prompt that follows all four: "Poster for a jazz night: a saxophonist in silhouette against a deep blue wall, the words "BLUE HOUR" in tall condensed letters across the top, grainy screen-print texture".
Natural light, photographic results
For photoreal frames, write the scene the way a photographer would plan it:
- Open with the place and the hour. "Late afternoon in a small kitchen" fixes the light before any subject appears.
- Name the light source: a single window to the left, a bare bulb overhead, low winter sun through bare trees.
- Add a focal length and an aperture. "50mm, f/2" pulls the picture toward photography and softens the background.
- Allow ordinary imperfections: crumbs on the table, a chipped enamel mug, a crease in a shirt.
- Spend words on the scene, not on quality tags. "Ultra-detailed" or "8k" describe nothing the model can show.
Put together: "Late afternoon in a small kitchen, low sun through a west window, a man in a flour-dusted apron rolling pasta on a wooden table, a chipped enamel mug beside him, 50mm, f/2".
Flux 3 price per image
Every image costs $0.088, at any of its aspect ratios and whatever the prompt's length.
| Images | Price |
|---|---|
| 1 | $0.088 |
| 4 | $0.352 |
| 50 | $4.40 |
| 1,000 | $88.00 |
Submitting reserves what all the requested images would cost. Each image is then charged on its own as it succeeds, and the share of an image that fails returns to your balance, so four requested and three delivered cost $0.264. FLUX.3 keeps Black Forest Labs's content policy here, whatever your workspace's filter says. When it turns a prompt down, you get either a 400 content_policy at submit or a failed output with content_policy as its error code, and nothing is charged either way. Pricing explains holds and top-ups.
Which FLUX models can you call?
The catalog sells FLUX.3 as Flux 3 Image, under the id flux-3-image. Other FLUX releases, an older FLUX.2 model for example, are not on sale here; GET /v1/models lists what is, live, with no key needed.
FLUX.3 makes stills. To put one in motion, pass its output id (file_…) as the first frame of a video model that takes one: the image to video API guide lists them. To weigh FLUX.3 against the other photoreal models, FLUX.3 vs GPT Image 2.5 vs Seedream 5.0 Pro runs one prompt on all three, and the best image generation API guide picks a model by job.
Batch and volume costs are in Flux API pricing.
FAQ
Do I need a Black Forest Labs API key?
No. You send the request to Frameport with a key that starts with fp_live_, and the model field picks FLUX.3. The same key and the same balance work for every other model of the catalog.
Is there a free Flux 3 API?
The account, the key and quotes cost nothing, and an image that fails is not charged. What you pay for is each image delivered, drawn from a balance you top up in advance, from $10. You can try Flux 3 Image online to test prompts before you write code.
Can FLUX.3 edit or restyle a picture I upload?
No. FLUX.3 works from text here, with no picture input. Edits by instruction run on Nano Banana Pro, with up to 6 pictures, or on Frameport Image 1, with up to 10.
Is Flux 3 uncensored?
No. FLUX.3 keeps its maker's policy, with your workspace's content filter on or off, and a refusal costs nothing. Which AI image models are uncensored explains which models render without a filter once it is off.
Which aspect ratios does Flux 3 support?
1:1, 3:4, 4:3, 9:16 and 16:9, with a square image when the request names none. The price is the same for every shape.