# FLUX.2 Max API on Wizzx - Model ID: `flux-2-max` (Black Forest Labs FLUX.2 Max) - Submit: `POST https://api.wizzx.ai/api/v1/task/submit/flux-2-max` - Status: `GET https://api.wizzx.ai/api/v1/task/{task_id}` - Idempotency: optional `Idempotency-Key: ` header on submit - Auth: header `Authorization: Bearer $WIZZX_API_KEY` (server-side only) - Price: from $0.087/image, billed in credits; failed tasks are refunded - Page: https://wizzx.ai/model/flux-2-max - JSON Schema: https://wizzx.ai/api/models/flux-2-max/schema - API reference: https://docs.wizzx.ai/api-reference/endpoint/submit-flux-2-max ## Flow 1. POST the JSON body to the submit URL. The response contains `data.task_id`. 2. Poll `GET /api/v1/task/{task_id}` until `data.status` is `SUCCEEDED`, then read the output URLs from `data.result_urls`. 3. Stop on `FAILED` or `REVIEW_REQUIRED`. Do not resubmit automatically. ## Parameters | Field | Type | Required | Default | Allowed | Description | |---|---|---|---|---|---| | `prompt` | string | yes | | ≤ 5,000 | Describe the image to generate or the edit to apply. | | `image_urls` | url[] ≤ 8 | no | | | Optional. Up to 8 reference images. Reference images are not charged. | | `aspect_ratio` | string | no | 1:1 | auto · 1:1 · 4:3 · 3:4 · 16:9 · 9:16 · 3:2 · 2:3 · 21:9 · 9:21 | | | `resolution` | string | no | 2MP | 1MP · 2MP · 3MP · 4MP | Resolution is the only setting that changes the price. | | `output_format` | string | no | jpeg | jpeg · png · webp | | | `prompt_upsampling` | boolean | no | | | Expand the prompt with additional visual detail. | | `safety_tolerance` | integer | no | | 0 – 5 | 0 = strictest, 5 = most permissive | | `seed` | integer | no | | 0 – … | Random seed for reproducibility | ## Example body ```json { "aspect_ratio": "1:1", "resolution": "2MP", "output_format": "jpeg", "prompt": "A ceramic coffee cup on a wooden table, soft morning light, product photography" } ```