Model API'si

Bria Product Dimensions

Ürün fotoğrafına verdiğin fiziksel ölçüleri ekle. Model ürünün gerçek ölçülerini kendisi bulmaz.

Model kimliği

Her istekte bunu kullan
bria/product-dimensions

Çalıştır

Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bria/product-dimensions",
  "input": {
    "image": "https://example.com/input.png",
    "dimensions": [
      {
        "name": "height",
        "value": 1,
        "unit": "mm"
      }
    ],
    "style": "default"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "bria/product-dimensions", "quote_id": "QUOTE_ID", "input": {"image":"https://example.com/input.png","dimensions":[{"name":"height","value":1,"unit":"mm"}],"style":"default"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Girdi

bria/product-dimensions girdi alanları
AlanTürAçıklama
title_positionstring (enum)
Title placement along the top.

Varsayılan: top_center

Seçenekler: top_left, top_center, top_right

proportional_linesboolean
Scale dimension line lengths by measurement.

Varsayılan: true

syncboolean
When true, return generated images directly as base64 instead of CDN URLs.

Varsayılan: false

imagezorunlustring (image URL)
Source product image as a public URL or raw base64-encoded image bytes.
dimensionszorunluarray of objects
Dimension callouts to render. At least one entry is required.
stylezorunlustring (enum)
Rendering style.

Seçenekler: default, childlike, elegant

titlestring
Optional headline above the product.
output_sizeinteger
Square output edge length in pixels.

Varsayılan: 2200

output_formatstring (enum)
Controls the rendered response: png, jpeg, or dual composite plus transparent overlay.

Varsayılan: png

Seçenekler: png, jpeg, dual

backgroundstring
Hex color or one of: white, cream, charcoal.

Varsayılan: white

units_displaystring (enum)
How labels display primary and secondary units when both are provided.

Varsayılan: single

Seçenekler: single, dual_bullet, dual_slash, dual_parens

weightobject
Optional weight badge below the product.
capacityobject
Optional capacity badge below the product.

Çıktı

Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.

İş yanıtından bir bölüm
"outputs": [
  { "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]

Fiyatlandırma

  • png · en fazla$0,07/ üretim
  • jpeg · en fazla$0,07/ üretim
  • dual · en fazla$0,13/ üretim

Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?