FLUX.2 [pro]
flux_2_pro
FLUX.2 [pro] is a second-generation professional image generation model with improved quality and faster processing.
Эндпоинты
Заголовок раздела «Эндпоинты»POST /v1/queue/flux_2_pro # Создать задачуGET /v1/queue/flux_2_pro/requests/{request_id}/status # Проверить статусGET /v1/queue/flux_2_pro/requests/{request_id}/response # Получить результатPUT /v1/queue/flux_2_pro/requests/{request_id}/cancel # Отменить задачуПараметры запроса
Заголовок раздела «Параметры запроса»curl --location "https://odirouter.ai/model/v1/queue/flux_2_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.", "input_image": "BASE64_IMAGE_DATA", "seed": 42, "width": 1024, "height": 768, "safety_tolerance": 2, "output_format": "jpeg" }'Text prompt.
First input image, provided as Base64-encoded image data.
Input image, provided as Base64-encoded image data.
Input image, provided as Base64-encoded image data.
Input image, provided as Base64-encoded image data.
Input image, provided as Base64-encoded image data.
Input image, provided as Base64-encoded image data.
Input image, provided as Base64-encoded image data.
Input image, provided as Base64-encoded image data.
Random seed used to reproduce results, for example 42.
Output image width. Must be a multiple of 32.
Minimum: 64
Output image height. Must be a multiple of 32.
Minimum: 64
Safety tolerance level for input and output moderation. 0 is the strictest and 5 is the most permissive.
Range: 0 <= x <= 5
Default: 2
Output image format.
Options: jpeg, png, webp
Default: jpeg
Параметры ответа
Заголовок раздела «Параметры ответа»{ "request_id": "mmsu_01hxyz...", "response_url": "https://odirouter.ai/model/v1/queue/flux_2_pro/requests/mmsu_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/flux_2_pro/requests/mmsu_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/flux_2_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 | Текущая позиция в очереди. |