ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Wan 2.2 14B Image Trainer

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id wan-22-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/wan-22-image-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "training_data_url": "https://example.com/your-file.zip",
    "trigger_phrase": "example"
  }'

# 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"

ਉਦਾਹਰਨ ਵਰਗੀਆਂ ਫ਼ਾਈਲਾਂ: $4.50 4,500 API ਕ੍ਰੈਡਿਟ ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ ਚਲਾਉਣ ਤੋਂ ਪਹਿਲਾਂ ਮਾਪੀਆਂ ਜਾਂਦੀਆਂ ਹਨ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Alibaba ਟ੍ਰੇਨਿੰਗ #lora#personalization

ਆਪਣੀਆਂ ਤਸਵੀਰਾਂ ਉੱਤੇ ਕਿਸੇ ਵਿਸ਼ੇ ਜਾਂ ਸ਼ੈਲੀ ਲਈ Wan 2.2 14B LoRA ਨੂੰ ਟ੍ਰੇਨ ਕਰਦਾ ਹੈ ਅਤੇ ਘੱਟ ਅਤੇ ਵੱਧ ਨੋਇਜ਼ ਵਾਲੀਆਂ LoRA ਫਾਈਲਾਂ ਵਾਪਸ ਕਰਦਾ ਹੈ

Alibaba · ਫ਼ਾਈਲ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ

URL ਵਜੋਂ ਟ੍ਰੇਨਿੰਗ ਡੇਟਾ ਦਾ ਸਥਾਨ।

•ਲੋੜੀਂਦਾ

ਮਾਡਲ ਨੂੰ ਟ੍ਰਿਗਰ ਕਰਨ ਲਈ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਵਾਕਾਂਸ਼।

ਡਿਫ਼ਾਲਟ 1000

training ਕਦਮਾਂ ਦੀ ਕੁੱਲ ਗਿਣਤੀ।

ਉੱਨਤ learning_rate · include_synthetic_captions · use_face_detection · use_face_cropping · use_masks · is_style
ਡਿਫ਼ਾਲਟ 0.0007

ਟ੍ਰੇਨਿੰਗ ਦੌਰਾਨ ਸਿੱਖਣ ਦੀ ਦਰ।

POST /run/wan-22-image-trainer?wait=20 ਕੋਟ → $4.50
# 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/wan-22-image-trainer?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "training_data_url": "https://example.com/your-file.zip",
    "trigger_phrase": "example"
  }'

# 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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Wan 2.2 14B Image Trainer ਬਾਰੇ

`training_data_url` ਦੇ ਡੇਟਾਸੈੱਟ ਤੋਂ Wan 2.2 text-to-image ਲਈ LoRA ਨੂੰ ਫਾਈਨ-ਟਿਊਨ ਕਰਦਾ ਹੈ, ਜਿਸ ਦੀ ਪਛਾਣ ਲਾਜ਼ਮੀ `trigger_phrase` ਨਾਲ ਹੁੰਦੀ ਹੈ। `steps` 10 ਤੋਂ 6000 ਅਤੇ `learning_rate` 1e-6 ਤੋਂ 0.1 ਤੱਕ ਹੁੰਦੇ ਹਨ। ਚਿਹਰਾ ਪਛਾਣ, ਚਿਹਰਾ ਕ੍ਰੌਪਿੰਗ ਅਤੇ ਮਾਸਕ ਟੌਗਲ ਕੀਤੇ ਜਾ ਸਕਦੇ ਹਨ, ਅਤੇ `is_style` ਚਿਹਰੇ-ਵਿਸ਼ੇਸ਼ ਵਿਕਲਪ ਬੰਦ ਕਰਦਾ ਹੈ। ਆਉਟਪੁੱਟ ਵਿੱਚ ਇੱਕ ਕਨਫਿਗ ਫਾਈਲ ਅਤੇ ਘੱਟ ਨੋਇਜ਼ ਤੇ ਵੱਧ ਨੋਇਜ਼ ਵਾਲੀਆਂ ਵੱਖਰੀਆਂ LoRA ਫਾਈਲਾਂ ਸ਼ਾਮਲ ਹਨ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
training_data_urlਲੋੜੀਂਦਾ
ਕਿਸਮstring
URL ਵਜੋਂ ਟ੍ਰੇਨਿੰਗ ਡੇਟਾ ਦਾ ਸਥਾਨ।
trigger_phraseਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਮਾਡਲ ਨੂੰ ਟ੍ਰਿਗਰ ਕਰਨ ਲਈ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਵਾਕਾਂਸ਼।
include_synthetic_captionsਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਸਿੰਥੈਟਿਕ ਕੈਪਸ਼ਨਾਂ ਨੂੰ ਸ਼ਾਮਲ ਕਰਨ ਨੂੰ ਨਿਯੰਤਰਿਤ ਕਰਦਾ ਹੈ।
use_face_detectionਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਟ੍ਰੇਨਿੰਗ ਚਿੱਤਰਾਂ ਲਈ ਚਿਹਰਾ-ਕੇਂਦਰਿਤ ਰੀਸਾਈਜ਼ਿੰਗ ਟੌਗਲ: ਚਿਹਰਾ ਪਛਾਣ ਸਮਰੱਥ ਕਰਨ ਨਾਲ ਰੀਸਾਈਜ਼ਿੰਗ ਦੌਰਾਨ ਪਛਾਣੇ ਗਏ ਚਿਹਰੇ ਦਾ ਕੇਂਦਰ ਚਿੱਤਰ ਦਾ ਕੇਂਦਰ ਬਣ ਜਾਂਦਾ ਹੈ।
use_face_croppingਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਟ੍ਰੇਨਿੰਗ ਚਿੱਤਰਾਂ ਲਈ ਚਿਹਰਾ-ਕ੍ਰੌਪਿੰਗ ਟੌਗਲ, ਜੋ ਸਮਰੱਥ ਹੋਣ 'ਤੇ ਰੀਸਾਈਜ਼ਿੰਗ ਕਦਮ ਤੋਂ ਪਹਿਲਾਂ ਚਿਹਰੇ ਦੇ ਆਲੇ-ਦੁਆਲੇ ਕ੍ਰੌਪ ਜੋੜਦਾ ਹੈ।
use_masksਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
ਟ੍ਰੇਨਿੰਗ ਡੇਟਾ ਲਈ ਮਾਸਕ ਦੀ ਵਰਤੋਂ ਨੂੰ ਨਿਯੰਤਰਿਤ ਕਰਦਾ ਹੈ।
stepsਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ1000
10 – 6,000
training ਕਦਮਾਂ ਦੀ ਕੁੱਲ ਗਿਣਤੀ।
learning_rateਵਿਕਲਪਿਕ
ਕਿਸਮnumber
ਡਿਫ਼ਾਲਟ0.0007
0.000001 – 0.1
ਟ੍ਰੇਨਿੰਗ ਦੌਰਾਨ ਸਿੱਖਣ ਦੀ ਦਰ।
is_styleਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਟ੍ਰੇਨਿੰਗ ਲਈ ਸਟਾਈਲ-ਡੇਟਾ ਨਿਰਧਾਰਨ; ਇਸਨੂੰ true ਕਰਨ ਨਾਲ ਚਿਹਰਾ-ਵਿਸ਼ੇਸ਼ ਵਿਸ਼ੇਸ਼ਤਾਵਾਂ, ਜਿਨ੍ਹਾਂ ਵਿੱਚ ਮਾਸਕਿੰਗ ਅਤੇ ਚਿਹਰਾ ਪਛਾਣ ਸ਼ਾਮਲ ਹਨ, ਬੰਦ ਹੋ ਜਾਂਦੀਆਂ ਹਨ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-22-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": 4500,
    "usd": "4.50",
    "charged": 4500,
    "refunded": 0
  },
  "input": {
    "training_data_url": "https://example.com/your-file.zip",
    "trigger_phrase": "example"
  },
  "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
    },
    "high_noise_lora": {
      "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"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
diffusers_lora_file
object {url, content_type, file_name, file_size}ਘੱਟ ਸ਼ੋਰ ਲਈ LoRA ਫ਼ਾਈਲ।
high_noise_lora
object {url, content_type, file_name, file_size}ਵੱਧ ਸ਼ੋਰ ਲਈ LoRA ਫ਼ਾਈਲ।
config_file
object {url, content_type, file_name, file_size}ਟ੍ਰੇਨਿੰਗ ਤੋਂ ਬਾਅਦ ਇਨਫਰੈਂਸ ਐਂਡਪੋਇੰਟਾਂ ਨੂੰ ਸਮਰਥਨ ਦੇਣ ਵਾਲੀ ਕਨਫ਼ਿਗਰੇਸ਼ਨ ਫ਼ਾਈਲ।

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/wan-22-image-trainer.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt