Endpoint
Request Headers
| Parameter | Value | Description |
|---|---|---|
| x-api-key | API Key | Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded. |
| Authorization | Bearer {token} | Your API Key used for request authorization.Get Token |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| image_model_id | String | true | The _id returned from the Create By Source Prompt API or Generate 4K or Variations API |
Response Attributes
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Interface returns business status code (1000:success) |
| msg | String | Interface returns status information |
| data | Object | Response data object |
| - _id | String | Document ID |
| - create_time | Long | Creation timestamp |
| - uid | Integer | User ID |
| - type | Integer | Type identifier |
| - image_status | Integer | Status: 1=queueing, 2=processing, 3=completed, 4=failed |
| - image | String | Image result URL (available when image_status = 3) |
| - deduction_credit | Integer | Credits deducted |
| - buttons | Array | Available operation buttons (U1-U4 for 4K upscale, V1-V4 for variations) |
| - used_buttons | Array | Already used buttons |
| - upscaled_urls | Array | Upscaled image URLs |
Example
Request
Response
Completed Status (image_status = 3)
Image Status
| Status | Description |
|---|---|
| 1 | In Queue - Your request is waiting to be processed |
| 2 | Processing - Image is currently being generated |
| 3 | Success - Image completed, result URL is available in the image field |
| 4 | Failed - Image generation failed, check your input |
Important Notes
- Use the
_idfield from the Create By Source Prompt API or Generate 4K or Variations API response as theimage_model_idparameter - Poll this endpoint periodically to check the image generation status
- When
image_statusis 3 (Success), theimagefield will contain the URL of the generated image - The
buttonsfield lists available operations (U1-U4 for 4K upscale, V1-V4 for variations) - use these with the Generate 4K or Variations API - Generated images are valid for 7 days, download and save them promptly
- If a webhook URL was provided during creation, you will receive a callback when the task completes (no need to poll)