ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Bria Product Dimensions

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ 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.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"

ਇਹ ਬੇਨਤੀ: $0.04 40 API ਕ੍ਰੈਡਿਟ · ≈ ₽4.19 ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Bria AI ਚਿੱਤਰ ਸੰਪਾਦਨ #stylized#transform#typography

ਮਾਪ ਸੰਬੰਧੀ ਕਾਲਆਊਟਾਂ, ਵਿਕਲਪਿਕ ਸਿਰਲੇਖ, ਭਾਰ ਅਤੇ ਸਮਰੱਥਾ ਬੈਜਾਂ ਨਾਲ ਉਤਪਾਦ ਦੀ ਫੋਟੋ ਨੂੰ ਮਾਪ-ਗ੍ਰਾਫਿਕ ਵਿੱਚ ਰੈਂਡਰ ਕਰਦਾ ਹੈ

Bria AI · ਚਿੱਤਰ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

style •ਲੋੜੀਂਦਾ

ਰੈਂਡਰਿੰਗ ਲਈ ਵਰਤੀ ਗਈ ਸ਼ੈਲੀ।

•ਲੋੜੀਂਦਾ

ਉਤਪਾਦ ਚਿੱਤਰ ਇਨਪੁੱਟ, ਜਾਂ ਤਾਂ ਜਨਤਕ ਤੌਰ 'ਤੇ ਪਹੁੰਚਯੋਗ ਚਿੱਤਰ ਨਾਲ ਲਿੰਕ ਕਰਕੇ ਜਾਂ ਇਸ ਦੇ raw bytes ਨੂੰ base64 ਵਜੋਂ encode ਕਰਕੇ ਦਿੱਤਾ ਜਾਂਦਾ ਹੈ।

•ਲੋੜੀਂਦਾ

ਖਿੱਚਣ ਲਈ ਆਯਾਮ ਕਾਲਆਉਟ; ਘੱਟੋ-ਘੱਟ ਇੱਕ ਐਂਟਰੀ ਲੋੜੀਂਦੀ ਹੈ।

ਉੱਨਤ title_position · output_format · units_display · title · background · output_size · proportional_lines · sync · weight · capacity
title_position ਡਿਫ਼ਾਲਟ top_center

ਉੱਪਰਲੇ ਭਾਗ ਵਿੱਚ ਸਿਰਲੇਖ ਦੀ ਸਥਿਤੀ।

output_format ਡਿਫ਼ਾਲਟ png

ਰੈਂਡਰ ਕੀਤੇ ਆਉਟਪੁੱਟ ਦੀ ਚੋਣ: png, jpeg, ਜਾਂ dual, ਜੋ composite ਅਤੇ transparent overlay ਦੋਵੇਂ ਵਾਪਸ ਕਰਦਾ ਹੈ।

units_display ਡਿਫ਼ਾਲਟ single

ਜਦੋਂ ਇਕਾਈਆਂ primary ਅਤੇ secondary ਦੋਵੇਂ ਰੂਪਾਂ ਵਿੱਚ ਦਿੱਤੀਆਂ ਜਾਣ, ਤਾਂ ਲੇਬਲ ਦਿਖਾਉਣ ਦੀ ਸ਼ੈਲੀ।

ਉਤਪਾਦ ਦੇ ਉੱਪਰ ਦਿਖਾਇਆ ਜਾਣ ਵਾਲਾ ਵਿਕਲਪਿਕ ਸਿਰਲੇਖ।

ਡਿਫ਼ਾਲਟ white

ਹੈਕਸ ਮੁੱਲ ਜਾਂ white, cream, ਜਾਂ charcoal ਵਜੋਂ ਨਿਰਧਾਰਤ ਰੰਗ।

ਡਿਫ਼ਾਲਟ 2200

ਵਰਗਾਕਾਰ ਆਉਟਪੁੱਟ ਦੀ ਹਰ ਭੁਜਾ ਦੀ ਪਿਕਸਲਾਂ ਵਿੱਚ ਲੰਬਾਈ।

ਉਤਪਾਦ ਦੇ ਹੇਠਾਂ ਭਾਰ ਦਿਖਾਉਣ ਵਾਲਾ ਵਿਕਲਪਿਕ ਬੈਜ।

ਉਤਪਾਦ ਦੇ ਹੇਠਾਂ ਸਮਰੱਥਾ ਦਿਖਾਉਣ ਵਾਲਾ ਵਿਕਲਪਿਕ ਬੈਜ।

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

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Bria Product Dimensions ਬਾਰੇ

