{
"output": {
"destination": "storage://storage-name/path/"
"number_of_images": 4,
"format": "png"
},
"object": {
"image_url": "storage://storage-name/path/image.jpg",
"placement_type": "absolute" | "original",
"rotation_degree": 0,
"scale": 1,
"position": {
"x": 0.5,
"y": 0.5
}
},
"scene": {
"template_url": "storage://storage-name/path/template.jpeg",
"template_mode": "transform",
"color": "#aece8c",
"view": "top",
"prompt": "on the wooden table in the dark room",
"negative_prompt": "watermark, low quality"
}
}object)scene)output)curl --location --request POST 'http://dev-cn.your-api-server.com/v1-ea/scene/create' \
--header 'Authorization: Bearer {YOUR_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"output": "storage://storage-name/path/",
"object": {
"image_url": "storage://storage-name/path/image.jpg",
"placement_type": "absolute",
"scale": 0.4
},
"scene": {
"prompt": "on the wooden table in the dark room"
}
}'{
"data": {
"input": {
"ext": "png",
"mps": 0.375,
"mime": "image/png",
"format": "PNG",
"width": 500,
"height": 750
},
"output": [
{
"ext": "png",
"mps": 1.048576,
"mime": "image/png",
"format": "PNG",
"width": 1024,
"height": 1024,
"tmp_url": "https://storage.googleapis.com/production-leapi-tmp-public/733a7c8f-1fea-4097-8fd4-17f54c94d998/eyXNp9_1.png"
},
{
"ext": "png",
"mps": 1.048576,
"mime": "image/png",
"format": "PNG",
"width": 1024,
"height": 1024,
"tmp_url": "https://storage.googleapis.com/production-leapi-tmp-public/733a7c8f-1fea-4097-8fd4-17f54c94d998/eyXNp9_2.png"
},
]
}
}