Skip to content

Bria Product Dimensions

Integrate

Model id bria/product-dimensions
# 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/product-dimensions?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "example",
    "dimensions": [
      {
        "name": "height",
        "position": "left",
        "unit": "cm",
        "value": 22
      },
      {
        "name": "width_bottom",
        "position": "bottom",
        "unit": "cm",
        "value": 7
      }
    ],
    "style": "default"
  }'

# 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"

This request: $0.04 40 API credits Run it on this page

Get API key
Bria AI · Image

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

style •required

Style used for rendering.

•required

Product image input, supplied either by linking to a publicly accessible image or by encoding its raw bytes as base64.

•required

Dimension callouts to draw; requires at least one entry.

Advanced title_position · output_format · units_display · title · background · output_size · proportional_lines · sync · weight · capacity
title_position default top_center

Position of the title across the top.

output_format default png

Rendered output selection: png, jpeg, or dual, which returns both a composite and a transparent overlay.

units_display default single

Label display style when units are supplied in both primary and secondary forms.

Optional heading displayed above the product.

default white

Color specified as a hex value or as white, cream, or charcoal.

default 2200

Length in pixels of each side of the square output.

Optional badge showing weight beneath the product.

Optional badge showing capacity beneath the product.

POST /run/bria/product-dimensions?wait=20 quote → $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/product-dimensions?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "example",
    "dimensions": [
      {
        "name": "height",
        "position": "left",
        "unit": "cm",
        "value": 22
      },
      {
        "name": "width_bottom",
        "position": "bottom",
        "unit": "cm",
        "value": 7
      }
    ],
    "style": "default"
  }'

# 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"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Bria Product Dimensions

Takes a product `image` and at least one entry in `dimensions`, then draws labeled measurement lines around the product. Pick a `style` (default, childlike or elegant), a `title` of up to 80 characters, a background color, and a square `output_size` from 256 to 2200 pixels. Output can be png, jpeg, or a dual composite with a transparent overlay.

Parameters

NameType DefaultAllowed Description
title_positionoptional
Typeenum
Defaulttop_center
top_lefttop_centertop_right
Position of the title across the top.
proportional_linesoptional
Typeboolean
Defaulttrue
Make dimension-line lengths proportional to their measurements.
syncoptional
Typeboolean
Defaultfalse
Delivery mode for generated images: true selects embedded base64 data in place of CDN links.
imagerequired
Typestring
Product image input, supplied either by linking to a publicly accessible image or by encoding its raw bytes as base64.
dimensionsrequired
Typeobject[]
Dimension callouts to draw; requires at least one entry.
dimensions[].namerequired
Typeenum
heightwidth_bottomwidth_top
Dimension to display; length and depth are deliberately unavailable.
dimensions[].valuerequired
Typenumber
> 0
Value of the physical measurement.
dimensions[].unitrequired
Typeenum
mmcmmin"ft'
Unit used for the physical measurement.
dimensions[].positionoptional
Typeenum
topbottomleftright
Side on which the callout appears. If omitted, the dimension name determines the default.
stylerequired
Typeenum
defaultchildlikeelegant
Style used for rendering.
titleoptional
Typestring | null
≤ 80 characters
Optional heading displayed above the product.
output_sizeoptional
Typeinteger
Default2200
256 – 2,200
Length in pixels of each side of the square output.
output_formatoptional
Typeenum
Defaultpng
pngjpegdual
Rendered output selection: png, jpeg, or dual, which returns both a composite and a transparent overlay.
backgroundoptional
Typestring
Defaultwhite
Color specified as a hex value or as white, cream, or charcoal.
units_displayoptional
Typeenum
Defaultsingle
singledual_bulletdual_slashdual_parens
Label display style when units are supplied in both primary and secondary forms.
weightoptional
Typeobject
Optional badge showing weight beneath the product.
weight.valuerequired
Typenumber
> 0
weight.unitrequired
Typeenum
lbozgkg
weight.labeloptional
Typeenum
DefaultWeight
WeightNet Weight
capacityoptional
Typeobject
Optional badge showing capacity beneath the product.
capacity.valuerequired
Typenumber
> 0
capacity.unitrequired
Typeenum
fl_ozmllqtgalcups
required

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/product-dimensions",
  "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": "example",
    "dimensions": [
      {
        "name": "height",
        "position": "left",
        "unit": "cm",
        "value": 22
      },
      {
        "name": "width_bottom",
        "position": "bottom",
        "unit": "cm",
        "value": 7
      }
    ],
    "style": "default"
  },
  "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
    },
    "transparent_overlay": {
      "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
    }
  },
  "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"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
image
object {url, content_type, file_name, file_size, width, height}Rendered image showing the product's dimensions.
transparent_overlay
object {url, content_type, file_name, file_size, width, height} | nullTransparent overlay, included only when output_format is set to dual.

More models: Image Editing

For AI agents: this page as Markdown is at https://doitong.com/developers/models/bria/product-dimensions.md. All models and guides: https://doitong.com/developers/llms.txt