Skip to main content

Generate image from image

POST 

/images/edits

Generates an edited image from a source image and a text prompt using an image-to-image model. Supply the source image with image_url (an uploaded S3 filename from Get image upload URL, or a reachable URL). This operation is asynchronous: the response returns a job_id with status queued. Poll Get image result until the status is completed to retrieve the result. Requires an image-to-image model; text-to-image models return a modality.incompatible error.

Request

Responses

Accepted