---
title: "Edit Image"
method: POST
path: "/v1/images/edits"
tags: ["v1", "images"]
---

# Edit Image

`POST /v1/images/edits`

Edit images using inpainting.

Supports dall-e-2 and gpt-image-1. Upload an image and optionally a mask
to indicate which areas to regenerate based on the prompt.

## Response `200`

Successful Response

- ImagesResponse — Response from image generation.
  - `created` integer, required — Unix timestamp when images were created
  - `data` Image[], required — List of generated images
    - `url` string, nullable — URL of the generated image (if response_format=url)
    - `b64_json` string, nullable — Base64-encoded image data (if response_format=b64_json)
    - `revised_prompt` string, nullable — Revised prompt used for generation (dall-e-3)

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/dedalus-labs/apis/dedalus-api.md) · [All operations](https://skmtc.net/dedalus-labs/apis/dedalus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dedalus-labs/dedalus-api/versions/81ffcde15f4c/schema)
