Edit an image
carpe_image_editTransform an image by applying a text prompt with AI image editing models, accepting URLs, data URIs, or local file paths.
Instructions
Transform one image from a prompt (imageEdit models such as qwen-image-2-edit, nano-banana-2-edit, gpt-image-2-edit). image: https URL, data: URI or (stdio) a local file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto (default): queue slow models (gpt-image, nano-banana, recraft, flux-2, qwen-image) and edits, sync otherwise. | |
| extra | No | Additional model parameters passed through verbatim (steps, cfg_scale, style_preset, hide_watermark…). | |
| image | Yes | Source image: https:// URL, data: URI, or local path (stdio mode). | |
| model | No | imageEdit model id (default qwen-image-2-edit). See carpe_list_models type "imageEdit". | |
| route | No | "carpe" → /v1/image/* (Carpe TEE network). "router" → /router/images/* (cheapest of Carpe and external markets; no privacy filter for images). Default from CARPE_DEFAULT_ROUTE. | |
| format | No | ||
| prompt | Yes | ||
| quality | No | ||
| safe_mode | No | ||
| resolution | No | ||
| aspect_ratio | No | ||
| wait_seconds | No | Seconds to wait for a queued job before returning a job_id (default 120). |