Generate design
generateGenerate one or more finished images from a template (get a template_id from recommend_template or browse_templates) plus a description. Use this after the user has selected or explicitly supplied a template_id; otherwise call recommend_template first so the visual gallery can collect the selection. Works for all categories (Instagram, logo, app-store, Visual Novel backgrounds/sprites, CG illustrations). Pass variants for multi-image output (expressions, time-of-day, etc.). Pass session_id to refine a prior result. Pass context_ids to ground a new image on prior designs (character consistency for VN CG scenes). Set model to 'minimax-h3-image-balanced' or 'minimax-h3-image-quality' (or use the 'h3 balanced'/'h3 quality' aliases) to render through the MiniMax H3 image service; context_ids are forwarded as ordered H3 reference images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional image model override, such as grok-imagine-image-quality, gemini-3.1-flash-image, gpt-image-2, minimax-h3-image-balanced, or minimax-h3-image-quality. H3 aliases are 'h3 balanced' and 'h3 quality'. | |
| variants | No | For character sheets: expression names e.g. ['neutral','smile','angry']. For backgrounds: time variants e.g. ['day','sunset','night']. For single images: omit or pass ['default']. | |
| edit_tier | No | Quality tier when reference images (context_ids) are supplied. 'expert' routes the edit to gpt-image-2 for high-fidelity output; 'fast'/'pro' use Gemini. Ignored when no references are present. | |
| session_id | No | Pass the session_id from a prior generate call to continue refining. The model will edit the previous image instead of generating from scratch. | |
| context_ids | No | Design IDs of prior outputs to use as visual context. Use for CG scenes that should match a previously generated character. | |
| description | Yes | What you want - describe the scene, asset, or design in as much detail as needed | |
| template_id | Yes | Template ID from browse_templates | |
| context_labels | No | Optional human labels for each context_id, in the SAME order. When the edit routes to a multi-reference model (gpt-image-2), an ordered legend ('reference image 1 = <label>, ...') is appended to the prompt so the model binds each named subject to its own reference instead of blending identities. Ignored for single-reference edits. | |
| reference_urls | No | Optional ordered inline or HTTPS image references for direct image-model grounding. Use with reference_labels and reference_roles when supplying cast or location images. | |
| reference_roles | No | Optional roles aligned with reference_urls, such as identity or location. | |
| reference_labels | No | Optional labels aligned with reference_urls. | |
| skip_prompt_merge | No | Skip the smart prompt-merge step (which compresses to ~150 words) and send the description through verbatim, with the template's base prompt concatenated for style. Use when the description is already complete and precise — e.g. a multi-character scene where each subject's outfit and a reference->subject legend must survive intact. Ignored on refines. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||