API Free WeekHundreds of APIs are free to call this week.Browse free APIs

Flux 3 Text to Image

bfl/flux-3/text-to-image

FLUX 3 by Black Forest Labs generates images from a text prompt, with strong prompt adherence and typography at 512px to 4K resolution tiers.

Base price
$0.05USD / run
Execution
async
Model type
image
Input fields
4
Production route

Try the model

Playground

Open playground
Input
The prompt to generate an image from.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
Output resolution tier. 4k can take several minutes. Allowed values: 512sq, 768sq, 1k, 2k, 4k.
The format of the generated image. Allowed values: jpeg, png.
OutputExample

Examples

Select an example to load its inputs and result into the playground.

Model card

Specifications

Pricing

Base price
$0.05 / run

Context & modalities

Input
Schema-defined
Output
image

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
BFL
Model ID
bfl/flux-3/text-to-image
Execution
async
API
Unified Run API
Endpoint
/v1/run

API README

Flux 3 Text to Image

FLUX 3 is Black Forest Labs' third-generation image model. This endpoint generates images from a text prompt. Choose a resolution tier from 512sq to 4k and an aspect ratio; JPEG or PNG output.

Pricing

OptionPrice
Per output megapixel (1 MP = 1024×1024, rounded up, minimum 1 MP)$0.048
1k (about 1 MP)$0.048
2k (about 4 MP)about $0.192
4k (about 16 MP)about $0.768

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
bfl/flux-3/text-to-image
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "bfl/flux-3/text-to-image",
  "prompt": "A red fox leaping over a stream in a pine forest, low-angle wildlife photograph.",
  "resolution": "1k",
  "output_format": "jpeg"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
BFLImage$0.05 / runOct 1, 2026
BFLImage$0.05 / runOct 1, 2026
BFLImage$0.04 / runMay 28, 2026
BFLImage$0.01 / runJan 15, 2026
BFLImage$0.01 / runJan 15, 2026
BFLImage$0.01 / runJan 15, 2026

Questions

FAQ

How do I call BFL Flux 3 Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "bfl/flux-3/text-to-image" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate BFL account?

No. One SandBase API key and balance gives you access to BFL Flux 3 Text to Image and the other models in the catalog; you do not need to sign up with BFL separately.