curl --request POST \
--url https://api.omniall.ai/v1/images/edits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-image-2.6",
"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>"
}
}General (recommended)
Edit image
OpenAI-compatible image edit / inpaint.
Path: POST https://api.omniall.ai/v1/images/edits
Supports application/json (image/mask as HTTPS URL preferred; avoid Base64) and multipart/form-data (file upload). Multiple images: JSON image URL string array; form repeated image[] file parts.
Use prompt to describe edits; optional mask for editable regions.
POST
/
v1
/
images
/
edits
curl --request POST \
--url https://api.omniall.ai/v1/images/edits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-image-2.6",
"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
application/jsonmultipart/form-data
OpenAI-compatible image edit (POST /v1/images/edits). JSON and multipart/form-data supported.