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
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
| Alan | Tür | Açıklama |
|---|---|---|
title_position | string (enum) | Title placement along the top. |
proportional_lines | boolean | Scale dimension line lengths by measurement. |
sync | boolean | When true, return generated images directly as base64 instead of CDN URLs. |
imagezorunlu | string (image URL) | Source product image as a public URL or raw base64-encoded image bytes. |
dimensionszorunlu | array of objects | Dimension callouts to render. At least one entry is required. |
stylezorunlu | string (enum) | Rendering style. |
title | string | Optional headline above the product. |
output_size | integer | Square output edge length in pixels. |
output_format | string (enum) | Controls the rendered response: png, jpeg, or dual composite plus transparent overlay. |
background | string | Hex color or one of: white, cream, charcoal. |
units_display | string (enum) | How labels display primary and secondary units when both are provided. |
weight | object | Optional weight badge below the product. |
capacity | object | 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.
"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?