# BFL Flux 2 Max Text to Image API

> Flux 2 Max by BFL - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.

Source: https://www.sandbase.ai/models/bfl/flux-2/max
API reference: https://www.sandbase.ai/models/bfl/flux-2/max/docs

## Facts

- Provider: BFL
- Type: Image model
- Model ID: `bfl/flux-2/max`
- Price: $0.07 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-2/max",
  "prompt": "A lavish, baroque-style image of a powerful sorceress in her arcane study. She is dressed in robes of deep emerald velvet embroidered with gold thread and shimmering beetle wings, holding a staff topped with a glowing, swirling galaxy trapped in a crystal orb.She stands before a massive oak desk covered in open grimoires with illuminated pages showing alchemical diagrams, bubbling potions in glass alembics, and a sleeping pseudodragon curled around a stack of scrolls. The room is filled with curiosities: shelves of leather-bound books, celestial globes, and dried magical herbs hanging from the ceiling. The lighting is chiaroscuro, from a large fireplace with green flames and a magical candelabra floating in mid-air. The brushwork is visible and textured, with rich, deep colors. The style is reminiscent of Rembrandt meets classic fantasy art. The words '"'"'Flux 2 Max is available on fal'"'"' are written in elegant cursive font on the top of the image.",
  "aspect_ratio": "16:9",
  "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 2 Max Text to Image through SandBase?

Create a SandBase API key, then send requests with the model ID "bfl/flux-2/max" 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 2 Max Text to Image and the other models in the catalog; you do not need to sign up with BFL separately.

## README

### Flux 2 Max Text to Image

FLUX.2 [max], BFL's highest-quality FLUX.2 tier, with the best prompt following and detail. Text to image.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text instruction. |
| `output_format` | `jpeg` / `png` | `jpeg` | Output file format. |
| `aspect_ratio` | `21:9` / `16:9` / `3:2` / `4:3` / `5:4` / `1:1` / `4:5` / `3:4` / `2:3` / `9:16` | `16:9` | Output shape. |
| `seed` | integer | random | Fix it to compare prompt changes. |

#### Billing

$0.07 per image.

| Request | Price |
|---|---|
| One image | $0.07 |

Failed runs are not charged.

#### Prompting

- Write subject, setting, composition, style, then light.
- Quote any text that must appear.

#### Limits

- One output image per request.

#### Also on SandBase

Other FLUX.2 endpoints: `bfl/flux-2/pro`, `bfl/flux-2/flex`, `bfl/flux-2/dev`, `bfl/flux-2/turbo`, `bfl/flux-2/max/edit`.
