Peke ki ngā ihirangi

Bria Product Dimensions

Whakauru

id tauira 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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tēnei tono: $ 0.04 40 whiwhinga API · ≈ ₽ 4.26 Whakahaerehia ki tēnei whārangi

Tikina he kī API
Bria AI · Atahanga

Kei konei tō hua tuatahi

Hangaia he tono ki raro nei, ka whakahaere mā tō kī API. Ka tāruatia ngā putanga ki tō mātou rokiroki, ka puritia mō ake tonu atu, mō rānei 7 rā mō te kore utu.

Hangaia he tono

Ka hangaia ngā mana whakahaere mai i te aronuinga o te tauira. Ka whakahoungia te waehere me te utu ina whakarerekē koe.

style •e hiahiatia ana

Te kāhua e whakamahia ana mō te tā.

•e hiahiatia ana

Te tāuru atahanga hua, ka tukuna mā te hono ki tētahi atahanga e wātea tūmatanui ana, mā te whakawaehere rānei i ōna paita mata hei base64.

•e hiahiatia ana

Ngā tohu ahu hei tā; me whai urunga kotahi neke atu.

Arā atu title_position · output_format · units_display · title · background · output_size · proportional_lines · sync · weight · capacity
title_position taunoa top_center

Te tūnga o te taitara ki te taha runga.

output_format taunoa png

Te kōwhiringa putanga kua tāia: png, jpeg, dual rānei, ka whakahoki i tētahi whakakotahitanga me tētahi whakakikorua mārama.

units_display taunoa single

Te kāhua whakaatu tapanga ina tukuna ngā waeine hei momo matua, momo tuarua hoki.

He pane kōwhiringa ka whakaaturia ki runga ake i te hua.

taunoa white

Te tae kua tohua hei uara hex, hei white, cream, charcoal rānei.

taunoa 2200

Te roa pika o ia taha o te putanga tapawhā.

He tohu kōwhiringa e whakaatu ana i te taumaha i raro i te hua.

He tohu kōwhiringa e whakaatu ana i te kaha i raro i te hua.

POST /run/bria/product-dimensions?wait=20 utu → $ 0.04
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Whakahaerehia tēnei tono

Ka noho tō kī ki tēnei pūtirotiro: ka tukuna ki te Doitong API anake, ā, ka tiakina ki te localStorage anake ina tohua e koe te Mahara. Tikina he kī API

Mō Bria Product Dimensions

Ka tango i tētahi `image` hua me te urunga kotahi neke atu ki `dimensions`, kātahi ka tā i ngā rārangi ine kua tapaina huri noa i te hua. Kōwhiria he `style` (taunoa, āhua tamariki, huatau rānei), he `title` tae atu ki te 80 pūāhua, he tae papamuri, me tētahi `output_size` tapawhā mai i te 256 ki te 2200 pika. Ko te putanga he png, jpeg, he huinga rua rānei me tētahi paparua mārama.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
title_positionkōwhiringa
Momoenum
Taunoatop_center
top_lefttop_centertop_right
Te tūnga o te taitara ki te taha runga.
proportional_lineskōwhiringa
Momoboolean
Taunoatrue
Whakaritea kia ōrite te taurite o ngā roa raina-ahu ki ā rātou inenga.
synckōwhiringa
Momoboolean
Taunoafalse
Te aratau tuku mō ngā atahanga whakaputaina: mā true e kōwhiri ngā raraunga base64 kua whakaurua, hei whakakapi i ngā hononga CDN.
imagee hiahiatia ana
Momostring
Te tāuru atahanga hua, ka tukuna mā te hono ki tētahi atahanga e wātea tūmatanui ana, mā te whakawaehere rānei i ōna paita mata hei base64.
dimensionse hiahiatia ana
Momoobject[]
Ngā tohu ahu hei tā; me whai urunga kotahi neke atu.
dimensions[].namee hiahiatia ana
Momoenum
heightwidth_bottomwidth_top
Te ahu hei whakaatu; kāore te roa me te hōhonu e wātea ana.
dimensions[].valuee hiahiatia ana
Momonumber
> 0
Te uara o te inenga ā-tinana.
dimensions[].unite hiahiatia ana
Momoenum
mmcmmin"ft'
Te waeine e whakamahia ana mō te inenga ā-tinana.
dimensions[].positionkōwhiringa
Momoenum
topbottomleftright
Te taha e puta ai te tohu. Ki te waiho, mā te ingoa ahu e whakatau te taunoa.
stylee hiahiatia ana
Momoenum
defaultchildlikeelegant
Te kāhua e whakamahia ana mō te tā.
titlekōwhiringa
Momostring | null
≤ 80 pūāhua
He pane kōwhiringa ka whakaaturia ki runga ake i te hua.
output_sizekōwhiringa
Momointeger
Taunoa2200
256 – 2,200
Te roa pika o ia taha o te putanga tapawhā.
output_formatkōwhiringa
Momoenum
Taunoapng
pngjpegdual
Te kōwhiringa putanga kua tāia: png, jpeg, dual rānei, ka whakahoki i tētahi whakakotahitanga me tētahi whakakikorua mārama.
backgroundkōwhiringa
Momostring
Taunoawhite
Te tae kua tohua hei uara hex, hei white, cream, charcoal rānei.
units_displaykōwhiringa
Momoenum
Taunoasingle
singledual_bulletdual_slashdual_parens
Te kāhua whakaatu tapanga ina tukuna ngā waeine hei momo matua, momo tuarua hoki.
weightkōwhiringa
Momoobject
He tohu kōwhiringa e whakaatu ana i te taumaha i raro i te hua.
weight.valuee hiahiatia ana
Momonumber
> 0
weight.unite hiahiatia ana
Momoenum
lbozgkg
weight.labelkōwhiringa
Momoenum
TaunoaWeight
WeightNet Weight
capacitykōwhiringa
Momoobject
He tohu kōwhiringa e whakaatu ana i te kaha i raro i te hua.
capacity.valuee hiahiatia ana
Momonumber
> 0
capacity.unite hiahiatia ana
Momoenum
fl_ozmllqtgalcups
e hiahiatia ana

Putanga

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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Ō kōnae, māu e whiriwhiriKo ia url o outputs[] he tārua kei tō mātou rokiroki: ka puritia mō ake tonu atu (ka utua ia GB-marama) mō rānei 7 rā mō te kore utu, e ai ki ngā tautuhinga o tō pūkete, ki te ?storage= rānei.
He ōrite te hanga ki ia tauiratype, url, content_type, width, height me duration, mō ngā pikitia, ataata me te oro. Ko output te ahanoa hua ake o te tauira.
Ngā āpure o te putanga
image
object {url, content_type, file_name, file_size, width, height}Te atahanga kua tāia e whakaatu ana i ngā āhuatanga o te hua.
transparent_overlay
object {url, content_type, file_name, file_size, width, height} | nullHe whakakikorua mārama, ka whakaurua anake ina whakaritea a output_format ki dual.

Ētahi atu tauira: Whakatika Atahanga

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/bria/product-dimensions.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt