Download OpenAPI specification:Download
API for generating a scene around a product photo using a reference image.
This API allows you to:
Authentication is done via an API key that must be included in the header of all requests.
Creates a new job to generate a scene around your product photo
| ref_image required | string Reference image showing desired scene style (base64 data URL or HTTP URL) |
| asset_image required | string Product photo to place in the scene (base64 data URL or HTTP URL) |
| prompt | string Text description of desired scene. If not provided, we will automatically generate a suitable prompt for the image. |
| width | integer Default: 1024 Enum: 512 768 1024 1536 Width of output image in pixels. Defaults to 1024. |
| height | integer Default: 1024 Enum: 512 768 1024 1536 Height of output image in pixels. Defaults to 1024. |
{- "ref_image": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
- "prompt": "A modern minimalist living room",
- "asset_image": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
- "width": 1024,
- "height": 1024
}{- "jobId": "job123",
- "success": true,
- "message": "Job created successfully"
}Check the status of a scene generation job
| jobId required | string Example: job123 ID of the job to check |
{- "message": "Job completed",
- "image_data_url": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
- "status": "Succeeded"
}