Skip to main content

Endpoint

Edit an existing image using a text prompt. The request blocks until the edited image is ready.

Request Parameters

Examples

Basic edit

Multi-image input

Some models accept an array of URLs in input_image. Consult the per-model reference for how each model uses them:
Whether a model accepts a single image or an array of images is part of its schema. See each model’s API reference for the exact type.

Response

Same format as /ai/images/generate:

Errors

The input_image URL must be publicly downloadable. URLs that require authentication or block automated access will fail. Data URIs (data:image/...;base64,...) work as an alternative but aren’t recommended for production.