---
title: "Edit an image"
method: POST
path: "/images/edits"
tags: ["Images"]
---

# Edit an image

`POST /images/edits`

Edit or inpaint an image, or combine multiple reference images,
via multipart/form-data. Served by OpenAI `gpt-image-2`.

## Response `200`

OK

- ImageResponse
  - `created` integer
  - `data` object[]
    - `url` string — URL to the generated image (if response_format=url)
    - `b64_json` string — base64 image (if response_format=b64_json)
    - `revised_prompt` string

---

[API](https://skmtc.dev/orcarouter/apis/orcarouter-api.md) · [All operations](https://skmtc.dev/orcarouter/apis/orcarouter-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/orcarouter/orcarouter-api/revisions/9c5cc5d00311/schema)
