---
title: "Edit Image"
method: POST
path: "/v1/images/edits"
---

# Edit Image

`POST /v1/images/edits`

Edit an existing image with GPT Image 2 using a text prompt. Accepts a multipart/form-data body.

Supports up to 16 input images per request (`image[]`). Input formats: PNG, JPEG. Images must be provided as multipart/form-data file uploads.

## Response `200`

Image edited successfully.

- object
  - `data` object[] — Array of edited images.
    - `b64_json` string — Base64-encoded image data.
    - `revised_prompt` string — The revised prompt actually used by the model.

## Other responses

- `400` — Bad request. Invalid parameters.
- `401` — Unauthorized. Invalid or missing API key.

---

[API](https://skmtc.net/anyfast/apis/anthropic-claude-compatible-endpoint.md) · [All operations](https://skmtc.net/anyfast/apis/anthropic-claude-compatible-endpoint/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anyfast/anthropic-claude-compatible-endpoint/revisions/edfc53e182a1/schema)
