Transform Image using AI
meshy_image_to_imageEdit or restyle images with a text prompt and reference images; supports background removal and multi-view output for 3D conversion.
Instructions
Edit or restyle images with a text prompt. Cost: nano-banana 3, nano-banana-2 6, nano-banana-2-lite 3, nano-banana-2-1 4, nano-banana-pro 9, GPT Image models 12 credits. Give exactly ONE reference source: input_task_id (all images of an earlier image task), reference_file_paths (local files; never base64-encode them yourself) or reference_image_urls.
To make the result 3D: meshy_image_to_3d with input_task_id = this task (multi-view output: meshy_multi_image_to_3d).
Example: { ai_model: "nano-banana-2", prompt: "make it red", input_task_id: "abc-123" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description | |
| ai_model | Yes | Image model; ask the user. | |
| aspect_ratio | No | Default '1:1'; '3:2' and '2:3' are GPT Image models only. Not with generate_multi_view. | |
| input_task_id | No | A SUCCEEDED text-to-image / image-to-image task; all its images are the references. Wins over the other sources. | |
| response_format | No | markdown (default) or json | markdown |
| remove_background | No | Transparent-background PNG (no effect on multi-view output). | |
| generate_multi_view | No | Front/side/back views (input for meshy_multi_image_to_3d). Not with aspect_ratio. | |
| reference_file_paths | No | 1–5 absolute paths to local images; the server encodes them | |
| reference_image_urls | No | 1–5 public .jpg/.jpeg/.png/.webp URLs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | Yes | ||
| task_id | Yes | ||
| estimated_time | Yes |