Skip to main content
Call the SDK’s image edit method with a prompt and an image to send POST /v1/images/edits. Pass the image and mask as URLs or base64 data URLs. To send file bytes, use Python’s AsyncPhaseo or, in Java, the standard HTTP client.
How the request is sent differs by SDK:

Parameters

Field names are the JSON body fields (or multipart form fields) in every SDK. The full schema is in the Image edits API reference.

Response

ImagesEditResponse:
Models that return image bytes put them in b64_json instead of url.
Last modified on November 5, 2026