FLUX.1 Kontext [pro]
flux_kontext_pro
FLUX.1 Kontext [pro] provides context-aware image generation with professional capabilities and enhanced complex prompt understanding.
Эндпоинты
Заголовок раздела «Эндпоинты»POST /v1/queue/flux_kontext_pro # Создать задачуGET /v1/queue/flux_kontext_pro/requests/{request_id}/status # Проверить статусGET /v1/queue/flux_kontext_pro/requests/{request_id}/response # Получить результатPUT /v1/queue/flux_kontext_pro/requests/{request_id}/cancel # Отменить задачуПараметры запроса
Заголовок раздела «Параметры запроса»curl --location "https://odirouter.ai/model/v1/queue/flux_kontext_pro" \ --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 }'Text description of the desired image.
Base64-encoded image or image URL used as a reference. Supports up to 20MB.
Base64-encoded image or image URL used as a reference. Supports up to 20MB.
Base64-encoded image or image URL used as a reference. Supports up to 20MB.
Base64-encoded image or image URL used as a reference. Supports up to 20MB.
Used for reproducibility. If null or omitted, a random seed is used. Accepts any integer, for example 42.
Image aspect ratio, between 21:9 and 9:21.
Output format. jpeg is accepted, but the returned file may still be png.
Options: jpeg, png
Default: png
Whether to upsample the prompt. When enabled, the prompt is automatically modified for more creative generation.
Default: false
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_pro/requests/mmsu_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/flux_kontext_pro/requests/mmsu_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/flux_kontext_pro/requests/mmsu_01hxyz.../cancel", "queue_position": 0}| Поле | Тип | Описание |
|---|---|---|
request_id | string | Идентификатор задачи, используемый во всех последующих операциях. |
response_url | string | URL для получения итогового результата. |
status_url | string | URL для проверки статуса задачи. |
cancel_url | string | URL для отмены задачи. |
queue_position | int | Текущая позиция в очереди. |