ข้ามไปยังเนื้อหา

Wan-2.1 Text-to-Video

ผสานการทำงาน

ID โมเดล wan-t2v
# 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-t2v?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

คำขอนี้: $0.40 400 เครดิต API เรียกใช้ในหน้านี้

รับคีย์ API
Alibaba ข้อความเป็นวิดีโอ สูงสุด 720p #text-to-video#motion

Wan 2.1 text-to-video ที่ให้ผลลัพธ์ความละเอียด 480p ถึง 720p รองรับแนวตั้งหรือแนวนอน และมีโหมด turbo เป็นตัวเลือก

สร้างบน Doitong

ผลงานสาธารณะที่สร้างด้วย Wan 2.1 โดยชุมชน Doitong นำพรอมต์กลับมาใช้ได้ในคลิกเดียว

ผลงานสาธารณะที่แสดง: 2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... วิดีโอ

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кух... วิดีโอ

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кухне, мужчина — в комнате и прихожей. Атмосфера обычной советской семьи перед приходом гостей. Голоса: все персонажи говорят по-русски с естественным, выразительным одесским говором. Характерная...

สร้างคำขอ

ตัวควบคุมสร้างจากสคีมาของโมเดล โค้ดและราคาจะอัปเดตเมื่อคุณเปลี่ยนค่า

•จำเป็น

คำสั่งข้อความที่ใช้ควบคุมการสร้างวิดีโอ

resolution ค่าเริ่มต้น 720p

ความละเอียดวิดีโอเอาต์พุต: 480p, 580p หรือ 720p

aspect_ratio ค่าเริ่มต้น 16:9

อัตราส่วนภาพของวิดีโอเอาต์พุต ซึ่งเป็น 16:9 หรือ 9:16

ค่าเริ่มต้น 81

จำนวนเฟรมสำหรับการสร้าง ตั้งแต่ 81 ถึง 100 โดยรวมค่าขอบเขต

ขั้นสูง negative_prompt · frames_per_second · num_inference_steps · seed · enable_safety_checker · enable_prompt_expansion · turbo_mode
ค่าเริ่มต้น bright colors, overex...

พรอมต์เชิงลบที่ใช้เมื่อสร้างวิดีโอ

ค่าเริ่มต้น 16

อัตราเฟรมของวิดีโอที่สร้าง เป็นเฟรมต่อวินาที ตั้งแต่ 5 ถึง 24

ค่าเริ่มต้น 30

จำนวนขั้นตอนการสุ่มตัวอย่าง ซึ่งแลกเวลาในการประมวลผลที่นานขึ้นกับคุณภาพที่ดีขึ้นเมื่อเพิ่มจำนวน

Seed ที่ทำให้การสร้างได้ผลลัพธ์ซ้ำเดิม การตั้งค่าเป็น None จะสุ่มเลือก seed

POST /run/wan-t2v?wait=20 ใบเสนอราคา → $0.40
# 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-t2v?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

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

เรียกใช้คำขอนี้

คีย์ของคุณจะอยู่ในเบราว์เซอร์นี้ โดยส่งไปยัง Doitong API เท่านั้น และจะบันทึกใน localStorage ก็ต่อเมื่อคุณเลือกจดจำ รับคีย์ API

เกี่ยวกับ Wan-2.1 Text-to-Video

สร้างคลิปวิดีโอสั้นจาก `prompt` ข้อความ ความละเอียดเป็น 480p, 580p หรือ 720p และอัตราส่วนภาพเป็น 16:9 หรือ 9:16 `num_frames` อยู่ในช่วง 81 ถึง 100 และ `frames_per_second` อยู่ในช่วง 5 ถึง 24 นอกจากนี้ยังรองรับ `negative_prompt`, `seed`, การขยายพรอมต์ที่เป็นตัวเลือก และสวิตช์ `turbo_mode` เพื่อให้ประมวลผลเร็วขึ้น

พารามิเตอร์

ชื่อประเภท ค่าเริ่มต้นค่าที่อนุญาต คำอธิบาย
promptจำเป็น
ประเภทstring
คำสั่งข้อความที่ใช้ควบคุมการสร้างวิดีโอ
negative_promptไม่บังคับ
ประเภทstring
ค่าเริ่มต้นbright colors, overexposed, static, blurred details, subtitles, style, artwork, painting, picture, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still picture, cluttered background, three legs, many people in the background, walking backwards
พรอมต์เชิงลบที่ใช้เมื่อสร้างวิดีโอ
num_framesไม่บังคับ
ประเภทinteger | null
ค่าเริ่มต้น81
81 – 100
จำนวนเฟรมสำหรับการสร้าง ตั้งแต่ 81 ถึง 100 โดยรวมค่าขอบเขต
frames_per_secondไม่บังคับ
ประเภทinteger | null
ค่าเริ่มต้น16
5 – 24
อัตราเฟรมของวิดีโอที่สร้าง เป็นเฟรมต่อวินาที ตั้งแต่ 5 ถึง 24
seedไม่บังคับ
ประเภทinteger | null
Seed ที่ทำให้การสร้างได้ผลลัพธ์ซ้ำเดิม การตั้งค่าเป็น None จะสุ่มเลือก seed
resolutionไม่บังคับ
ประเภทenum
ค่าเริ่มต้น720p
480p580p720p
ความละเอียดวิดีโอเอาต์พุต: 480p, 580p หรือ 720p
aspect_ratioไม่บังคับ
ประเภทenum
ค่าเริ่มต้น16:9
9:1616:9
อัตราส่วนภาพของวิดีโอเอาต์พุต ซึ่งเป็น 16:9 หรือ 9:16
num_inference_stepsไม่บังคับ
ประเภทinteger
ค่าเริ่มต้น30
2 – 40
จำนวนขั้นตอนการสุ่มตัวอย่าง ซึ่งแลกเวลาในการประมวลผลที่นานขึ้นกับคุณภาพที่ดีขึ้นเมื่อเพิ่มจำนวน
enable_safety_checkerไม่บังคับ
ประเภทboolean
ค่าเริ่มต้นfalse
สวิตช์ตรวจสอบความปลอดภัย ซึ่งการตั้งค่าเป็นปิดต้องได้รับอนุญาตจากบัญชี หากไม่มีการอนุญาตดังกล่าว ทุกคำขอจะได้รับการตรวจสอบโดยไม่คำนึงถึงการตั้งค่า; true จะเปิดใช้ตัวตรวจสอบ
enable_prompt_expansionไม่บังคับ
ประเภทboolean
ค่าเริ่มต้นfalse
ควบคุมว่าจะเปิดใช้การขยายพรอมต์หรือไม่
turbo_modeไม่บังคับ
ประเภทboolean
ค่าเริ่มต้นfalse
ตัวเลือกการสร้างวิดีโอที่เร็วขึ้น เมื่อเปิดใช้จะลดเวลาในการสร้างโดยไม่ทำให้คุณภาพภาพลดลงอย่างเห็นได้ชัด
จำเป็น

เอาต์พุต

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-t2v",
  "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": 400,
    "usd": "0.40",
    "charged": 400,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "seed": 42
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "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 คือออบเจ็กต์ผลลัพธ์ของโมเดลเอง
ฟิลด์ของเอาต์พุต
video
object {url, content_type, file_name, file_size}ไฟล์วิดีโอที่สร้างขึ้น
seed
integerค่า Seed ที่ใช้ระหว่างการสร้าง

โมเดลเพิ่มเติม: ข้อความเป็นวิดีโอ

สำหรับเอเจนต์ AI: หน้า Markdown นี้อยู่ที่ https://doitong.com/th/developers/models/wan-t2v.md. โมเดลและคู่มือทั้งหมด: https://doitong.com/developers/llms.txt