FLUX 1.1 Pro Ultra
High-resolution photographic stills. By Black Forest Labs.
black-forest-labs/flux-1.1-ultra/text-to-image
const res = await fetch("https://api.elyum.ai/v1/generations", { method: "POST", headers: { Authorization: `Bearer ${process.env.ELYUM_API_KEY}`, "Content-Type": "application/json", Prefer: "wait=55", }, body: JSON.stringify({ "model": "black-forest-labs/flux-1.1-ultra/text-to-image", "prompt": "A slow push-in on a lighthouse at dusk, waves breaking below" }),});const generation = await res.json();console.log(generation.status, generation.outputs);Result

$0.05 per image. Charged when the file is delivered; a render that fails or is canceled costs nothing.
FLUX 1.1 Pro Ultra text to image uses the model id black-forest-labs/flux-1.1-ultra/text-to-image. High-resolution photographic stills
1. Calling the API
Endpoint
Send a POST to https://api.elyum.ai/v1/generations with a JSON body matching the parameters below. Every model uses the same endpoint; the model field picks this one.
const res = await fetch("https://api.elyum.ai/v1/generations", { method: "POST", headers: { Authorization: `Bearer ${process.env.ELYUM_API_KEY}`, "Content-Type": "application/json", Prefer: "wait=55", }, body: JSON.stringify({ "model": "black-forest-labs/flux-1.1-ultra/text-to-image", "prompt": "A slow push-in on a lighthouse at dusk, waves breaking below" }),});const generation = await res.json();console.log(generation.status, generation.outputs);Request parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | — | black-forest-labs/flux-1.1-ultra/text-to-image, or black-forest-labs/flux-1.1-ultra to let your inputs pick the task. |
prompt | string | Yes | — | Sent to the model as written, never shortened. |
aspect_ratio | string | No | — | 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 |
max_usd | number | No | — | Refuse the render, with nothing held, if it would cost more than this many dollars. |
metadata | object | No | — | Up to 16 string pairs, echoed back on the generation. |
A value outside these lists is refused with a 400 naming the field, before anything is charged. Nothing is quietly rounded or dropped.
2. Authentication
API key
Create a key on Keys with the generate and spend scopes and send it as a bearer token. Keep it on your server; never send it to a browser.
Authorization: Bearer $ELYUM_API_KEY3. Queue
Submit and wait
With Prefer: wait=55 the request holds until the render ends or 55 seconds pass. A finished render answers 200 with its outputs; one still running answers 202 with its id.
Poll and cancel
const headers = { Authorization: `Bearer ${process.env.ELYUM_API_KEY}` }; // Poll until the render ends: succeeded, failed or canceledlet generation = await (await fetch(`https://api.elyum.ai/v1/generations/${id}`, { headers })).json();while (generation.status === "queued" || generation.status === "running") { await new Promise((r) => setTimeout(r, 5000)); generation = await (await fetch(`https://api.elyum.ai/v1/generations/${id}`, { headers })).json();} // Or stop it (a hold is refunded)await fetch(`https://api.elyum.ai/v1/generations/${id}/cancel`, { method: "POST", headers });Output links are signed and last 24 hours: download them to your own storage, or fetch the generation again for fresh ones.
4. Pricing
| Resolution | Price |
|---|---|
| Any resolution | $0.05 / image |
Send ?dry_run=true for the exact price of a request with nothing held. The API spends your API balance; a render that fails or is canceled costs nothing.
More models by Black Forest Labs
FLUX 1.1 Pro Ultra task by task, then the lowest price of each other model. What a render costs depends on the resolution and length you choose.
| Model | Price | Resolution | Length |
|---|---|---|---|
| FLUX 1.1 Pro Ultra Text to image | $0.05 / image | — | — |
| FLUX 3 MaxText to video · Image to video | from $0.06 / s | 720p – 1080p | 5 – 20 s |
| Flux.3 VideoText to video · Image to video | from $0.23 / s | 720p – 1080p | 5 – 20 s |
| FLUX 2 ProText to image · Image edit | $0.05 / image | — | — |
| FLUX 2 MaxText to image · Image edit | $0.07 / image | — | — |
| FLUX 2 FlexText to image · Image edit | $0.05 / image | — | — |
| FLUX 2 FlashText to image · Image edit | $0.02 / image | — | — |
| FLUX 2 Klein 9BText to image · Image edit | $0.02 / image | — | — |
| FLUX.1 Kontext MaxText to image · Image edit | $0.07 / image | — | — |