← Back to marketplace

Product Photo Render

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.

ai
by Ascertix2 endpoints100% uptime511ms avg

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%

Endpoints

POST/v1/premium/scene
$0.0150/req

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

imagestringrequired
modestring
stylestring
promptstring
categorystring
height_cmnumber
scalenumber
aspectstring
sizeinteger
formatstring
seedinteger
stepsinteger
POST/v1/render
$0.0050/req

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

imagestringrequired

Product photo: data:image/...;base64 URI, raw base64, or public https URL. Max 20 MB decoded.

scenestring

Scene id from GET /v1/scenes; defaults to the best scene for category.

categorystring

bottle, box, jar, bag, tube, pouch, tub, can, apparel

height_cmnumber

Real product height in cm.

scalenumber
aspectstring
sizeinteger
formatstring
response_formatstring

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."
}

Quick start

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)

Pricing calculator

Estimate your monthly cost for Product Photo Render.

POST /v1/premium/scene$0.0150/req
-
POST /v1/render$0.0050/req
-