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

# Image Edits

`POST /v1/images/edits`

## Request

- Base URL: `https://api.jarvisclaw.ai`
- URL: `https://api.jarvisclaw.ai/v1/images/edits`
- Auth: HTTP x402

Edit an existing image using a text prompt and optional mask. Inpainting and guided editing.

## Request body

- object
  - `image` string, binary, required: Source image to edit
  - `mask` string, binary: Optional mask marking areas to edit
  - `model` string: Image model ID (e.g. dall-e-2, gpt-image-1)
  - `n` integer: Number of images to generate
  - `prompt` string, required: Text description of the desired edit

## Response `200`

Successful response

- object
  - `data` object

## Other responses

- `402`: Payment Required

---

[API](https://skmtc.dev/jarvisclaw/apis/jarvisclaw-api.md) · [All operations](https://skmtc.dev/jarvisclaw/apis/jarvisclaw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jarvisclaw/apis/jarvisclaw-api/revisions/2011c77f4e4f?raw)
