# GPT Image 2 API on Wizzx - Model ID: `gpt-image-2` (OpenAI GPT Image 2) - Submit: `POST https://api.wizzx.ai/api/v1/task/submit/gpt-image-2` - 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.009/request, billed in credits; failed tasks are refunded - Page: https://wizzx.ai/model/gpt-image-2 - JSON Schema: https://wizzx.ai/api/models/gpt-image-2/schema - API reference: https://docs.wizzx.ai/api-reference/endpoint/submit-gpt-image-2 ## 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 | | ≤ 32,000 | Describe the image to generate or the edit to apply. | | `image_urls` | url[] ≤ 10 | no | | | Optional. Add up to 10 public images to switch from generation to image editing. | | `size` | string | no | auto | auto · 1024x1024 · 1536x1024 · 1024x1536 | Output dimensions. Size does not change the price. | | `quality` | string | no | auto | auto · low · medium · high | Quality does not change the fixed request price. | | `output_format` | string | no | png | png · jpeg · webp | | ## Example body ```json { "size": "auto", "quality": "auto", "output_format": "png", "prompt": "A cinematic product photo on a reflective surface" } ```