FLUX.1 Kontext [max]
flux_kontext_max
FLUX.1 Kontext [max] provides maximum context understanding and image generation capability for complex creative tasks.
Endpoints
Section titled “Endpoints”POST /v1/queue/flux_kontext_max # Create taskGET /v1/queue/flux_kontext_max/requests/{request_id}/status # Check statusGET /v1/queue/flux_kontext_max/requests/{request_id}/response # Get resultPUT /v1/queue/flux_kontext_max/requests/{request_id}/cancel # Cancel taskRequest parameters
Section titled “Request parameters”curl --location "https://cloud.seaart.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 }'Text prompt describing the image to generate or edit.
First input image. Supports Base64-encoded image data or a URL.
Second input image. Supports Base64-encoded image data or a URL.
Third input image. Supports Base64-encoded image data or a URL.
Fourth input image. Supports Base64-encoded image data or a URL.
Random seed used for reproducible generation, for example 42.
Image aspect ratio, such as 16:9.
Range: 21:9 - 9:21
Output format. jpeg is accepted, but the returned file may still be png.
Options: jpeg, png
Default: png
Whether to enable automatic prompt enhancement. 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
Response parameters
Section titled “Response parameters”{ "request_id": "mmsu_01hxyz...", "response_url": "https://cloud.seaart.ai/model/v1/queue/flux_kontext_max/requests/mmsu_01hxyz.../response", "status_url": "https://cloud.seaart.ai/model/v1/queue/flux_kontext_max/requests/mmsu_01hxyz.../status", "cancel_url": "https://cloud.seaart.ai/model/v1/queue/flux_kontext_max/requests/mmsu_01hxyz.../cancel", "queue_position": 0}| Field | Type | Description |
|---|---|---|
request_id | string | Task ID used for all follow-up operations. |
response_url | string | URL to fetch the final result. |
status_url | string | URL to query task status. |
cancel_url | string | URL to cancel the task. |
queue_position | int | Current queue position. |