Skip to main content
Endpoint: POST https://fal.run/bria/embed-product Endpoint ID: bria/embed-product

Try it in the Playground

Run this model interactively with your own prompts.

Quick Start

import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "bria/embed-product",
    arguments={},
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Capabilities

  • Reproducible generation (seed)
  • Synchronous mode

API Reference

Input Schema

image_source
string
URL of the image.
products
list<EmbedItem>
List of products to embed in the image.
seed
integer
default:"5555"
Random seed for reproducibility. Default value: 5555
sync_mode
boolean
default:"false"
If true, returns the image directly in the response (increases latency).

Output Schema

image
Image
required
Generated image with products embedded.
seed
integer
required
Seed used for generation.

Input Example

{
  "image_source": "https://bria-datasets.s3.us-east-1.amazonaws.com/embed-product/an_empty_living_room_0.png",
  "products": [
    {
      "coordinates": {
        "height": 300,
        "width": 100,
        "x": 300,
        "y": 317
      },
      "image_source": "https://bria-datasets.s3.us-east-1.amazonaws.com/embed-product/a_standing_lamp_over_white_background_0.png"
    },
    {
      "coordinates": {
        "height": 156,
        "width": 120,
        "x": 646,
        "y": 287
      },
      "image_source": "https://bria-datasets.s3.us-east-1.amazonaws.com/embed-product/a_wall_picture_on_white_background_0.png"
    }
  ],
  "seed": 5555,
  "sync_mode": false
}

Output Example

{
  "image": {
    "url": "",
    "content_type": "image/png",
    "file_name": "z9RV14K95DvU.png",
    "file_size": 4404019,
    "width": 1024,
    "height": 1024
  }
}