Dža ko lil

FLUX 2 Trainer V2 Edit

Integriruj

Modelosko id 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"

Kava mangipen: $38.92 38,920 API krediti Phir les kate

Lel API klidin
Black Forest Labs Sikavipen

Dujto-generacijaske FLUX.2 editing LoRA trener e start/end kipenge, dži 20,000 pasenca

Black Forest Labs · Fajlo

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

•trubul

Treningosqe data-ziposqo URL, e editaciakere instrukcienca pe sako kipesqo phandipen ande optional ROOT.txt fajlo (sar photo.txt); te na, kasutinel pes default_caption, thaj o treningo na bistrel kana vi kado na si. Kipesqe phandipena trubun te oven ROOT_start.EXT thaj ROOT_end.EXT, sar photo_start.jpg thaj photo_end.jpg. Sako phandipen šaj te lel dži ko štar referencijake kipa kasutime ROOT_start.EXT, ROOT_start2.EXT, ROOT_start3.EXT, ROOT_start4.EXT, ROOT_end.EXT; example fajlura si photo_start.jpg, photo_start2.jpg, photo_end.jpg.

standardno 1000

Totalno ginipen e treningosqe step-engo.

Lučhe default_caption · learning_rate

Caption savo si uporabime thane khandile caption-fajlengi; None kerel lengo n-ačhajipen error.

standardno 5.0e-05

Sikljovipnasqi speed kasutime vas trainable parametrura.

POST /run/flux-2-trainer-v2/edit?wait=20 hesab → $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"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal FLUX 2 Trainer V2 Edit

Fine-tuning kerel jekh LoRA vaš editing andar zip e kipenge ROOT_start thaj ROOT_end navenca, save šaj te avel vi kečik referenca kipi. `steps` lijel 100 te 20000, e `learning_rate` thaj `default_caption`-sa. Kerel LoRA pharipen thaj config fajlo vaš palutni upotreba.

Parametra

NavTip standardnoMuklo Vakeripe
image_data_urltrubul
Tipstring
Treningosqe data-ziposqo URL, e editaciakere instrukcienca pe sako kipesqo phandipen ande optional ROOT.txt fajlo (sar photo.txt); te na, kasutinel pes default_caption, thaj o treningo na bistrel kana vi kado na si. Kipesqe phandipena trubun te oven ROOT_start.EXT thaj ROOT_end.EXT, sar photo_start.jpg thaj photo_end.jpg. Sako phandipen šaj te lel dži ko štar referencijake kipa kasutime ROOT_start.EXT, ROOT_start2.EXT, ROOT_start3.EXT, ROOT_start4.EXT, ROOT_end.EXT; example fajlura si photo_start.jpg, photo_start2.jpg, photo_end.jpg.
stepsopcionalno
Tipinteger
standardno1000
100 – 20,000
Totalno ginipen e treningosqe step-engo.
learning_rateopcionalno
Tipnumber
standardno5.0e-05
Sikljovipnasqi speed kasutime vas trainable parametrura.
default_captionopcionalno
Tipstring | null
Caption savo si uporabime thane khandile caption-fajlengi; None kerel lengo n-ačhajipen error.
trubul

Rezultato

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"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
diffusers_lora_file
object {url, content_type, file_name, file_size}URL savo džal ko trenirime LoRA-weightura ande diffusers-formato.
config_file
object {url, content_type, file_name, file_size}URL savo džal ko konfiguraciako fajlo e trenirime modelosko.

Bute modeli: Sikavipen

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/flux-2-trainer-v2/edit.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt