Generate an image
generate_imageGenerate images using Pixmax models; pass reference images for image-to-image or character consistency with up to 14 references. Automatically retries failed generations.
Instructions
Generate an image with a Pixmax model (Seedream 5 Pro/Lite, Nano Banana / 2 / Pro, Midjourney V7/V8.1/Niji, GPT Image 2, Qwen, MiniMax, Wan). Pass reference_images (file paths or URLs) for image-to-image or character consistency — up to 14, and they are free. Rich refs ({source, role, strength, note}) get their guidance woven into the prompt. style keeps a whole set visually coherent. Failed generations retry once automatically. Blocks until ready and returns the URL(s).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Default true. false = return a task id immediately (poll with get_task) | |
| count | No | Number of images (billed linearly) | |
| model | Yes | Model code or name, e.g. "DOUBAO_SEEDREAM_5_PRO" or "Seedream 5.0 Pro" | |
| style | No | Visual-language suffix applied consistently across generations (e.g. "handmade stop-motion miniature, muted palette") | |
| prompt | Yes | What to generate | |
| quality | No | GPT Image 2 only — render quality (default medium) | |
| save_to | No | Directory to save the result(s) — Pixmax URLs expire | |
| resolution | No | e.g. 1K, 2K, 4K — free on most Pixmax image models. 4K is auto-capped to 2K on the Seedream family (unsupported there) | |
| aspect_ratio | No | e.g. 16:9, 1:1, 9:16 | |
| prompt_extend | No | Qwen Image Edit only — auto-expand the prompt (default true) | |
| reference_images | No | References — plain paths/URLs, or rich objects with role/strength/note; guidance is woven into the prompt so the model knows what each ref is FOR |