Reference to ImageNEW
Generate new images based on the subjects / style of reference images (image-to-image / multi-reference).
💡 When to use:Use to keep a given character, product or style while changing the scene / composition; sending images means reference mode.
POST /v1/images/generations (synchronous by default: it returns once the image is ready; add "async": true to get a task back immediately and poll GET /v1/images/generations/{id}), authenticate with Authorization: Bearer <key>; errors use the OpenAI format. General notes are in the Images guide. Images guidedata[].url; if it is still not done after 110 seconds it answers 202 with the task object and a Location header. The task keeps running, so do not resubmit (there is no double charge); fetch the result with GET /v1/images/generations/{id}. Asynchronous ("async": true or the Prefer: respond-async header): answers 202 with the task object right away (status: queued, Retry-After: 3); poll with GET until status is completed or failed.Authorization
Sub-models
The tier price column is credits/image (credits/call for per-call models); (default output) = default output only, resolution not accepted; ≥N refs → = multi-reference tier.
| model | Usage | Materials | Images | Tier price (credits) |
|---|---|---|---|---|
| hunyuan-image-3.5-preview | 3.5 Preview; default output 1344x1792 | ≤3 reference images | 1 | 2K=15 (default output) |
| hunyuan-image-3.0 | 3.0; default output 1024x1024 | ≤3 reference images | 1 | 1K=20 (default output) |
Request body
application/jsonmodel, prompt, n, size, aspect_ratio, resolution, images, output_format, negative_prompt, prompt_extend and async are the common fields; the server converts them to the channel fields. Other fields in the table are native to the channel: put them in the same body under their own names and they are passed through, and a native field wins over its unified synonym. images takes http(s) image URLs only (no base64). response_format can only be url.
Response fields
img_; used for polling.image.generation.queued, in_progress, completed or failed. A synchronous 200 is always completed.{code, message}, with code image_generation_failed.[{ "url": "https://..." }], one element per image (several when n is above 1, or for the 4 Midjourney images); an empty array until then.