ਉਤਪਾਦ ਦਾ `image` ਅਤੇ `dimensions` ਵਿੱਚ ਘੱਟੋ-ਘੱਟ ਇੱਕ ਐਂਟਰੀ ਲੈਂਦਾ ਹੈ, ਫਿਰ ਉਤਪਾਦ ਦੇ ਆਲੇ-ਦੁਆਲੇ ਲੇਬਲ ਕੀਤੀਆਂ ਮਾਪ-ਰੇਖਾਵਾਂ ਬਣਾਉਂਦਾ ਹੈ। `style` (ਪੂਰਵ-ਨਿਰਧਾਰਤ, ਬਾਲ-ਸੁਭਾਅ ਜਾਂ ਸ਼ਾਨਦਾਰ), ਵੱਧ ਤੋਂ ਵੱਧ 80 ਅੱਖਰਾਂ ਦਾ `title`, ਪਿਛੋਕੜ ਰੰਗ ਅਤੇ 256 ਤੋਂ 2200 ਪਿਕਸਲ ਤੱਕ ਦਾ ਵਰਗਾਕਾਰ `output_size` ਚੁਣੋ। ਆਉਟਪੁੱਟ png, jpeg ਜਾਂ ਪਾਰਦਰਸ਼ੀ ਓਵਰਲੇ ਵਾਲਾ ਦੋਹਰਾ ਕੰਪੋਜ਼ਿਟ ਹੋ ਸਕਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
title_positionਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟtop_center
top_lefttop_centertop_right
ਉੱਪਰਲੇ ਭਾਗ ਵਿੱਚ ਸਿਰਲੇਖ ਦੀ ਸਥਿਤੀ।
proportional_linesਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਆਯਾਮ-ਰੇਖਾ ਦੀਆਂ ਲੰਬਾਈਆਂ ਨੂੰ ਉਨ੍ਹਾਂ ਦੇ ਮਾਪਾਂ ਦੇ ਅਨੁਪਾਤੀ ਬਣਾਓ।
syncਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਸਿਰਜੇ ਗਏ ਚਿੱਤਰਾਂ ਲਈ ਡਿਲਿਵਰੀ ਮੋਡ: true CDN ਲਿੰਕਾਂ ਦੀ ਥਾਂ embedded base64 data ਚੁਣਦਾ ਹੈ।
imageਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਉਤਪਾਦ ਚਿੱਤਰ ਇਨਪੁੱਟ, ਜਾਂ ਤਾਂ ਜਨਤਕ ਤੌਰ 'ਤੇ ਪਹੁੰਚਯੋਗ ਚਿੱਤਰ ਨਾਲ ਲਿੰਕ ਕਰਕੇ ਜਾਂ ਇਸ ਦੇ raw bytes ਨੂੰ base64 ਵਜੋਂ encode ਕਰਕੇ ਦਿੱਤਾ ਜਾਂਦਾ ਹੈ।
dimensionsਲੋੜੀਂਦਾ
ਕਿਸਮobject[]
ਖਿੱਚਣ ਲਈ ਆਯਾਮ ਕਾਲਆਉਟ; ਘੱਟੋ-ਘੱਟ ਇੱਕ ਐਂਟਰੀ ਲੋੜੀਂਦੀ ਹੈ।
dimensions[].nameਲੋੜੀਂਦਾ
ਕਿਸਮenum
heightwidth_bottomwidth_top
ਦਿਖਾਉਣ ਲਈ ਆਯਾਮ; length ਅਤੇ depth ਜਾਣ-ਬੁੱਝ ਕੇ ਉਪਲਬਧ ਨਹੀਂ ਹਨ।
dimensions[].valueਲੋੜੀਂਦਾ
ਕਿਸਮnumber
> 0
ਭੌਤਿਕ ਮਾਪ ਦਾ ਮੁੱਲ।
dimensions[].unitਲੋੜੀਂਦਾ
ਕਿਸਮenum
mmcmmin"ft'
ਭੌਤਿਕ ਮਾਪ ਲਈ ਵਰਤੀ ਗਈ ਇਕਾਈ।
dimensions[].positionਵਿਕਲਪਿਕ
ਕਿਸਮenum
topbottomleftright
ਉਹ ਪਾਸਾ ਜਿੱਥੇ ਕਾਲਆਉਟ ਦਿਖਾਈ ਦਿੰਦਾ ਹੈ। ਜੇ ਨਾ ਦਿੱਤਾ ਜਾਵੇ, ਤਾਂ ਆਯਾਮ ਦਾ ਨਾਮ ਪੂਰਵ-ਨਿਰਧਾਰਤ ਮੁੱਲ ਨਿਰਧਾਰਤ ਕਰਦਾ ਹੈ।
styleਲੋੜੀਂਦਾ
ਕਿਸਮenum
defaultchildlikeelegant
ਰੈਂਡਰਿੰਗ ਲਈ ਵਰਤੀ ਗਈ ਸ਼ੈਲੀ।
titleਵਿਕਲਪਿਕ
ਕਿਸਮstring | null
≤ 80 ਅੱਖਰ
ਉਤਪਾਦ ਦੇ ਉੱਪਰ ਦਿਖਾਇਆ ਜਾਣ ਵਾਲਾ ਵਿਕਲਪਿਕ ਸਿਰਲੇਖ।
output_sizeਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ2200
256 – 2,200
ਵਰਗਾਕਾਰ ਆਉਟਪੁੱਟ ਦੀ ਹਰ ਭੁਜਾ ਦੀ ਪਿਕਸਲਾਂ ਵਿੱਚ ਲੰਬਾਈ।
output_formatਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟpng
pngjpegdual
ਰੈਂਡਰ ਕੀਤੇ ਆਉਟਪੁੱਟ ਦੀ ਚੋਣ: png, jpeg, ਜਾਂ dual, ਜੋ composite ਅਤੇ transparent overlay ਦੋਵੇਂ ਵਾਪਸ ਕਰਦਾ ਹੈ।
backgroundਵਿਕਲਪਿਕ
ਕਿਸਮstring
ਡਿਫ਼ਾਲਟwhite
ਹੈਕਸ ਮੁੱਲ ਜਾਂ white, cream, ਜਾਂ charcoal ਵਜੋਂ ਨਿਰਧਾਰਤ ਰੰਗ।
units_displayਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟsingle
singledual_bulletdual_slashdual_parens
ਜਦੋਂ ਇਕਾਈਆਂ primary ਅਤੇ secondary ਦੋਵੇਂ ਰੂਪਾਂ ਵਿੱਚ ਦਿੱਤੀਆਂ ਜਾਣ, ਤਾਂ ਲੇਬਲ ਦਿਖਾਉਣ ਦੀ ਸ਼ੈਲੀ।
weightਵਿਕਲਪਿਕ
ਕਿਸਮobject
ਉਤਪਾਦ ਦੇ ਹੇਠਾਂ ਭਾਰ ਦਿਖਾਉਣ ਵਾਲਾ ਵਿਕਲਪਿਕ ਬੈਜ।
weight.valueਲੋੜੀਂਦਾ
ਕਿਸਮnumber
> 0
weight.unitਲੋੜੀਂਦਾ
ਕਿਸਮenum
lbozgkg
weight.labelਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟWeight
WeightNet Weight
capacityਵਿਕਲਪਿਕ
ਕਿਸਮobject
ਉਤਪਾਦ ਦੇ ਹੇਠਾਂ ਸਮਰੱਥਾ ਦਿਖਾਉਣ ਵਾਲਾ ਵਿਕਲਪਿਕ ਬੈਜ।
capacity.valueਲੋੜੀਂਦਾ
ਕਿਸਮnumber
> 0
capacity.unitਲੋੜੀਂਦਾ
ਕਿਸਮenum
fl_ozmllqtgalcups
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

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"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
image
object {url, content_type, file_name, file_size, width, height}ਉਤਪਾਦ ਦੇ ਆਯਾਮ ਦਿਖਾਉਂਦਾ ਰੈਂਡਰ ਕੀਤਾ ਚਿੱਤਰ।
transparent_overlay
object {url, content_type, file_name, file_size, width, height} | nullਪਾਰਦਰਸ਼ੀ overlay, ਸਿਰਫ਼ ਉਦੋਂ ਸ਼ਾਮਲ ਹੁੰਦਾ ਹੈ ਜਦੋਂ output_format ਨੂੰ dual 'ਤੇ ਸੈੱਟ ਕੀਤਾ ਗਿਆ ਹੋਵੇ।

ਹੋਰ ਮਾਡਲ: ਚਿੱਤਰ ਸੰਪਾਦਨ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/bria/product-dimensions.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt