enable_sync_mode set to true (some models do not support this parameter, but you still need to query the result by id), you must call the Query Result endpoint to retrieve the final output.
data.id – the unique identifier of the predictiondata.urls[0].get – a ready-to-use GET URL that already embeds the idResponse Example
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
prompt | string | ✅ Yes | - | - | The text prompt for generating the image. |
images | array | ✅ Yes | - | 1~7 items | The reference image to guide the generation. |
aspect_ratio | string | ❌ No | 1:1 | 1:116:99:164:33:421:92:33:2auto | The aspect ratio for the generated image. |
resolution | string | ❌ No | 1080p | 1080p2k4k | The output resolution quality: 1080p (1920x1080), 2K (2560x1440), or 4K (3840x2160). |
seed | integer | ❌ No | 1 | 1~2147483647 | The random seed to use for the generation. 1 means a random seed will be used. |
| Error Code | Error Name | Description |
|---|---|---|
| 401 | Unauthorized | API key is missing or invalid |
| 403 | Forbidden | Your API key doesn’t have permission to access this resource, or insufficient balance for the requested operation |
| 429 | Too Many Requests | You’ve exceeded your rate limit |
| 500 | Internal server error | An internal server error occurred |
| 503 | Content policy violation | Content blocked due to safety concerns (actual status code is 400) |