Leum chun t-susbaint

FLUX 2 Lora Edit

Amalaich

ID a’ mhodail flux-2/lora/edit
# 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/edit?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",
    "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"

Faidhlichean mar an eisimpleir: $0.042 42 creideasan API thèid na faidhlichean agad a thomhas ron ruith Ruith e air an duilleig seo

Faigh iuchair API

Air a dhèanamh air Doitong

Obraichean poblach a rinn coimhearsnachd Doitong le Flux 2. Ath-chleachd prompt ann an aon bhriogadh.

Obraichean poblach air an sealltainn: 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...

Tog iarrtas

Tha na smachdan air an cruthachadh bho sgeama a’ mhodail. Bidh an còd agus a’ phrìs ag ùrachadh fhad ’s a dh’atharraicheas tu iad.

•riatanach

Prompt a stiùireas gineadh ìomhaighe.

•riatanach image_urls
Leig às faidhle, no · suas ri 4

URLan airson ìomhaighean ri dheasachadh, le crìoch de 4 ìomhaighean.

image_size

Meud ìomhaighe an às-chuir, cuibhrichte gu 512 aig a’ char as lugha agus 2048 piogsail aig a’ char as motha air gach axis.

num_images bun-roghainn 1

Àireamh nan ìomhaighean a chaidh iarraidh airson gineadh.

Adhartach acceleration · output_format · guidance_scale · num_inference_steps · seed · enable_prompt_expansion · enable_safety_checker · loras
acceleration bun-roghainn regular

Suidheachadh luathachaidh airson ìomhaighean a ghineadh.

output_format bun-roghainn png

Cruth faidhle na h-ìomhaigh a thig às.

bun-roghainn 2.5

Suidheachadh gèillidh a’ mhodail don prompt ann a bhith a’ lorg ìomhaigh cheangailte ri nochdadh, air a chur an cèill mar sgèile stiùiridh.

bun-roghainn 28

Àireamh nan ceumannan co-dhùnaidh ri ruith.

Sgrìobhadh thairis air seed gineadh; ma thèid fhàgail às, taghaidh gineadh seed air thuaiream.

bun-roghainn []

Cuir an sàs suas ri 3 cuideaman LoRA le bhith a’ liostadh nan àiteachan aca mar URLan, IDan tasg-lann HuggingFace, no slighean ionadail.

POST /run/flux-2/lora/edit?wait=20 tuairmse → $0.042
# 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/edit?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",
    "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"

Ruith an t-iarrtas seo

Fuirichidh an iuchair agad sa bhrobhsair seo: thèid a cur chun Doitong API a-mhàin agus a sàbhaladh (localStorage) a-mhàin ma chuireas tu comharra ri Cuimhnich. Faigh iuchair API

Mu FLUX 2 Lora Edit

A’ deasachadh ìomhaighean à prompt agus suas ri 4 ìomhaighean tùsail ann an `image_urls`, a’ cur suas ri 3 LoRAs bho `loras` an sàs airson stoidhlichean no raointean sònraichte. Am measg nan roghainnean tha `guidance_scale` (0 gu 20), 4 gu 50 ceumannan, `acceleration`, agus leudachadh roghainneil air a’ phrompt. Bidh e a’ tilleadh suas ri 4 ìomhaighean mar jpeg, png no webp.

Paramadairean

