Generate a SET of illustrations in one consistent style - scenes, environments, hero images, banners, posters, portraits - one composed illustration per scene, every illustration in the call at the same size. The style parameter says how they are drawn, styleReferences shows that style in up to 3 reference images, and the scenes parameter says what each illustration shows. Without style references, the first scene is drawn first and the rest are drawn to match it. Returns a zip download URL. Each call costs 1 credit. Run generation calls sequentially, never in parallel - only one generation runs at a time per API key.
For separate isolated subjects on a plain or transparent background (icons, sprites, asset packs), use generate_image_set instead; for one character in many variations, generate_character_set.
width and height must be one of the supported pixel pairs below; any other pair is rejected. These are the maximums offered - nothing larger is available. Each line is one shape: the first pair is that shape's largest size, the rest are exact proportional downscales of it. To add scenes later, at this size or another from the list, use extend_illustration_set; to deliver a batch again at another of its sizes, format or quality, use edit_set.
2752x1536, 1376x768, 688x384
2048x2048, 1024x1024, 512x512, 256x256
1024x4128, 512x2064, 256x1032
704x5856, 352x2928
3168x1344, 1584x672, 792x336
1696x2528, 848x1264, 424x632
2528x1696, 1264x848, 632x424
1792x2400, 896x1200, 448x600
4128x1024, 2064x512, 1032x256
2400x1792, 1200x896, 600x448
1856x2304, 928x1152, 464x576
2304x1856, 1152x928, 576x464
5856x704, 2928x352
1536x2752, 768x1376, 384x688
IMPORTANT - style and scene rules for best results:
- The style is how every illustration is drawn (medium, technique, palette, lighting treatment); each scene is what one illustration shows (its subject, setting, moment and composition). Keep the shared look in the style, so the set stays consistent.
- Scene craft, since each call costs a credit: name the light and the time of day (cold blue twilight, one warm lamp from the left); fix the camera (wide establishing shot, three-quarter portrait, viewed from the doorway); and ask for open space on a named side when text will be laid over the illustration later.
- Illustrations carry no text unless a scene asks for it: write any words that belong in an illustration, such as the name on a shop sign, into its scene.
- Scenes must describe distinct illustrations; a scene that describes nothing to draw, or repeats another, is rejected, as is a style that does not describe a visual style.
- For scenes that share people and a place (a story, a before and after), set sameScene to true: write the first scene in full, and each later scene as only what is different from the scene before it.
- Maximum 6 scenes per call. Style max length: 500 characters. Scene max length: 2500 characters each.
- Formats: png (default, lossless), jpg, webp. quality (1-100) applies to jpg and webp; default 90.
- To add more scenes to a set, call extend_illustration_set with the id of any batch in it, as often as the set needs.
- If a "Rate limit exceeded" error is returned, wait the suggested number of seconds before retrying. Do not retry immediately.
- Showing the result: as soon as the call returns, show the user every delivered image before you put them to use, then keep working without waiting for a reply (unless the user asked to review first), so they can ask for a change before anything is built on them. Show each image exactly as delivered, as its own file: the files are the product, and their exact size, margin and background are what the user asked for. Never present a new image made from them, even to check them; it hides all three. Files on disk or a link in your context are not delivery. Where you can open files on the user's machine, open the extracted index.html with the host's file opener; it shows each image at its delivered size with its dimensions. Where you can attach files to your reply, attach each delivered file as it is (attaching is not inspecting). Otherwise give the online viewer link and the zip link. Show every image unless the user asked for only some, and say in one line what you left out; if you can show none, say the set was made but you could not show it, and give the viewer link.