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

Use this in every request
bria/product-dimensions

Run 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

Input fields for bria/product-dimensions
NameTypeDescription
title_positionstring (enum)
Title placement along the top.

Default: top_center

One of: top_left, top_center, top_right

proportional_linesboolean
Scale dimension line lengths by measurement.

Default: true

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

Default: false

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

One of: default, childlike, elegant

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

Default: 2200

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

Default: png

One of: png, jpeg, dual

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

Default: white

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

Default: single

One of: single, dual_bullet, dual_slash, dual_parens

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

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"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