Peke ki ngā ihirangi

Z Image Trainer

Whakauru

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

Tēnei tono: $ 2.26 2,260 whiwhinga API Whakahaerehia ki tēnei whārangi

Tikina he kī API
Alibaba Whakangungu #turbo#z-image#fast#trainer

Ka whakangungu i tētahi LoRA mō Z-Image Turbo mai i tētahi kōtui atahanga, me te aronga ihirangi, kāhua, taurite rānei

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

He URL o tētahi pūranga zip atahanga ōrite kāhua; e taunakitia ana kia 10 neke atu, ā, he pai ake ngā huinga nui ake. Mō ia takirua atahanga, ka taea te tuku tohutohu whakatika ki tētahi kōnae kuputuhi ROOT.txt e ōrite ana, pēnei i photo.txt. Mēnā kāore he kōnae kuputuhi, ka whakamahia te default_caption; ka rahua te whakangungu mēnā kāore hoki taua taunoa.

taunoa 1000

Te tapeke o ngā hipanga whakangungu.

Arā atu training_type · default_caption · learning_rate
training_type taunoa balanced

Aronga whakangungu: ko 'content' e aro ana ki ngā ihirangi atahanga, ko 'style' e aro ana ki te kāhua atahanga, ā, ko 'balanced' e whakakotahi ana i ēnei e rua.

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

taunoa 0.0001

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

POST /run/z-image-trainer?wait=20 utu → $ 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"

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ō Z Image Trainer

Ka whakatikatika matatau i tētahi LoRA mā ō atahanga ake kua tukuna hei pūranga zip, he pai ake kia 10 neke atu, me tētahi kōnae kuputuhi tapanga mō ia atahanga, ki te taea. Whakaritea `training_type` ki content, kāhua, balanced rānei, `steps` mai i te 100 ki te 10000, me `learning_rate`. Mā `default_caption` e whakakī ngā tapanga ngaro. Ka whakaputa i ngā taumaha LoRA me tētahi kōnae whirihoranga.

Ngā tawhā

IngoaMomo TaunoaE whakaaetia ana Whakamārama
image_data_urle hiahiatia ana
Momostring
He URL o tētahi pūranga zip atahanga ōrite kāhua; e taunakitia ana kia 10 neke atu, ā, he pai ake ngā huinga nui ake. Mō ia takirua atahanga, ka taea te tuku tohutohu whakatika ki tētahi kōnae kuputuhi ROOT.txt e ōrite ana, pēnei i photo.txt. Mēnā kāore he kōnae kuputuhi, ka whakamahia te default_caption; ka rahua te whakangungu mēnā kāore hoki taua taunoa.
stepskōwhiringa
Momointeger
Taunoa1000
100 – 10,000
Te tapeke o ngā hipanga whakangungu.
learning_ratekōwhiringa
Momonumber
Taunoa0.0001
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.
training_typekōwhiringa
Momoenum
Taunoabalanced
contentstylebalanced
Aronga whakangungu: ko 'content' e aro ana ki ngā ihirangi atahanga, ko 'style' e aro ana ki te kāhua atahanga, ā, ko 'balanced' e whakakotahi ana i ēnei e rua.
e hiahiatia ana

Putanga

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"
  }
}
Ō 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.

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