Leum chun t-susbaint

Z Image Turbo Trainer V2

Amalaich

ID a’ mhodail z-image-turbo-trainer-v2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/z-image-turbo-trainer-v2?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Faidhlichean mar an eisimpleir: $1.70 1,700 creideasan API · ≈ ₽182.89 thèid na faidhlichean agad a thomhas ron ruith Ruith e air an duilleig seo

Faigh iuchair API
Alibaba Trèanadh Luath #lora#personalization#trainer

A’ trèanadh LoRA gnàthaichte airson Z Image Turbo bho zip de dh’ìomhaighean le captionan

Alibaba · Faidhle

Thèid a’ chiad toradh agad an-seo

Tog iarrtas gu h-ìosal agus ruith e leis an iuchair API agad. Tha na h-às-churan air an lethbhreacadh dhan stòradh againn, air an cumail gu bràth no 7 latha an-asgaidh.

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

URL de thasglann ZIP anns a bheil ìomhaighean in-chuir còmhla ri faidhlichean fo-thiotalan. Cleachd ROOT.EXT airson ainmean fhaidhlichean nan ìomhaighean, mar 001.jpg, agus ROOT.txt airson na fo-thiotalan co-fhreagarrach, mar 001.txt. Bidh ìomhaighean gun fhaidhle teacsa fo-thiotal a’ cleachdadh default_caption.

bun-roghainn 2000

Àireamh iomlan nan ceumannan trèanaidh.

Adhartach default_caption · learning_rate

Fo-thiotal a thèid a chleachdadh an àite fhaidhlichean fo-thiotal a tha a dhìth; le None bidh an dìth aca na mhearachd.

bun-roghainn 0.0005

Ìre ionnsachaidh trèanaidh.

POST /run/z-image-turbo-trainer-v2?wait=20 tuairmse → $1.70
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/z-image-turbo-trainer-v2?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.ru/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 Z Image Turbo Trainer V2

Dèan gleusadh mionaideach air LoRA leis an dàta agad fhèin. Thoir seachad `image_data_url`, zip de dh’ìomhaighean le faidhlichean caipsean .txt den aon ainm. Tha `steps` eadar 10 agus 40000 (bun-roghainn 2000), is e 0.0005 am `learning_rate` bun-roghainn, agus lìonaidh `default_caption` caipseanan a tha a dhìth. Às-chur faidhle cuideaman LoRA diffusers agus faidhle config.

Paramadairean

AinmSeòrsa Bun-roghainnCeadaichte Tuairisgeul
image_data_urlriatanach
Seòrsastring
URL de thasglann ZIP anns a bheil ìomhaighean in-chuir còmhla ri faidhlichean fo-thiotalan. Cleachd ROOT.EXT airson ainmean fhaidhlichean nan ìomhaighean, mar 001.jpg, agus ROOT.txt airson na fo-thiotalan co-fhreagarrach, mar 001.txt. Bidh ìomhaighean gun fhaidhle teacsa fo-thiotal a’ cleachdadh default_caption.
stepsroghainneil
Seòrsainteger
Bun-roghainn2000
10 – 40,000
Àireamh iomlan nan ceumannan trèanaidh.
default_captionroghainneil
Seòrsastring | null
Fo-thiotal a thèid a chleachdadh an àite fhaidhlichean fo-thiotal a tha a dhìth; le None bidh an dìth aca na mhearachd.
learning_rateroghainneil
Seòrsanumber
Bun-roghainn0.0005
Ìre ionnsachaidh trèanaidh.
riatanach

Toradh

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "z-image-turbo-trainer-v2",
  "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": 1700,
    "usd": "1.70",
    "charged": 1700,
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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
diffusers_lora_file
object {url, content_type, file_name, file_size}URL a’ comharrachadh cuideaman LoRA trèanaichte ann an cruth diffusers.
config_file
object {url, content_type, file_name, file_size}URL a’ comharrachadh faidhle rèiteachaidh a’ mhodail thrèanaichte.

Do riochdairean AI: tha an duilleag seo mar Markdown aig https://doitong.com/gd/developers/models/z-image-turbo-trainer-v2.md. Na modailean agus na treòraichean uile: https://doitong.com/developers/llms.txt