Dža ko lil

Z Image Trainer

Integriruj

Modelosko id z-image-trainer
# 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/z-image-trainer?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://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Kava mangipen: $2.26 2,260 API krediti Phir les kate

Lel API klidin
Alibaba Sikavipen #turbo#z-image#fast#trainer

Trenin jekh LoRA pala Z-Image Turbo katar zip fotkengo, fokusasa pe somo, stil vaj balancirimo

Alibaba · 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

URL e zip-arhivosqe e stilistikesko phandle kipesa; si rekomendime minimum 10, thaj maj bare set-a si maj lačhe. Vas sako kipesqo phandipen, editaciakere instrukcie šaj aven ande jekh phandlo text-fajlo anavvardo ROOT.txt, sar photo.txt. Kana si na text-fajlo, kasutinel pes default_caption; o treningo na bistrel kana na si vi kado fallback.

standardno 1000

Totalno ginipen e treningosqe step-engo.

Lučhe training_type · default_caption · learning_rate
training_type standardno balanced

Treningoskoro fokus: 'content' zorarel o kipo-sadržaj, 'style' zorarel o kipo-stilo, thaj 'balanced' jekhutno la dujenca.

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

standardno 0.0001

Sikljovipnasqi speed kasutime vas trainable parametrura.

POST /run/z-image-trainer?wait=20 hesab → $2.26
# 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/z-image-trainer?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://api.doitong.com/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 Z Image Trainer

Fine-tuning-arel jek LoRA pe tire kipa dine sar zip arhiva, idealno najmanje 10, opcionalno jek caption teksto fajlo vaš sako kipo. Setis `training_type` pe content, stilo vaj balanced, `steps` katar 100 dži 10000, thaj `learning_rate`. Jek `default_caption` pherel missing captionura. Devolvel e LoRA pharipena thaj jek config fajlo.

Parametra

NavTip standardnoMuklo Vakeripe
image_data_urltrubul
Tipstring
URL e zip-arhivosqe e stilistikesko phandle kipesa; si rekomendime minimum 10, thaj maj bare set-a si maj lačhe. Vas sako kipesqo phandipen, editaciakere instrukcie šaj aven ande jekh phandlo text-fajlo anavvardo ROOT.txt, sar photo.txt. Kana si na text-fajlo, kasutinel pes default_caption; o treningo na bistrel kana na si vi kado fallback.
stepsopcionalno
Tipinteger
standardno1000
100 – 10,000
Totalno ginipen e treningosqe step-engo.
learning_rateopcionalno
Tipnumber
standardno0.0001
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.
training_typeopcionalno
Tipenum
standardnobalanced
contentstylebalanced
Treningoskoro fokus: 'content' zorarel o kipo-sadržaj, 'style' zorarel o kipo-stilo, thaj 'balanced' jekhutno la dujenca.
trubul

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "z-image-trainer",
  "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": 2260,
    "usd": "2.26",
    "charged": 2260,
    "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://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/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.

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