curl --request POST \
--url https://omnicommerce.sg/api/v1/images/ghost-mannequin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"imageUrl": "https://cdn.example.com/products/dress-front.jpg"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({imageUrl: 'https://cdn.example.com/products/dress-front.jpg'})
};
fetch('https://omnicommerce.sg/api/v1/images/ghost-mannequin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/images/ghost-mannequin"
payload = { "imageUrl": "https://cdn.example.com/products/dress-front.jpg" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "8f7e8f8f-2b9e-46e6-a2c0-50d0f4612b2d",
"status": "completed",
"warnings": [],
"recommendations": [],
"image": "https://cdn.example.com/generated/ghost-mannequin.webp"
}Generate Ghost Mannequin Image
Remove the visible mannequin from a product photo and return the generated image URL. The source image must be an HTTP(S) URL; data URIs are rejected. Authenticate with an OmniCommerce API key that has the catalog:enrich scope.
curl --request POST \
--url https://omnicommerce.sg/api/v1/images/ghost-mannequin \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"imageUrl": "https://cdn.example.com/products/dress-front.jpg"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({imageUrl: 'https://cdn.example.com/products/dress-front.jpg'})
};
fetch('https://omnicommerce.sg/api/v1/images/ghost-mannequin', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/images/ghost-mannequin"
payload = { "imageUrl": "https://cdn.example.com/products/dress-front.jpg" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "8f7e8f8f-2b9e-46e6-a2c0-50d0f4612b2d",
"status": "completed",
"warnings": [],
"recommendations": [],
"image": "https://cdn.example.com/generated/ghost-mannequin.webp"
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Body
Publicly fetchable HTTP(S) image URL. Supported source formats are JPEG, PNG, GIF, or WebP. Data URIs are not accepted.
4096Optional product title used only as image-edit context so the model preserves the correct garment or product type.
160Optional category label used only as image-edit context.
160Optional category ID used as fallback image-edit context when a category label is not available.
80Response
Ghost mannequin image generated.
completed Remote HTTP(S) URL for the generated ghost mannequin image stored by OmniCommerce.