AI Image Editor

Upload an image, select a task, mask an area if needed, and describe your goal.

Or paste an image directly onto the page.

For inpainting or background removal, mask the target area.

Your image will appear here

Web API for AI Image Editor

Overview

The API exposes a single endpoint for performing various image manipulation tasks. The client sends a source image, an optional mask, a specified task, and a text prompt. The server processes the request using the AI model and returns the resulting edited image.

Endpoint

POST /api/v1/edit-image

Request Format

The request must be sent with a Content-Type of multipart/form-data.

Field Type Required? Description
imageFileYesThe source image file to be edited.
maskFileNoA black and white mask image. White areas indicate where edits should be applied.
taskStringYesOne of: standard, pixelPerfect, backgroundRemoval, colorize, upscale.
promptStringYesThe user's creative text prompt.

Example Usage (cURL)

curl -X POST \\\n  https://your-api-domain.com/api/v1/edit-image \\\n  -F "image=@/path/to/my_photo.png" \\\n  -F "mask=@/path/to/my_mask.png" \\\n  -F "task=standard" \\\n  -F "prompt=A futuristic city skyline" \\\n  --output "edited_image.png"