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

# Edit Image

`POST /v1/images/edits`

## Request

- Base URL: `https://api.oxlo.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.oxlo.ai/v1/images/edits`
- Auth: HTTP bearer

Transform an existing image using text prompts (img2img).
Routes to Azure Foundry (Flux 2 Pro) or A100 worker (SDXL/SD 1.5).

## Request body

- ImageEditRequest: Request for image-to-image transformation.
  - `image` string, required: Base64-encoded init image
  - `prompt` string, required: Text description to guide transformation
  - `model` string: Model to use (sdxl, stable-diffusion-1.5)
  - `strength` number: Transformation strength
  - `n` integer: Number of images
  - `negative_prompt` string: What to avoid
  - `num_inference_steps` integer, nullable: Denoising steps
  - `guidance_scale` number, nullable: CFG scale
  - `seed` integer, nullable: Random seed

## Response `200`

Successful Response

- ImageGenerationResponse
  - `created` integer, required
  - `data` ImageData[], required
    - `b64_json` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/oxlo/apis/oxlo-backend.md) - [All operations](https://skmtc.dev/oxlo/apis/oxlo-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/oxlo/apis/oxlo-backend/revisions/bc2ecdc94f31?raw)
