Peke ki ngā ihirangi

Flux 2 Lora Gallery · Add Background

Whakauru

id tauira flux-2-lora-gallery/add-background
# 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/flux-2-lora-gallery/add-background?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tēnei tono: ≈$ 0.021 21 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API

I hangaia ki Doitong

Ngā mahi tūmatanui i hangaia ki Flux 2 LoRA Gallery e te hapori Doitong. Whakamahia anō he tono mā te pāwhiri kotahi.

Ngā mahi tūmatanui kua whakaaturia: 9
Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lemb...

Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi...

Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lemb...

Close-up portrait seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi...

Prompt Details Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut ...

Prompt Details Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi...

Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikel...

Seorang wanita berkulit pucat berdiri setengah tubuh di dalam air berwarna lembut kebiruan, dikelilingi bunga teratai berkelopak penuh yang bermekaran indah di permukaan air. Rambutnya pirang pucat tersanggul longgar dengan beberapa helaian tipis jatuh alami membingkai sisi wajahnya. Ia memeluk...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat men...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat menggemaskan dengan mata cokelat besar yang ekspresif, rambut hitam berantakan yang tebal, mengenakan kaus putih kerah henley. Dia berpose dengan kedua tangan terkatup di depan dada, menunjukkan senyum...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat men...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat menggemaskan dengan mata cokelat besar yang ekspresif, rambut hitam berantakan yang tebal, mengenakan kaus putih kerah henley. Dia berpose dengan kedua tangan terkatup di depan dada, menunjukkan senyum...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat men...

​"Potret sinematik ultra-realistis close-up seorang anak laki-laki kecil (balita) yang sangat menggemaskan dengan mata cokelat besar yang ekspresif, rambut hitam berantakan yang tebal, mengenakan kaus putih kerah henley. Dia berpose dengan kedua tangan terkatup di depan dada, menunjukkan senyum...

Foto sinematik hiper-realistis resolusi tinggi menampilkan seorang pria muda Indonesia dengan tub...

Foto sinematik hiper-realistis resolusi tinggi menampilkan seorang pria muda Indonesia dengan tubuh ramping dan proporsional, rambut hitam pendek agak acak, mengenakan jaket kulit hitam, celana riding fit, dan sepatu motor. Ia sedang melakukan aksi freestyle ekstrem dengan motor sport 500cc...

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.

taunoa Add Background forest

Tohutohu tāpiri papamuri i te hōputu e hiahiatia ana: 'Add Background' whai muri ko te whakaahuatanga o te papamuri e hiahia ana.

•e hiahiatia ana image_urls
Whakataka he kōnae,

Ngā atahanga he mā, he ma rānei ō rātou papamuri, ka tukuna hei URL.

image_size

Te whakakapi rahi putanga; mā te waiho kia kore e tautuhia ka pupuri ngā inenga o te atahanga tāuru.

num_images taunoa 1

Te maha o ngā atahanga hei whakaputa.

Arā atu acceleration · output_format · guidance_scale · num_inference_steps · lora_scale · seed · enable_safety_checker
acceleration taunoa regular

Te tautuhinga whakatere whakaputa atahanga. Kōwhiria 'regular' mō te taurite i waenga i te tere me te kounga.

output_format taunoa png

Hōputu mō te atahanga ka puta.

taunoa 2.5

Te whakahaere ū ki te tohutohu mā te tauine CFG, ko CFG te Classifier Free Guidance.

taunoa 40

Tau o ngā hipanga whakatauira hei whakahaere.

taunoa 1

Te kaha o te pānga tāpiri papamuri.

He kākano whakaputanga matapōkere e taea ai te whakahoki i tētahi hua mā te pupuri i te tohutohu me te kākano kia kaua e panoni.

POST /run/flux-2-lora-gallery/add-background?wait=20 utu → $ 0.021
# 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/flux-2-lora-gallery/add-background?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      "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.com/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ō Flux 2 Lora Gallery · Add Background

He kaiwhakatika ā-LoRA mō ngā atahanga he papamuri mā, he papamuri māori rānei. Me tīmata te `prompt` ki te 'Add Background', whai muri ko te tūāhua e hiahia ana koe, pērā i te ngahere. Mā `lora_scale` (0 ki te 2) e whakarite te kaha o te pānga, ā, mā `guidance_scale` me `num_inference_steps` (4 ki te 50) e whakatika te tīpako. Ka taea te whakahoki atu ki te 4 atahanga.

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_urlse hiahiatia ana images
Momourl[] · image
Ngā atahanga he mā, he ma rānei ō rātou papamuri, ka tukuna hei URL.
promptkōwhiringa
Momostring
TaunoaAdd Background forest
Tohutohu tāpiri papamuri i te hōputu e hiahiatia ana: 'Add Background' whai muri ko te whakaahuatanga o te papamuri e hiahia ana.
image_sizekōwhiringa
Momoobject
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Te whakakapi rahi putanga; mā te waiho kia kore e tautuhia ka pupuri ngā inenga o te atahanga tāuru.
guidance_scalekōwhiringa
Momonumber
Taunoa2.5
0 – 20
Te whakahaere ū ki te tohutohu mā te tauine CFG, ko CFG te Classifier Free Guidance.
num_inference_stepskōwhiringa
Momointeger
Taunoa40
4 – 50
Tau o ngā hipanga whakatauira hei whakahaere.
accelerationkōwhiringa
Momoenum
Taunoaregular
noneregular
Te tautuhinga whakatere whakaputa atahanga. Kōwhiria 'regular' mō te taurite i waenga i te tere me te kounga.
seedkōwhiringa
Momointeger | null
He kākano whakaputanga matapōkere e taea ai te whakahoki i tētahi hua mā te pupuri i te tohutohu me te kākano kia kaua e panoni.
enable_safety_checkerkōwhiringa
Momoboolean
Taunoatrue
He whakakā/whakaweto tirotiro haumaru atahanga kua whakaputaina, ka taea anake e ngā pūkete whai whakaaetanga te monokia. Ka noho whakahauanga ngā tirotiro mō ngā tono kāore he whakaaetanga.
output_formatkōwhiringa
Momoenum
Taunoapng
pngjpegwebp
Hōputu mō te atahanga ka puta.
num_imageskōwhiringa num_outputs
Momointeger
Taunoa1
1 – 4
Te maha o ngā atahanga hei whakaputa.
lora_scalekōwhiringa
Momonumber
Taunoa1
0 – 2
Te kaha o te pānga tāpiri papamuri.
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": "flux-2-lora-gallery/add-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": 21,
    "usd": "0.021",
    "charged": 21,
    "refunded": 0
  },
  "input": {
    "image_urls": [
      "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
    ]
  },
  "output": {
    "images": [
      {
        "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,
    "prompt": "string"
  },
  "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"
  }
}
Ō 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
images
array of object {url, content_type, file_name, file_size, width, height}Ngā atahanga putanga kei roto te papamuri kua tāpirihia.
seed
integerTe uara kākano i whakamahia i te whakaputanga.
prompt
stringTe tohutohu i whakamahia i te whakaputanga.

Ē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/flux-2-lora-gallery/add-background.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt