flux-2-flex
Black Forest Labs's Flux 2 Flex: text to image and image editing, up to 4MP.
| Variant | ID | Per image | Providers |
|---|---|---|---|
| 1MP | 1mp | $0.042 | 2 |
| 2MP | 2mp | $0.084 | 2 |
| 3MP | 3mp | $0.126 | 2 |
| 4MP | 4mp | $0.168 | 2 |
This is the lowest price among the providers that can run each variant. A job that falls back to another provider can cost more; the estimate shows the cap before you run it.
Quantity: Always 1.
| Field | Type | Accepts |
|---|---|---|
seed | integer | |
images | list of https URLs | up to 4 |
promptrequired | text | up to 20,000 characters |
aspect_ratio | choice | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3 |
A field that is not listed here is refused, never passed through.
curl "https://api.opengrid.one/v1/generations?wait=60" \
-H "Authorization: Bearer $OPENGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-flex",
"variant": "1mp",
"quantity": 1,
"input": {
"prompt": "A paper boat drifting down a rain gutter, golden hour",
"aspect_ratio": "16:9"
}
}'