Model API
Bria Product Dimensions
Bria Product Dimensions turns one product photo and its measurements into a marketplace-ready dimension image with callout lines, labels, and weight or capacity readouts
Model id
bria/product-dimensionsRun it
Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 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"Input
| Name | Type | Description |
|---|---|---|
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. |
imagerequired | string (image URL) | Source product image as a public URL or raw base64-encoded image bytes. |
dimensionsrequired | array of objects | Dimension callouts to render. At least one entry is required. |
stylerequired | 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. |
Output
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]Pricing
- png · up to$0.07/ run
- jpeg · up to$0.07/ run
- dual · up to$0.13/ run
The exact charge for your input comes from a quote. How charges settle