Edit an existing image
Images
Edit an image
POST /v1/images/edits — modify an existing image with a prompt.
POST
Edit an existing image
Models like Nano Banana (Gemini Image) support edits — provide a source image + prompt:


Image-edit output format matches image generation.
Sample output


Supported models
Image-edit capability is model-dependent. Checkcapabilities.imageEdit: true via GET /v1/models/{slug} or see Models catalog.Authorizations
API key in format: Bearer inf_***
Body
application/json
Edit instruction
Base64-encoded source image
Base64-encoded mask (transparent area = edit region)
Available options:
256x256, 512x512, 1024x1024, 1792x1024, 1024x1792 Available options:
url, b64_json 
