Peke ki ngā ihirangi

Bria Expand (FIBO-Edit-1.5)

Whakauru

id tauira bria/fibo-edit-1.5/expand
# 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/fibo-edit-1.5/expand?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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.30 Whakahaerehia ki tēnei whārangi

Tikina he kī API
Bria AI Whakatika Atahanga #image-expansion#outpainting#aspect-ratio#canvas-extension

He taputapu whakaroa ki waho e whakawhānui ana i tētahi atahanga ki tētahi ōwehenga āhuatanga hou, ki tētahi kānawehi ritenga rānei kei raro iho i te 25 mekapika

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.

Whakamārama kōwhiringa o ngā ihirangi mō te rohe tāpiri. Ko te whakarerekē noa i te kānawehi kāore e hiahia whakamārama: mā te waiho ka tono noa i te tauira kia whakawhānui i te atahanga tīariari.

•e hiahiatia ana image_url
Whakataka he kōnae,

Atahanga hei whakawhānui, ka tukuna hei kōnae, hei URL rānei.

aspect_ratio

Tautuhinga ōwehenga atahanga whakamutunga hei whakateka i te mea taketake me te whakawhānui i te kānawehi huri noa. Mā te tautuhi ka whai mana ake i 'original_image_size' me 'original_image_location'.

Arā atu negative_prompt · seed · retain_original_quality · preserve_alpha · return_model_output · canvas_size · original_image_size · original_image_location

Taki hototahi mō ngā tono i tuhia mō te ara SDXL expansion API: mā te tuku i tēnei tāuru kāore e tautokona ka whakaoho i te whakahē mārama, kia kore ai tōna uara e ngaro puku. Whakamahia 'prompt' kē.

Kākano whakaputanga matapōkere, ka whakaurua i ngā wā katoa ki te whakautu ahakoa i tukuna mai, i tīpakohia matapōkeretia rānei. Mā te uara nō tētahi whakautu o mua e hanga anō tōna putanga.

Ngā rahinga atahanga whakawhānui e hono ana ki 'original_image_location'. Tauwhāitihia [width, height] mō te kānawehi whakamutunga, me noho tōna horahanga i raro i te 25 mekapika.

[width, height] whāia mō te atahanga taketake i roto i te kānawehi. Mā te 'aspect_ratio' e turaki tēnei tautuhinga; ki te kore, ka whakarerekēhia te atahanga ki ēnei rahinga i mua i te whakanoho.

Ngā taunga whakanoho [x, y] mō te kokonga mauī-runga o te atahanga taketake, ka waiho ki tua ina tukuna a 'aspect_ratio'. Ka whakaaetia te whakanoho ki tua atu i ngā tapa o te kānawehi, ā, ka tapahia te taketake.

POST /run/bria/fibo-edit-1.5/expand?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/fibo-edit-1.5/expand?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# 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 Expand (FIBO-Edit-1.5)

Ka whakawhānui i tētahi whakaahua ki tua atu i ōna tapa. Kōwhiria tētahi o ngā uara `aspect_ratio` e iwa, tautuhia rānei `canvas_size` hei [width, height] me te horahanga kei raro i te 25 megapika, me `original_image_size` me `original_image_location`. Ka whakaahua tētahi `prompt` kōwhiringa i te wāhi hou. Kei te whakakā taunoa `retain_original_quality` me `preserve_alpha`, ā, mō ngā tātaritanga te `return_model_output`.

Ngā tawhā

Tukuna te ingoa tōmua, te ingoa taketake rānei, kaua e rua. Ngā ingoa tōmua

