create_image_to_image_task
Generate a new image from 1–5 reference images and a text prompt, with options for aspect ratio, multi-angle views, or transparent background removal.
Instructions
Generate a new image based on reference images and a text prompt. ai_model is required and accepts 'nano-banana', 'nano-banana-2', 'nano-banana-pro', or 'gpt-image-2'. reference_image_urls is required: an array of 1–5 public URLs or base64 data URIs. prompt describes the transformation. aspect_ratio for the nano-banana family: '1:1', '16:9', '9:16', '4:3', or '3:4'; for gpt-image-2: '1:1', '3:2', or '2:3' (default '1:1'). Cannot combine aspect_ratio with generate_multi_view. Set generate_multi_view=true to generate multi-angle views. Set remove_background=true to return a transparent RGBA PNG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| ai_model | Yes | ||
| aspect_ratio | No | ||
| remove_background | No | ||
| generate_multi_view | No | ||
| reference_image_urls | Yes |