Create image edit

Edit an image with one or more references. Compatible with OpenAI's Images edits API, so the official SDKs work unchanged.

The body is multipart/form-data: reference images go as files, everything else as ordinary fields.

Billing matches the generation endpoint plus one extra component: reference image input. Reference images are billed as input tokens; the request reserves an estimated amount up front and settles against the actual usage in the response.

The same fields can also be sent to /v1/tasks (also as multipart) to use the asynchronous workflow.

Streaming works the same as on the generation endpoint, with the events named image_edit.partial_image / image_edit.completed. Note that ordinary fields in a raw multipart request are strings, so send stream=true as a text field.

post/v1/images/edits

Request

  • Base URL: https://gateway.amux.ai
  • URL: https://gateway.amux.ai/v1/images/edits
  • Auth: HTTP bearer

Response

Edited. Same shape as the generation endpoint.

createdinteger

Unix timestamp (seconds) of when generation finished.

Example response

{
  "created": 1786000000
}

Changes

No recorded changes to this operation across all 1 revision of this API.