IngoaMomo TaunoaE whakaaetia ana Whakamārama
image_urle hiahiatia ana image
Momourl · image
Atahanga hei whakawhānui, ka tukuna hei kōnae, hei URL rānei.
canvas_sizekōwhiringa
Momointeger[]
≤ 2 tūemi≥ 2 tūemi
Ngā rahinga atahanga whakawhānui e hono ana ki 'original_image_location'. Tauwhāitihia [width, height] mō te kānawehi whakamutunga, me noho tōna horahanga i raro i te 25 mekapika.
aspect_ratiokōwhiringa
Momoenum
1:12:33:23:44:34:55:49:1616:9
Tautuhinga ōwehenga atahanga whakamutunga hei whakateka i te mea taketake me te whakawhānui i te kānawehi huri noa. Mā te tautuhi ka whai mana ake i 'original_image_size' me 'original_image_location'.
original_image_sizekōwhiringa
Momointeger[]
≤ 2 tūemi≥ 2 tūemi
[width, height] whāia mō te atahanga taketake i roto i te kānawehi. Mā te 'aspect_ratio' e turaki tēnei tautuhinga; ki te kore, ka whakarerekēhia te atahanga ki ēnei rahinga i mua i te whakanoho.
original_image_locationkōwhiringa
Momointeger[]
≤ 2 tūemi≥ 2 tūemi
Ngā taunga whakanoho [x, y] mō te kokonga mauī-runga o te atahanga taketake, ka waiho ki tua ina tukuna a 'aspect_ratio'. Ka whakaaetia te whakanoho ki tua atu i ngā tapa o te kānawehi, ā, ka tapahia te taketake.
promptkōwhiringa
Momostring | null
Whakamārama kōwhiringa o ngā ihirangi mō te rohe tāpiri. Ko te whakarerekē noa i te kānawehi kāore e hiahia whakamārama: mā te waiho ka tono noa i te tauira kia whakawhānui i te atahanga tīariari.
seedkōwhiringa
Momointeger | null
0 – 2,147,483,647
Kākano whakaputanga matapōkere, ka whakaurua i ngā wā katoa ki te whakautu ahakoa i tukuna mai, i tīpakohia matapōkeretia rānei. Mā te uara nō tētahi whakautu o mua e hanga anō tōna putanga.
negative_promptkōwhiringa
Momostring | null
Taki hototahi mō ngā tono i tuhia mō te ara SDXL expansion API: mā te tuku i tēnei tāuru kāore e tautokona ka whakaoho i te whakahē mārama, kia kore ai tōna uara e ngaro puku. Whakamahia 'prompt' kē.
retain_original_qualitykōwhiringa
Momoboolean
Taunoatrue
Whakahohea tēnei hei pupuri i ngā pika taketake kua tiakina e te kanohi ki te taumira katoa, kāore he tauira anō. Ka whakaputa te tauira ki te kotahi mekapika pea, kātahi ka whakanuia mō ngā kānawehi nui ake. Mā te mono ka ngohengohe ōrite te putanga, ā, ka huna pea i te hononga ki te papamuri kakano.
preserve_alphakōwhiringa
Momoboolean
Taunoatrue
Ka pupuri i te pūataata tāuru mā te toro i te hongere alpha taketake mā te tāruarua tapa, ina hiahiatia hei whakawhānui i te tapahi. I te mea e whakahaere ana te whakaputanga i RGB, kāore te tauira e whakaputa alpha. Monokia tēnei hei whiwhi putanga RGB kua papatahi.
return_model_outputkōwhiringa
Momoboolean
Taunoafalse
Whakahokia he anga tātaritanga tāpiri hei wehe i ngā hapa tauira me ngā hapa whakakotahi, kāore e panoni i te atahanga whakamutunga. Ka whakaatu i te putanga tauira i mua i te whakahokinga o te taketake me te whakaranu i ngā hononga; ko ngā hapa tapa kua kitea i tēnei anga he hapa whakaputanga, ehara i te hapa tukatuka-muri.
e hiahiatia ana Ingoa tōmua, e whakaaetia ana hoki

Mō ngā tawhā kōnae, whakamahia he URL tūmatanui https://, he URI data: tae atu ki te 10 MB, he file_url rānei o tētahi tukuake. Ngā kōnae

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "bria/fibo-edit-1.5/expand",
  "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_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "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
    },
    "seed": 42,
    "structured_instruction": {},
    "model_output": {
      "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}Atahanga i hua mai i te whakawhānui.
seed
integerKākano i whakamahia i te whakaputanga, kia taea ai te tārua i te putanga.
structured_instruction
objectTohutohu hanganga hei whakarite i te tauira.
model_output
object {url, content_type, file_name, file_size, width, height} | nullKa whakaurua te anga kāore anō kia whakakotahitia ina whakahohea 'return_model_output' anake. Kei a ia ngā rahinga kānawehi i tonoa, ā, kei roto te putanga tauira kāore he ihirangi kua whakapiria, kua whakaranu rānei.

Ē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/fibo-edit-1.5/expand.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt