Перейти к содержимому
Главная

FLUX.1 Kontext [max]

flux_kontext_max

FLUX.1 Kontext [max] provides maximum context understanding and image generation capability for complex creative tasks.

POST /v1/queue/flux_kontext_max # Создать задачу
GET /v1/queue/flux_kontext_max/requests/{request_id}/status # Проверить статус
GET /v1/queue/flux_kontext_max/requests/{request_id}/response # Получить результат
PUT /v1/queue/flux_kontext_max/requests/{request_id}/cancel # Отменить задачу
Окно терминала
curl --location "https://odirouter.ai/model/v1/queue/flux_kontext_max" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"prompt": "A clean product photo of a red apple on a white table, soft studio lighting.",
"seed": 42,
"aspect_ratio": "1:1",
"output_format": "png",
"prompt_upsampling": false,
"safety_tolerance": 2
}'
prompt string обязательно

Text prompt describing the image to generate or edit.

input_image string

First input image. Supports Base64-encoded image data or a URL.

input_image_2 string

Second input image. Supports Base64-encoded image data or a URL.

input_image_3 string

Third input image. Supports Base64-encoded image data or a URL.

input_image_4 string

Fourth input image. Supports Base64-encoded image data or a URL.

seed int

Random seed used for reproducible generation, for example 42.

aspect_ratio string

Image aspect ratio, such as 16:9.

Range: 21:9 - 9:21

output_format string

Output format. jpeg is accepted, but the returned file may still be png.

Options: jpeg, png

Default: png

prompt_upsampling bool

Whether to enable automatic prompt enhancement. When enabled, the prompt is automatically modified for more creative generation.

Default: false

safety_tolerance int

Safety tolerance level for input and output moderation. 0 is the strictest and 6 is the most permissive.

Range: 0 <= x <= 6

Default: 2

{
"request_id": "mmsu_01hxyz...",
"response_url": "https://odirouter.ai/model/v1/queue/flux_kontext_max/requests/mmsu_01hxyz.../response",
"status_url": "https://odirouter.ai/model/v1/queue/flux_kontext_max/requests/mmsu_01hxyz.../status",
"cancel_url": "https://odirouter.ai/model/v1/queue/flux_kontext_max/requests/mmsu_01hxyz.../cancel",
"queue_position": 0
}
ПолеТипОписание
request_idstringИдентификатор задачи, используемый во всех последующих операциях.
response_urlstringURL для получения итогового результата.
status_urlstringURL для проверки статуса задачи.
cancel_urlstringURL для отмены задачи.
queue_positionintТекущая позиция в очереди.