Leum chun t-susbaint

Bria Product Dimensions

Amalaich

ID a’ mhodail 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"

An t-iarrtas seo: $0.04 40 creideasan API Ruith e air an duilleig seo

Faigh iuchair API
Bria AI · Ìomhaigh

Thèid a’ chiad toradh agad an-seo

Tog iarrtas gu h-ìosal agus ruith e leis an iuchair API agad. Tha na h-às-churan air an lethbhreacadh dhan stòradh againn, air an cumail gu bràth no 7 latha an-asgaidh.

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

style •riatanach

Stoidhle a chaidh a chleachdadh airson renderadh.

•riatanach

In-chur ìomhaigh toraidh, air a thoirt seachad an dara cuid le ceangal gu ìomhaigh a tha ruigsinneach gu poblach no le bhith a’ còdachadh nam bytes amh aige mar base64.

•riatanach

Callaidean meudachd ri tharraing; feumar co-dhiù aon inntrigeadh.

Adhartach title_position · output_format · units_display · title · background · output_size · proportional_lines · sync · weight · capacity
title_position bun-roghainn top_center

Suidheachadh an tiotail thairis air a’ mhullach.

output_format bun-roghainn png

Taghadh às-chuir renderte: png, jpeg, no dual, a thilleas an dà chuid co-dhèanamh agus còmhdach follaiseach.

units_display bun-roghainn single

Stoidhle taisbeanaidh an leubail nuair a tha aonadan air an toirt seachad ann an riochdan bun-sgoile agus àrd-sgoile.

Ceann-sgrìobhadh roghainneil air a thaisbeanadh os cionn an toraidh.

bun-roghainn white

Dath air a shònrachadh mar luach hex no mar white, cream, no charcoal.

bun-roghainn 2200

Fad ann am piogsail gach taobh den às-chur cheàrnagach.

Bràiste roghainneil a sheallas cuideam fon toradh.

Bràiste roghainneil a sheallas comas fon toradh.

POST /run/bria/product-dimensions?wait=20 tuairmse → $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"

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu Bria Product Dimensions

Gabhaidh e `image` toraidh agus co-dhiù aon inntrigeadh ann an `dimensions`, agus tarraingidh e loidhnichean tomhais le bileagan timcheall an toraidh. Tagh `style` (bun-roghainn, coltach ri pàiste no eireachdail), `title` le suas ri 80 caractar, dath cùlaibh agus `output_size` ceàrnagach bho 256 gu 2200 piogsail. Faodaidh an às-chur a bhith png, jpeg no co-dhealbhadh dùbailte le còmhdach follaiseach.

Paramadairean

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
title_positionroghainneil
Seòrsaenum
Bun-roghainntop_center
top_lefttop_centertop_right
Suidheachadh an tiotail thairis air a’ mhullach.
proportional_linesroghainneil
Seòrsaboolean
Bun-roghainntrue
Dèan faid nan loidhnichean meudachd co-rèireach ris na tomhais aca.
syncroghainneil
Seòrsaboolean
Bun-roghainnfalse
Modh lìbhrigidh nan ìomhaighean a chaidh a ghineadh: tha true a’ taghadh dàta base64 freumhaichte an àite cheanglaichean CDN.
imageriatanach
Seòrsastring
In-chur ìomhaigh toraidh, air a thoirt seachad an dara cuid le ceangal gu ìomhaigh a tha ruigsinneach gu poblach no le bhith a’ còdachadh nam bytes amh aige mar base64.
dimensionsriatanach
Seòrsaobject[]
Callaidean meudachd ri tharraing; feumar co-dhiù aon inntrigeadh.
dimensions[].nameriatanach
Seòrsaenum
heightwidth_bottomwidth_top
Meud ri shealltainn; chan eil fad agus doimhneachd rim faighinn a dh’aona ghnothach.
dimensions[].valueriatanach
Seòrsanumber
> 0
Luach an tomhais chorporra.
dimensions[].unitriatanach
Seòrsaenum
mmcmmin"ft'
Aonad a chaidh a chleachdadh airson an tomhais chorporra.
dimensions[].positionroghainneil
Seòrsaenum
topbottomleftright
An taobh air a bheil an callaid a’ nochdadh. Ma thèid fhàgail às, bidh ainm na meudachd a’ dearbhadh a’ bhun-roghainn.
styleriatanach
Seòrsaenum
defaultchildlikeelegant
Stoidhle a chaidh a chleachdadh airson renderadh.
titleroghainneil
Seòrsastring | null
≤ 80 caractar
Ceann-sgrìobhadh roghainneil air a thaisbeanadh os cionn an toraidh.
output_sizeroghainneil
Seòrsainteger
Bun-roghainn2200
256 – 2,200
Fad ann am piogsail gach taobh den às-chur cheàrnagach.
output_formatroghainneil
Seòrsaenum
Bun-roghainnpng
pngjpegdual
Taghadh às-chuir renderte: png, jpeg, no dual, a thilleas an dà chuid co-dhèanamh agus còmhdach follaiseach.
backgroundroghainneil
Seòrsastring
Bun-roghainnwhite
Dath air a shònrachadh mar luach hex no mar white, cream, no charcoal.
units_displayroghainneil
Seòrsaenum
Bun-roghainnsingle
singledual_bulletdual_slashdual_parens
Stoidhle taisbeanaidh an leubail nuair a tha aonadan air an toirt seachad ann an riochdan bun-sgoile agus àrd-sgoile.
weightroghainneil
Seòrsaobject
Bràiste roghainneil a sheallas cuideam fon toradh.
weight.valueriatanach
Seòrsanumber
> 0
weight.unitriatanach
Seòrsaenum
lbozgkg
weight.labelroghainneil
Seòrsaenum
Bun-roghainnWeight
WeightNet Weight
capacityroghainneil
Seòrsaobject
Bràiste roghainneil a sheallas comas fon toradh.
capacity.valueriatanach
Seòrsanumber
> 0
capacity.unitriatanach
Seòrsaenum
fl_ozmllqtgalcups
riatanach

Toradh

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"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
image
object {url, content_type, file_name, file_size, width, height}Ìomhaigh renderte a sheallas meudan an toraidh.
transparent_overlay
object {url, content_type, file_name, file_size, width, height} | nullCòmhdach follaiseach, air a ghabhail a-steach a-mhàin nuair a tha output_format air a shuidheachadh gu dual.

Barrachd mhodalan: Deasachadh Ìomhaighean

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/bria/product-dimensions.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt