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

Wan 2.5 Text to Image

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

ID โมเดล wan-25-preview/text-to-image
# 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-25-preview/text-to-image?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.05 50 เครดิต API เรียกใช้ในหน้านี้

รับคีย์ API

สร้างภาพจากข้อความด้วย Wan 2.5 รองรับพรอมต์ภาษาจีนและอังกฤษ และสร้างภาพได้สูงสุดสี่ภาพต่อการเรียกหนึ่งครั้ง

สร้างบน Doitong

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

ผลงานสาธารณะที่แสดง: 5
Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a... วิดีโอ

Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video must feel like a real spontaneous phone...

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone vide... วิดีโอ

**SORA 2 PROMPT — 20 seconds, vertical 9:16** Create a highly realistic UGC-style smartphone video inside a modern commercial airplane during a daytime flight. Natural cabin lighting, subtle handheld camera movement, authentic airplane ambience, realistic passengers and natural acting. The video...

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with na... วิดีโอ

Create a realistic cinematic 20-second video, filmed like a high-budget modern commercial with natural acting, realistic lighting and believable facial expressions. All dialogue is spoken naturally in French. **SCENE 1 — EXPENSIVE RESTAURANT, EVENING — 0–5 sec** A young man in his late 20s is...

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...

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, c... วิดีโอ

TITLE: Santa's Secret Christmas Selfie with Dasha 🎄 VIDEO FORMAT: 15–20 seconds, vertical 9:16, cinematic Christmas short film, high-quality realistic 3D animation. REFERENCE IMAGE — DASHA_001 Use the uploaded image as the exact character reference for Dasha. Preserve her recognizable face,...

สร้างคำขอ

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

•จำเป็น

คำสั่งสำหรับการสร้างรูปภาพ จำกัด 2000 อักขระ และต้องเขียนเป็นภาษาจีนหรือภาษาอังกฤษ

image_size ค่าเริ่มต้น square

ขนาดรูปภาพที่สร้าง โดยจำกัดจำนวนพิกเซลรวมไว้ที่ 768×768 ถึง 1440×1440 และอัตราส่วนภาพตั้งแต่ 1:4 ถึง 4:1 ระบุขนาดโดยตรงหรือเลือกค่าที่ตั้งชื่อไว้ เช่น 'square' หรือ 'landscape_16_9'

num_images ค่าเริ่มต้น 1

จำนวนรูปภาพที่สร้าง ตั้งแต่ 1 ถึง 4

ขั้นสูง negative_prompt · seed · enable_prompt_expansion · enable_safety_checker

พรอมต์เชิงลบที่ระบุเนื้อหาที่ไม่ต้องการ จำกัด 500 อักขระ

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

POST /run/wan-25-preview/text-to-image?wait=20 ใบเสนอราคา → $0.05
# 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-25-preview/text-to-image?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.5 Text to Image

สร้างภาพจาก `prompt` แบบข้อความความยาวสูงสุด 2000 อักขระในภาษาจีนหรืออังกฤษ `num_images` อยู่ในช่วง 1 ถึง 4 และ `image_size` รองรับพรีเซ็ตหรือขนาดที่ระบุเอง โดยจำนวนพิกเซลรวมอยู่ระหว่าง 768x768 ถึง 1440x1440 การขยายพรอมต์ ซึ่งเป็นการเขียนพรอมต์ใหม่ด้วย LLM เปิดใช้งานโดยค่าเริ่มต้น นอกจากนี้ยังมี `negative_prompt` และ `seed`

พารามิเตอร์

ส่งชื่อมาตรฐานหรือชื่อดั้งเดิมอย่างใดอย่างหนึ่งเท่านั้น ห้ามส่งทั้งสองชื่อ ชื่อมาตรฐาน

ชื่อประเภท ค่าเริ่มต้นค่าที่อนุญาต คำอธิบาย
promptจำเป็น
ประเภทstring
คำสั่งสำหรับการสร้างรูปภาพ จำกัด 2000 อักขระ และต้องเขียนเป็นภาษาจีนหรือภาษาอังกฤษ
negative_promptไม่บังคับ
ประเภทstring | null
พรอมต์เชิงลบที่ระบุเนื้อหาที่ไม่ต้องการ จำกัด 500 อักขระ
num_imagesไม่บังคับ num_outputs
ประเภทinteger
ค่าเริ่มต้น1
1 – 4
จำนวนรูปภาพที่สร้าง ตั้งแต่ 1 ถึง 4
image_sizeไม่บังคับ
ประเภทobject
ค่าเริ่มต้นsquare
square_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
ขนาดรูปภาพที่สร้าง โดยจำกัดจำนวนพิกเซลรวมไว้ที่ 768×768 ถึง 1440×1440 และอัตราส่วนภาพตั้งแต่ 1:4 ถึง 4:1 ระบุขนาดโดยตรงหรือเลือกค่าที่ตั้งชื่อไว้ เช่น 'square' หรือ 'landscape_16_9'
enable_prompt_expansionไม่บังคับ
ประเภทboolean
ค่าเริ่มต้นtrue
การเขียนพรอมต์ใหม่โดยใช้ LLM ซึ่งแลกกับเวลาในการประมวลผลที่เพิ่มขึ้นเพื่อให้ได้ผลลัพธ์ที่ดีขึ้นเมื่อใช้พรอมต์สั้น
seedไม่บังคับ
ประเภทinteger | null
Seed ที่ทำให้การสร้างได้ผลลัพธ์ซ้ำเดิม การตั้งค่าเป็น None จะสุ่มเลือก seed
enable_safety_checkerไม่บังคับ
ประเภทboolean
ค่าเริ่มต้นtrue
สวิตช์ตรวจสอบความปลอดภัย ซึ่งการตั้งค่าเป็นปิดต้องได้รับอนุญาตจากบัญชี หากไม่มีการอนุญาตดังกล่าว ทุกคำขอจะได้รับการตรวจสอบโดยไม่คำนึงถึงการตั้งค่า; true จะเปิดใช้ตัวตรวจสอบ
จำเป็น ชื่อมาตรฐาน ซึ่งรองรับเช่นกัน

เอาต์พุต

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-25-preview/text-to-image",
  "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": 50,
    "usd": "0.05",
    "charged": 50,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "images": [
      {
        "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,
        "width": 1024,
        "height": 768
      }
    ],
    "seeds": [
      42
    ],
    "actual_prompt": "A lone samurai standing on the edge of a cliff at twilight, overlooking a vast valley shrouded in mist. The sky burns with deep orange and purple hues from the setting sun, casting long, dramatic shadows. The samurai’s silhouette glows against the horizon, with their sword reflecting a glint of fading light. The overall style is hyper-realistic, cinematic, and moody, with dramatic contrast and atmospheric depth."
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "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 คือออบเจ็กต์ผลลัพธ์ของโมเดลเอง
ฟิลด์ของเอาต์พุต
images
array of object {url, content_type, file_name, file_size, width, height}รูปภาพที่โมเดลสร้าง
seeds
array of integerค่า Seed ที่ใช้สร้างรูปภาพแต่ละรายการ
actual_prompt
string | nullพรอมต์ที่ใช้จริงเมื่อเปิดใช้การเขียนใหม่

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

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