Cuir an t-ainm canonical no an t-ainm dùthchasach, chan e an dà chuid. Ainmean canonical

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
promptriatanach
Seòrsastring
Prompt a stiùireas gineadh ìomhaighe.
guidance_scaleroghainneil
Seòrsanumber
Bun-roghainn2.5
0 – 20
Suidheachadh gèillidh a’ mhodail don prompt ann a bhith a’ lorg ìomhaigh cheangailte ri nochdadh, air a chur an cèill mar sgèile stiùiridh.
seedroghainneil
Seòrsainteger | null
Sgrìobhadh thairis air seed gineadh; ma thèid fhàgail às, taghaidh gineadh seed air thuaiream.
num_inference_stepsroghainneil
Seòrsainteger
Bun-roghainn28
4 – 50
Àireamh nan ceumannan co-dhùnaidh ri ruith.
image_sizeroghainneil
Seòrsaobject
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
Meud ìomhaighe an às-chuir, cuibhrichte gu 512 aig a’ char as lugha agus 2048 piogsail aig a’ char as motha air gach axis.
num_imagesroghainneil num_outputs
Seòrsainteger
Bun-roghainn1
1 – 4
Àireamh nan ìomhaighean a chaidh iarraidh airson gineadh.
accelerationroghainneil
Seòrsaenum
Bun-roghainnregular
noneregularhigh
Suidheachadh luathachaidh airson ìomhaighean a ghineadh.
enable_prompt_expansionroghainneil
Seòrsaboolean
Bun-roghainnfalse
Leasachadh fèin-obrachail air prompt: bidh true a’ comasachadh leudachadh a’ prompt gus toraidhean a leasachadh.
enable_safety_checkerroghainneil
Seòrsaboolean
Bun-roghainntrue
Sgrùdadh sàbhailteachd, a thilleas ìomhaighean dubha an àite ìomhaighean sam bith a chaidh an comharrachadh mar mhì-shàbhailte. Bidh true a’ comasachadh sgrùdaidh; cuiridh false à comas e dìreach airson chunntasan ùghdarraichte, agus thèid iarrtasan gun ùghdarras a sgrùdadh co-dhiù.
output_formatroghainneil
Seòrsaenum
Bun-roghainnpng
jpegpngwebp
Cruth faidhle na h-ìomhaigh a thig às.
image_urlsriatanach images
Seòrsaurl[] · image
≤ 4 nì
URLan airson ìomhaighean ri dheasachadh, le crìoch de 4 ìomhaighean.
lorasroghainneil
Seòrsaobject[]
Bun-roghainn[]
Cuir an sàs suas ri 3 cuideaman LoRA le bhith a’ liostadh nan àiteachan aca mar URLan, IDan tasg-lann HuggingFace, no slighean ionadail.
loras[].pathriatanach
Seòrsastring
Àite nan cuideaman LoRA, air a shònrachadh mar URL, ID tasg-lann HuggingFace ann an cruth owner/repo, no slighe ionadail.
loras[].scaleroghainneil
Seòrsanumber
Bun-roghainn1
0 – 4
Factar sgèileachaidh a chuirear an sàs anns an LoRA, eadar 0.0 agus 4.0.
riatanach Ainm canonical, gabhar ris cuideachd

Gabhaidh paramadairean faidhle ri URL poblach https://, URI data: suas ri 10 MB, no file_url de luchdachadh suas. Faidhlichean

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-2/lora/edit",
  "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": 42,
    "usd": "0.042",
    "charged": 42,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "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
      }
    ],
    "timings": {},
    "seed": 42,
    "has_nsfw_concepts": [
      false
    ],
    "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"
  }
}
Na faidhlichean agad, do roghainnTha gach outputs[].url na lethbhreac air an stòradh againn: air a chumail gu bràth (air a phàigheadh gach GB-mìos) no 7 latha an-asgaidh, a rèir suidheachadh a’ chunntais agad no ?storage=.
An aon chruth air gach modailtype, url, content_type, width, height agus duration, airson dealbhan, bhidio agus fuaim le chèile. ’S e output nì toraidh a’ mhodail fhèin.
Raointean toraidh
images
array of object {url, content_type, file_name, file_size, width, height}Ìomhaighean a thig bho dheasachadh.
timings
object
seed
integerSìol gineadh ìomhaighe, a’ gabhail a-steach an luach a chaidh a thaghadh air thuaiream ma chaidh sìol fhàgail às an in-chur; air dhòigh eile, bidh e ag ath-aithris an luach a chaidh a solar.
has_nsfw_concepts
array of booleanA’ comharrachadh a bheil bun-bheachdan NSFW a’ nochdadh anns na h-ìomhaighean a chaidh a ghineadh.
prompt
stringPrompt a chaidh a chleachdadh rè gineadh ìomhaighe.

Barrachd mhodalan: Deasachadh Ìomhaighean

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/flux-2/lora/edit.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt