Turn one product photo into a studio or lifestyle scene. Returns a composed WebP, JPEG or PNG with labels, packaging and branding unchanged. Built for e-commerce catalogues and AI agents.
Includes 10 free calls per month
After the free quota, standard per-request pricing applies via x402 (USDC on Base).
Requests (30d)
9
Avg latency
632ms
Uptime
100.0%
Generate a bespoke, product-aware background and place your product cutout on it. JSON with image plus optional mode (product_fit=scene fitted around product, freeform=empty background), style, category, size, aspect, format. Returns composed image bytes (WebP/JPEG/PNG, 256-2048 px). Product pixels, logos and text are never regenerated. Returns a binary image: call the proxy directly over HTTP/x402; the MCP apihub_call tool decodes binary as text and cannot recover the image.
Request schema
Render one product photo into a finished studio or lifestyle scene. Send JSON with image plus optional scene, category, height_cm, aspect, size and format. Returns composed image bytes (WebP, JPEG or PNG, 256-2048 px). Over MCP, set response_format=json to receive a JSON envelope with the image as a base64 data URI. One call renders one image; product pixels are never regenerated.
Request schema
Product photo: data:image/...;base64 URI, raw base64, or public https URL. Max 20 MB decoded.
Scene id from GET /v1/scenes; defaults to the best scene for category.
bottle, box, jar, bag, tube, pouch, tub, can, apparel
Real product height in cm.
json returns an object with the image as a base64 data URI plus content_type, scene, aspect, size and format. Use json for MCP clients that cannot carry binary responses.
Response schema
{
"oneOf": [
{
"type": "string",
"format": "binary",
"description": "Image bytes when response_format=binary (default)."
},
{
"type": "object",
"required": [
"image",
"content_type",
"scene",
"aspect",
"size",
"format"
],
"properties": {
"image": {
"type": "string",
"description": "Base64 data URI"
},
"content_type": {
"type": "string"
},
"scene": {
"type": "string"
},
"aspect": {
"type": "string"
},
"size": {
"type": "integer"
},
"format": {
"type": "string"
},
"bytes": {
"type": "integer"
},
"request_id": {
"type": "string"
}
}
}
],
"description": "Binary image by default; JSON envelope when response_format=json."
}Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.
# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10
# call this service
npx @apihubio/cli call "https://proxy.apihub.io/product-photo-render/v1/premium/scene" \
-d '{"image":"string","mode":"product_fit","style":"string","prompt":"string","category":"string","height_cm":0,"scale":1,"aspect":"1:1","size":1024,"format":"webp","seed":0,"steps":4}'Or call the proxy directly (curl / any HTTP client):
curl -X POST https://proxy.apihub.io/product-photo-render/v1/premium/scene \
-H "Authorization: Bearer ahk_your_key" \
-H "Content-Type: application/json" \
-d '{"image":"string","mode":"product_fit","style":"string","prompt":"string","category":"string","height_cm":0,"scale":1,"aspect":"1:1","size":1024,"format":"webp","seed":0,"steps":4}'
# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)Estimate your monthly cost for Product Photo Render.