curl --request POST \
--url https://api.omniall.ai/v1/images/edits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-image-1",
"prompt": "Replace the background with a clean white studio backdrop",
"image": "https://example.com/product.png",
"n": 1
}
'{
"created": 123,
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>"
}
]
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}Edit image
OpenAI-compatible image edit / inpaint.
Path: POST https://api.omniall.ai/v1/images/edits
Supports application/json (image/mask as URL or Base64) and multipart/form-data (file upload). Multiple images: JSON image string array; form repeated image[] file parts.
Use prompt to describe edits; optional mask for editable regions.
curl --request POST \
--url https://api.omniall.ai/v1/images/edits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-image-1",
"prompt": "Replace the background with a clean white studio backdrop",
"image": "https://example.com/product.png",
"n": 1
}
'{
"created": 123,
"data": [
{
"url": "<string>",
"b64_json": "<string>",
"revised_prompt": "<string>"
}
]
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "new_api_error",
"code": "<string>"
}
}Authorizations
Use Authorization: Bearer sk-... from https://omniall.ai/dashboard
Body
OpenAI-compatible image edit (POST /v1/images/edits). JSON and multipart/form-data supported.
Edit-capable model id (e.g. gpt-image-1, dall-e-2, Gemini/Qwen edit models).
"gpt-image-1"
Instruction describing how to edit the image.
"Replace the sky with a sunset"
Source image(s). JSON: URL / Base64 / string array. multipart: file field image (one) or repeated image[] / image[n] (multiple).
Optional mask. JSON: URL/Base64; multipart: mask file (PNG, transparent = editable).
Number of edited images to return.
Output size when supported.
Quality tier when supported.
url, b64_json Opaque end-user id.