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

Replace Background

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

ਮਾਡਲ id bria/replace-background
# 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/replace-background?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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.22 ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Bria AI ਚਿੱਤਰ ਸੰਪਾਦਨ #bria#replace-background

ਟੈਕਸਟ ਪ੍ਰੌਂਪਟ ਰਾਹੀਂ ਉਤਪਾਦ ਦੀ ਤਸਵੀਰ ਦੀ ਪਿਛੋਕੜ ਬਦਲਦਾ ਹੈ, ਜਿਸ ਵਿੱਚ ਸੀਡ, ਪੜਾਅ ਅਤੇ ਨੈਗੇਟਿਵ ਪ੍ਰੌਂਪਟ ਦਾ ਨਿਯੰਤਰਣ ਹੁੰਦਾ ਹੈ

Bria AI · ਚਿੱਤਰ

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

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

ਰਿਕਵੈਸਟ ਬਣਾਓ

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

ਬਦਲੇ ਜਾਣ ਵਾਲੇ ਪਿਛੋਕੜ ਦਾ ਵਰਣਨ ਕਰਨ ਵਾਲਾ ਪ੍ਰੌਂਪਟ।

ਉੱਨਤ negative_prompt · steps_num · seed
ਡਿਫ਼ਾਲਟ

ਬਦਲੇ ਜਾਣ ਵਾਲੇ ਪਿਛੋਕੜ ਵਿੱਚੋਂ ਹਟਾਈ ਜਾਣ ਵਾਲੀ ਸਮੱਗਰੀ ਦਰਸਾਉਂਦਾ ਪ੍ਰੌਂਪਟ।

ਡਿਫ਼ਾਲਟ 30

ਇਨਫ਼ਰੈਂਸ ਦੇ ਕੁੱਲ ਕਦਮਾਂ ਦੀ ਗਿਣਤੀ।

ਡਿਫ਼ਾਲਟ 4925634

ਦੁਹਰਾਉਣਯੋਗ ਨਤੀਜਿਆਂ ਲਈ ਰੈਂਡਮਨੈੱਸ ਨੂੰ ਨਿਯੰਤਰਿਤ ਕਰਨ ਵਾਲਾ ਸੀਡ।

POST /run/bria/replace-background?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/replace-background?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# 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 ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Replace Background ਬਾਰੇ

`prompt` ਦੇ ਆਧਾਰ 'ਤੇ ਉਤਪਾਦ ਦੀ ਤਸਵੀਰ ਲਈ ਨਵਾਂ ਪਿਛੋਕੜ ਤਿਆਰ ਕਰਦਾ ਹੈ ਅਤੇ ਯਥਾਰਥਪੂਰਨ ਰੌਸ਼ਨੀ ਤੇ ਦ੍ਰਿਸ਼ਟੀਕੋਣ ਦਾ ਉਦੇਸ਼ ਰੱਖਦਾ ਹੈ। ਵਿਕਲਪਾਂ ਵਿੱਚ `negative_prompt`, `steps_num` (ਡਿਫ਼ਾਲਟ 30) ਅਤੇ ਦੁਹਰਾਏ ਜਾ ਸਕਣ ਵਾਲੇ ਨਤੀਜਿਆਂ ਲਈ `seed` ਸ਼ਾਮਲ ਹਨ। ਇਹ ਇੱਕ ਤਿਆਰ ਕੀਤਾ ਚਿੱਤਰ ਅਤੇ `images` ਐਰੇ ਵੀ ਵਾਪਸ ਕਰਦਾ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਵਿਕਲਪਿਕ
ਕਿਸਮstring | null
ਬਦਲੇ ਜਾਣ ਵਾਲੇ ਪਿਛੋਕੜ ਦਾ ਵਰਣਨ ਕਰਨ ਵਾਲਾ ਪ੍ਰੌਂਪਟ।
seedਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ4925634
ਦੁਹਰਾਉਣਯੋਗ ਨਤੀਜਿਆਂ ਲਈ ਰੈਂਡਮਨੈੱਸ ਨੂੰ ਨਿਯੰਤਰਿਤ ਕਰਨ ਵਾਲਾ ਸੀਡ।
steps_numਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ30
ਇਨਫ਼ਰੈਂਸ ਦੇ ਕੁੱਲ ਕਦਮਾਂ ਦੀ ਗਿਣਤੀ।
negative_promptਵਿਕਲਪਿਕ
ਕਿਸਮstring
ਡਿਫ਼ਾਲਟ
ਬਦਲੇ ਜਾਣ ਵਾਲੇ ਪਿਛੋਕੜ ਵਿੱਚੋਂ ਹਟਾਈ ਜਾਣ ਵਾਲੀ ਸਮੱਗਰੀ ਦਰਸਾਉਂਦਾ ਪ੍ਰੌਂਪਟ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/replace-background",
  "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": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "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
    },
    "images": [
      {}
    ]
  },
  "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}ਮਾਡਲ ਵੱਲੋਂ ਬਣਾਇਆ ਗਿਆ ਚਿੱਤਰ।
images
array of objectਸਿਰਜਣਾ ਨਾਲ ਤਿਆਰ ਕੀਤੇ ਚਿੱਤਰ।

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

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