Op den Inhalt sprangen

Embed Product

Integréieren

Modell-ID bria/embed-product
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/embed-product?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_source": "example"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro: 0,04 $ 40 API-Kreditter Op dëser Säit ausféieren

API-Schlëssel kréien
Bria AI · Bild

Äin éischt Resultat kënnt hei hin

Baut hei drënner eng Ufro a féiert se mat Ärem API-Schlëssel aus. Output gëtt an eis Späicherung kopéiert, fir ëmmer oder 7 Deeg gratis gespäichert.

Eng Ufro erstellen

D'Kontrolle ginn aus dem Modellschema generéiert. De Code an de Präis aktualiséiere sech, wann s du se ännerst.

•obligatoresch

Bild-URL.

Erweidert seed · products
Standard 5555

Seed, deen d'Zoufällegkeet fir reproduzéierbar Resultater steiert.

Produkter, déi an d'Bild agesat ginn, als Lëscht uginn.

POST /run/bria/embed-product?wait=20 Präis → 0,04 $
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/bria/embed-product?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_source": "example"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Dës Ufro ausféieren

Äre Schlëssel bleift an dësem Browser: e gëtt nëmmen un d'Doitong API geschéckt an nëmme gespäichert (localStorage), wann s du „Erënneren“ aktivéiers. En API-Schlëssel kréien

Iwwer Embed Product

Hëlt e Szenebild iwwer `image_source` an eng Lëscht vu `products` mat 1 bis 10 Entréen, déi doranner agebett ginn. Perspektiv a Beliichtung ginn fir all placéiert Element ugepasst. E `seed` (Standard 5555) erlaabt widderhuelbar Ausgaben. Et eegent sech fir Reklammen an E-Commerce-Kompositiounen a gëtt ee Bild zesumme mam Seed zréck.

Parameteren

NummTyp StandardErlaabt Beschreiwung
image_sourceobligatoresch
Typstring
Bild-URL.
productsoptional
Typobject[]
≤ 10 Elementer
Produkter, déi an d'Bild agesat ginn, als Lëscht uginn.
products[].image_sourceobligatoresch
Typstring
Bild-URL.
products[].coordinatesobligatoresch
Typobject
products[].coordinates.xobligatoresch
Typnumber
Plazéierung vum Produkt laanscht d'X-Achs vum Bild.
products[].coordinates.yobligatoresch
Typnumber
Plazéierung vum Produkt laanscht d'Y-Achs vum Bild.
products[].coordinates.widthobligatoresch
Typnumber
Breet vum Produkt am Bild.
products[].coordinates.heightobligatoresch
Typnumber
Héicht vum Produkt am Bild.
seedoptional
Typinteger
Standard5555
Seed, deen d'Zoufällegkeet fir reproduzéierbar Resultater steiert.
obligatoresch

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/embed-product",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 40,
    "usd": "0.04",
    "charged": 40,
    "refunded": 0
  },
  "input": {
    "image_source": "example"
  },
  "output": {
    "image": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768
    },
    "seed": 42
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Är Fichieren, Är WielAll outputs[].url ass eng Kopie an eiser Späicherung: fir ëmmer gespäichert (bezuelbar pro GB-Mount) oder 7 Deeg gratis, jee no Ärer Kontastellung oder ?storage=.
D'selwecht Struktur bei all Modelltype, url, content_type, width, height an duration, fir Biller, Video an Audio gläichermoossen. output ass dem Modell säin eegent Resultatobjet.
Output-Felder
image
object {url, content_type, file_name, file_size, width, height}Output-Bild mat den agesate Produkter.
seed
integerSeed, deen an der Generatioun benotzt gëtt.

Méi Modeller: Bildbearbechtung

Fir AI-Agenten: dës Säit als Markdown ass ënner https://doitong.com/lb/developers/models/bria/embed-product.md. All Modeller a Guiden: https://doitong.com/developers/llms.txt