Peke ki ngā ihirangi

FLUX 2 Trainer V2 Edit

Whakauru

id tauira flux-2-trainer-v2/edit
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-2-trainer-v2/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Tēnei tono: $ 38.92 38,920 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Black Forest Labs Whakangungu

Kaiwhakangungu LoRA whakatika FLUX.2 reanga tuarua mā ngā takirua whakaahua tīmatanga/whakamutunga, kia 20,000 hipanga

Black Forest Labs · Kōnae

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.

•e hiahiatia ana

URL zip raraunga whakangungu, me ngā tohutohu whakatika mō ia takirua atahanga mā tētahi kōnae ROOT.txt kōwhiringa (hei tauira, photo.txt); ki te kore, ka whakamahia te default_caption, ā, ka rahua te whakangungu mēnā kāore hoki taua taunoa. Me whakamahi ngā takirua atahanga i ROOT_start.EXT me ROOT_end.EXT, pēnei i photo_start.jpg me photo_end.jpg. Ka taea hoki e ia takirua kia whā ngā atahanga tohutoro mā ROOT_start.EXT, ROOT_start2.EXT, ROOT_start3.EXT, ROOT_start4.EXT, ROOT_end.EXT; ko ngā ingoa tauira ko photo_start.jpg, photo_start2.jpg, photo_end.jpg.

taunoa 1000

Te tapeke o ngā hipanga whakangungu.

Arā atu default_caption · learning_rate

Tapanga hei whakakapi i ngā kōnae tapanga ngaro; mā te None ka noho hapa te korenga.

taunoa 5.0e-05

Te tere ako mō ngā tawhā ka taea te whakangungu.

POST /run/flux-2-trainer-v2/edit?wait=20 utu → $ 38.92
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://vit.doitong.com/api/v1/run/flux-2-trainer-v2/edit?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://vit.doitong.com/api/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 Trainer V2 Edit

Ka whakatikatika i tētahi LoRA mō tētahi mahi whakatika mai i tētahi zip o ngā takirua whakaahua ko ROOT_start me ROOT_end ngā ingoa, ā, ka taea hoki ētahi whakaahua tohutoro. Ka whakaae `steps` ki te 100 ki te 20000, ā, e wātea ana `learning_rate` me `default_caption`. Ka whakaputa taumaha LoRA me tētahi kōnae whirihoranga mō te whakamahi ā muri ake.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
image_data_urle hiahiatia ana
Momostring
URL zip raraunga whakangungu, me ngā tohutohu whakatika mō ia takirua atahanga mā tētahi kōnae ROOT.txt kōwhiringa (hei tauira, photo.txt); ki te kore, ka whakamahia te default_caption, ā, ka rahua te whakangungu mēnā kāore hoki taua taunoa. Me whakamahi ngā takirua atahanga i ROOT_start.EXT me ROOT_end.EXT, pēnei i photo_start.jpg me photo_end.jpg. Ka taea hoki e ia takirua kia whā ngā atahanga tohutoro mā ROOT_start.EXT, ROOT_start2.EXT, ROOT_start3.EXT, ROOT_start4.EXT, ROOT_end.EXT; ko ngā ingoa tauira ko photo_start.jpg, photo_start2.jpg, photo_end.jpg.
stepskōwhiringa
Momointeger
Taunoa1000
100 – 20,000
Te tapeke o ngā hipanga whakangungu.
learning_ratekōwhiringa
Momonumber
Taunoa5.0e-05
Te tere ako mō ngā tawhā ka taea te whakangungu.
default_captionkōwhiringa
Momostring | null
Tapanga hei whakakapi i ngā kōnae tapanga ngaro; mā te None ka noho hapa te korenga.
e hiahiatia ana

Putanga

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "flux-2-trainer-v2/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": 38920,
    "usd": "38.92",
    "charged": 38920,
    "refunded": 0
  },
  "input": {
    "image_data_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "diffusers_lora_file": {
      "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
    },
    "config_file": {
      "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
    }
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://vit.doitong.com/api/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://vit.doitong.com/api/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
diffusers_lora_file
object {url, content_type, file_name, file_size}URL e tohu ana ki ngā taumahatanga LoRA kua whakangungua, kei te hōputu diffusers.
config_file
object {url, content_type, file_name, file_size}URL e tohu ana ki te kōnae whirihoranga o te tauira kua whakangungua.

Ētahi atu tauira: Whakangungu

Mō ngā āpiha AI: kei te wātea tēnei whārangi hei Markdown ki https://doitong.com/mi/developers/models/flux-2-trainer-v2/edit.md. Ngā tauira me ngā aratohu katoa: https://doitong.com/developers/llms.txt