Or paste an image directly onto the page.
For inpainting or background removal, mask the target area.
Your image will appear here
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
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.
POST /api/v1/edit-image
The request must be sent with a Content-Type of multipart/form-data.
| Field | Type | Required? | Description |
|---|---|---|---|
image | File | Yes | The source image file to be edited. |
mask | File | No | A black and white mask image. White areas indicate where edits should be applied. |
task | String | Yes | One of: standard, pixelPerfect, backgroundRemoval, colorize, upscale. |
prompt | String | Yes | The user's creative text prompt. |
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"