FLUX Kontext Max
flux-kontext-max
| default | $0.08 / image |
FLUX KONTEXT MAX API
FLUX Kontext Max is Black Forest Labs’ highest-quality Kontext model for editing an image with plain-language instructions. Send the image in image_urls and a prompt to POST /v1/images/generations; without an image it generates from text.
flux-kontext-max
| default | $0.08 / image |
Change objects, text, lighting or style while the rest of the image stays put.
1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9, 9:21 or auto.
safety_tolerance from 0 to 6, and optional prompt_upsampling.
This model runs asynchronously: the request returns a task id right away. Poll GET /v1/tasks/{id} (or /v1/records/{id}), or pass callback_url to receive a signed webhook when the job finishes.
# 1. Submit the job
curl https://apimany.com/v1/images/generations \
-H "Authorization: Bearer $APIMANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-kontext-max",
"prompt": "A cozy cabin in a snowy forest at night, warm window light",
"size": "1:1"
}'
# 2. Poll until status is "completed"
curl https://apimany.com/v1/tasks/TASK_ID \
-H "Authorization: Bearer $APIMANY_API_KEY"| Name | Type | Default | Allowed values |
|---|---|---|---|
| model * | string | flux-kontext-max | |
| prompt * | string | — | |
| image_urls | array | — | |
| size | string | 1:1 | 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9, 9:21, auto |
| output_format | string | png | |
| response_format | string | — | |
| n | integer | 1 | |
| seed | integer | — | |
| prompt_upsampling | boolean | false | |
| safety_tolerance | integer | 2 | 0 – 6 |
| callback_url | string | — | HTTPS URL for the completion webhook |
{
"code": 200,
"data": {
"id": "6f1c2a7e-…",
"model": "flux-kontext-max",
"status": "completed",
"progress": 100,
"cost_usd": 0.27,
"result": {
"images": [{ "url": ["https://apimany.com/files/…"], "expires_at": 1760000000 }]
}
}
}FLUX Kontext Max starts at $0.08 / image. The price tables on this page list every tier, and you are charged only for successful results.
Create a key in the console, then send a request to /v1/images/generations with "model": "flux-kontext-max". Jobs run asynchronously; poll the task or receive a signed webhook.
Yes. Leave image_urls empty and it generates from the prompt alone.
Catalog entries are not availability promises. Authenticated GET /v1/models is the source of truth: if flux-kontext-max is listed there with a rate, it is enabled for your key.