# BFL Flux 3 Text to Image API

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

Source: https://www.sandbase.ai/models/bfl/flux-3/text-to-image
API reference: https://www.sandbase.ai/models/bfl/flux-3/text-to-image/docs

## Facts

- Provider: BFL
- Type: Image model
- Model ID: `bfl/flux-3/text-to-image`
- Price: From $0.05 per run
- Capabilities: text to image
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "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"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## 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.

## README

### Flux 3 Text to Image

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

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text instruction. |
| `aspect_ratio` | `21:9` / `16:9` / `3:2` / `4:3` / `5:4` / `1:1` / `4:5` / `3:4` / `2:3` / `9:16` | — | Output shape. |
| `resolution` | `512sq` / `768sq` / `1k` / `2k` / `4k` | `1k` | Size tier; sets the per-image rate. |
| `output_format` | `jpeg` / `png` | `jpeg` | Output file format. |

#### Billing

BFL's official per-image tiers: $0.041 for the 512 and 768 square tiers, $0.048 at 1K, $0.10 at 2K, $0.607 at 4K.

| Request | 512sq | 1k | 2k | 4k |
|---|---|---|---|---|
| One image | $0.041 | $0.048 | $0.10 | $0.607 |

Failed runs are not charged.

#### Prompting

- Quote any text that must appear and say where it goes.

#### Limits

- One output image per request.

#### Also on SandBase

Other FLUX 3 endpoints: `bfl/flux-3/edit`, `bfl/flux-3/text-to-video`, `bfl/flux-3/image-to-video`.
