{
  "aboutHtml": "<p>Vidu Q2 สร้างวิดีโอจากคำบรรยายฉากผ่านโปรไฟล์ข้อความเป็นวิดีโอที่เลือกด้วย viduq2 อินพุตที่ต้องมีคือรหัสโมเดลตรงตามชื่อและพรอมป์ต์บรรยายฉาก ใช้กับแนวคิดผลิตภัณฑ์สั้น ๆ ภาพเปิดแนะนำสถานที่ หรือการกระทำของตัวละครที่สามารถอธิบายรูปลักษณ์และการเคลื่อนไหวเป็นคำพูดได้ เมธอดที่กำหนดไว้นี้เป็นข้อความเป็นวิดีโอ โดยคำอธิบายไม่ได้กำหนดโหมดภาพอ้างอิงหรือแก้ไขวิดีโอแยกให้กับตัวเลือกนี้</p><p>สร้างบรีฟจากลำดับการกระทำที่เห็น ระบุตัวแบบ สถานที่ การกระทำ ขนาดภาพ การเคลื่อนกล้อง และองค์ประกอบภาพสุดท้าย สำหรับแนวคิดผลิตภัณฑ์ ให้บรรยายวัตถุบนโต๊ะ แสงเคลื่อนผ่านวัสดุ และกล้องค่อย ๆ เข้าใกล้จนจบตรงรายละเอียดที่จำได้ สำหรับฉากสถานที่ ให้แสดงสภาพแวดล้อมก่อนเคลื่อนเข้าหาจุดสนใจ จัดการกระทำให้เหมาะกับความยาวคลิปที่เลือก เพื่อให้ฉากมีเวลาสำหรับตอนจบที่ต้องการ</p><p>พรอมป์ต์จำกัดที่ 2,000 ตัวอักษร ใส่ตัวแบบและการกระทำหลักก่อน แล้วเพิ่มแสง วัสดุ สภาพแวดล้อม และรายละเอียดกล้องที่เปลี่ยนผลลัพธ์ที่ต้องการ ระบุสไตล์ภาพไว้ในพรอมป์ต์ คู่มือเฉพาะ Q2 ระบุว่าพารามิเตอร์ style และ movement_amplitude ที่แยกไว้ไม่มีผลกับโมเดลนี้ ดังนั้นพรีเซ็ต general หรือ anime และตัวเลือกขนาดการเคลื่อนไหวจึงใช้แทนคำบรรยายฉากที่ชัดเจนไม่ได้</p><p>การตั้งค่าความยาวเฉพาะโมเดลรับจำนวนวินาทีเต็มตั้งแต่หนึ่งถึงสิบ ตัวเลือกความละเอียดเฉพาะ Q2 คือ 540p, 720p และ 1080p โดยค่าเริ่มต้นตามเอกสารคือ 720p เลือกความยาวและความละเอียดร่วมกันตามการกระทำและปลายทาง การเผยให้เห็นแบบสั้นกับการเคลื่อนไหวที่นานกว่าต้องใช้เวลาต่างกัน การเพิ่มความยาวที่ร้องขอควรเอื้อต่อลำดับภาพที่เห็น แทนการยืดบรีฟเดิมที่ไม่ได้เปลี่ยน ตรวจขนาดและความยาวจริงของคลิปที่ส่งกลับเมื่อเตรียมการวางชิ้นงานสุดท้าย</p><p>ตัวเลือก aspect_ratio ตามเอกสารคือ 16:9, 9:16, 3:4, 4:3 และ 1:1 โดยค่าเริ่มต้นคือ 16:9 คู่มือระบุชัดว่า 3:4 และ 4:3 ใช้กับตระกูล Q2 ได้ เลือกเฟรมก่อนสร้างและบรรยายองค์ประกอบภาพให้เหมาะ: ให้ตัวแบบหลักดูได้ชัดในภาพแนวตั้ง หรือใช้ความกว้างของเฟรมแนวนอนแสดงสถานที่รอบข้าง ให้มุมปิดชัดพอสำหรับหน้าเว็บ งานนำเสนอ หรือการจัดคำบรรยายในภายหลังตามที่ต้องการ</p><p>ฟิลด์ seed ควบคุมความแปรผัน การไม่ส่งค่าหรือส่ง 0 จะเลือกค่าสุ่ม ส่วนค่าที่ไม่ใช่ศูนย์จะเลือกตัวเลือกซีดคงที่ตามเอกสารสำหรับการสร้างซ้ำ เก็บซีดที่ส่งกลับไว้พร้อมพรอมป์ต์และการตั้งค่าเมื่อเปรียบเทียบเวอร์ชัน เอกสารของเมธอดเดียวกันยังระบุตัวควบคุม audio และ off_peak ไว้เฉพาะสำหรับโมเดล Q3 ตัวเลือก Q3 เหล่านี้ไม่ใช่ความสามารถที่กำหนดให้กับโปรไฟล์ Q2 นี้ จึงควรวางแผนคำขอตามอินพุตข้อความและผลลัพธ์วิดีโอที่เอกสารระบุ</p><p>การสร้างทำงานแบบอะซิงโครนัส เมื่อส่งคำขอจะได้ task_id และสถานะเริ่มต้น โดยงานที่เพิ่งสร้างใช้ created เก็บรหัสอ้างอิงงานนั้นไว้ระหว่างติดตามการประมวลผล การสอบถามผลลัพธ์ตามเอกสารใช้ state=success สำหรับผลลัพธ์สำเร็จและส่งอาร์เรย์ creations กลับมา แต่ละรายการมี URL วิดีโอใน creations[].url ให้บันทึกวิดีโอทุกชิ้นที่ส่งกลับ แทนการสมมติว่าทุกงานมีผลงานที่สร้างเพียงหนึ่งชิ้นเสมอ</p><p>เอกสารผลลัพธ์ยังรายงานความยาว fps และความกว้างกับความสูงของความละเอียดวิดีโอจริง เก็บค่าที่รายงานเหล่านี้ไว้พร้อมคลิปสำเร็จ แทนการถือว่าอัตราเฟรมหรือขนาดจากตัวอย่างเป็นข้อกำหนด Q2 แบบคงที่ การตอบกลับเมื่อสร้างงานมีค่า credits ควบคู่กับการตั้งค่าคำขอ เก็บข้อมูลกำกับงานที่รายงานและรหัสอ้างอิงของงานที่เสร็จแล้วไว้พร้อมผลลัพธ์ เพื่อให้วิดีโอแต่ละชิ้นยังเชื่อมโยงกับการตั้งค่าที่ใช้สร้าง</p><p>ตรวจลำดับทั้งหมดเทียบกับบรีฟต้นฉบับ: รูปลักษณ์ตัวแบบ รูปทรงวัตถุ ทิศทางการเคลื่อนไหว ความต่อเนื่องของกล้อง และมุมสุดท้ายที่ต้องการ สำหรับการแก้ไข ให้ระบุรายละเอียดที่ไม่ตรงบรีฟโดยเจาะจง และเก็บส่วนที่ได้ผลของฉากไว้ เก็บพรอมป์ต์ ตัวเลือกตรงตามชื่อ การตั้งค่า รหัสอ้างอิงงาน และวิดีโอสำเร็จไว้ด้วยกัน เพื่อให้การเปรียบเทียบภายหลังอิงชิ้นงานจริง</p>",
  "aboutText": "Vidu Q2 สร้างวิดีโอจากคำบรรยายฉากผ่านโปรไฟล์ข้อความเป็นวิดีโอที่เลือกด้วย viduq2 อินพุตที่ต้องมีคือรหัสโมเดลตรงตามชื่อและพรอมป์ต์บรรยายฉาก ใช้กับแนวคิดผลิตภัณฑ์สั้น ๆ ภาพเปิดแนะนำสถานที่ หรือการกระทำของตัวละครที่สามารถอธิบายรูปลักษณ์และการเคลื่อนไหวเป็นคำพูดได้ เมธอดที่กำหนดไว้นี้เป็นข้อความเป็นวิดีโอ โดยคำอธิบายไม่ได้กำหนดโหมดภาพอ้างอิงหรือแก้ไขวิดีโอแยกให้กับตัวเลือกนี้\n\nสร้างบรีฟจากลำดับการกระทำที่เห็น ระบุตัวแบบ สถานที่ การกระทำ ขนาดภาพ การเคลื่อนกล้อง และองค์ประกอบภาพสุดท้าย สำหรับแนวคิดผลิตภัณฑ์ ให้บรรยายวัตถุบนโต๊ะ แสงเคลื่อนผ่านวัสดุ และกล้องค่อย ๆ เข้าใกล้จนจบตรงรายละเอียดที่จำได้ สำหรับฉากสถานที่ ให้แสดงสภาพแวดล้อมก่อนเคลื่อนเข้าหาจุดสนใจ จัดการกระทำให้เหมาะกับความยาวคลิปที่เลือก เพื่อให้ฉากมีเวลาสำหรับตอนจบที่ต้องการ\n\nพรอมป์ต์จำกัดที่ 2,000 ตัวอักษร ใส่ตัวแบบและการกระทำหลักก่อน แล้วเพิ่มแสง วัสดุ สภาพแวดล้อม และรายละเอียดกล้องที่เปลี่ยนผลลัพธ์ที่ต้องการ ระบุสไตล์ภาพไว้ในพรอมป์ต์ คู่มือเฉพาะ Q2 ระบุว่าพารามิเตอร์ style และ movement_amplitude ที่แยกไว้ไม่มีผลกับโมเดลนี้ ดังนั้นพรีเซ็ต general หรือ anime และตัวเลือกขนาดการเคลื่อนไหวจึงใช้แทนคำบรรยายฉากที่ชัดเจนไม่ได้\n\nการตั้งค่าความยาวเฉพาะโมเดลรับจำนวนวินาทีเต็มตั้งแต่หนึ่งถึงสิบ ตัวเลือกความละเอียดเฉพาะ Q2 คือ 540p, 720p และ 1080p โดยค่าเริ่มต้นตามเอกสารคือ 720p เลือกความยาวและความละเอียดร่วมกันตามการกระทำและปลายทาง การเผยให้เห็นแบบสั้นกับการเคลื่อนไหวที่นานกว่าต้องใช้เวลาต่างกัน การเพิ่มความยาวที่ร้องขอควรเอื้อต่อลำดับภาพที่เห็น แทนการยืดบรีฟเดิมที่ไม่ได้เปลี่ยน ตรวจขนาดและความยาวจริงของคลิปที่ส่งกลับเมื่อเตรียมการวางชิ้นงานสุดท้าย\n\nตัวเลือก aspect_ratio ตามเอกสารคือ 16:9, 9:16, 3:4, 4:3 และ 1:1 โดยค่าเริ่มต้นคือ 16:9 คู่มือระบุชัดว่า 3:4 และ 4:3 ใช้กับตระกูล Q2 ได้ เลือกเฟรมก่อนสร้างและบรรยายองค์ประกอบภาพให้เหมาะ: ให้ตัวแบบหลักดูได้ชัดในภาพแนวตั้ง หรือใช้ความกว้างของเฟรมแนวนอนแสดงสถานที่รอบข้าง ให้มุมปิดชัดพอสำหรับหน้าเว็บ งานนำเสนอ หรือการจัดคำบรรยายในภายหลังตามที่ต้องการ\n\nฟิลด์ seed ควบคุมความแปรผัน การไม่ส่งค่าหรือส่ง 0 จะเลือกค่าสุ่ม ส่วนค่าที่ไม่ใช่ศูนย์จะเลือกตัวเลือกซีดคงที่ตามเอกสารสำหรับการสร้างซ้ำ เก็บซีดที่ส่งกลับไว้พร้อมพรอมป์ต์และการตั้งค่าเมื่อเปรียบเทียบเวอร์ชัน เอกสารของเมธอดเดียวกันยังระบุตัวควบคุม audio และ off_peak ไว้เฉพาะสำหรับโมเดล Q3 ตัวเลือก Q3 เหล่านี้ไม่ใช่ความสามารถที่กำหนดให้กับโปรไฟล์ Q2 นี้ จึงควรวางแผนคำขอตามอินพุตข้อความและผลลัพธ์วิดีโอที่เอกสารระบุ\n\nการสร้างทำงานแบบอะซิงโครนัส เมื่อส่งคำขอจะได้ task_id และสถานะเริ่มต้น โดยงานที่เพิ่งสร้างใช้ created เก็บรหัสอ้างอิงงานนั้นไว้ระหว่างติดตามการประมวลผล การสอบถามผลลัพธ์ตามเอกสารใช้ state=success สำหรับผลลัพธ์สำเร็จและส่งอาร์เรย์ creations กลับมา แต่ละรายการมี URL วิดีโอใน creations[].url ให้บันทึกวิดีโอทุกชิ้นที่ส่งกลับ แทนการสมมติว่าทุกงานมีผลงานที่สร้างเพียงหนึ่งชิ้นเสมอ\n\nเอกสารผลลัพธ์ยังรายงานความยาว fps และความกว้างกับความสูงของความละเอียดวิดีโอจริง เก็บค่าที่รายงานเหล่านี้ไว้พร้อมคลิปสำเร็จ แทนการถือว่าอัตราเฟรมหรือขนาดจากตัวอย่างเป็นข้อกำหนด Q2 แบบคงที่ การตอบกลับเมื่อสร้างงานมีค่า credits ควบคู่กับการตั้งค่าคำขอ เก็บข้อมูลกำกับงานที่รายงานและรหัสอ้างอิงของงานที่เสร็จแล้วไว้พร้อมผลลัพธ์ เพื่อให้วิดีโอแต่ละชิ้นยังเชื่อมโยงกับการตั้งค่าที่ใช้สร้าง\n\nตรวจลำดับทั้งหมดเทียบกับบรีฟต้นฉบับ: รูปลักษณ์ตัวแบบ รูปทรงวัตถุ ทิศทางการเคลื่อนไหว ความต่อเนื่องของกล้อง และมุมสุดท้ายที่ต้องการ สำหรับการแก้ไข ให้ระบุรายละเอียดที่ไม่ตรงบรีฟโดยเจาะจง และเก็บส่วนที่ได้ผลของฉากไว้ เก็บพรอมป์ต์ ตัวเลือกตรงตามชื่อ การตั้งค่า รหัสอ้างอิงงาน และวิดีโอสำเร็จไว้ด้วยกัน เพื่อให้การเปรียบเทียบภายหลังอิงชิ้นงานจริง",
  "editorialOverlay": {
    "copy_fields": null,
    "copy_sha256": null,
    "copy_source": null,
    "html_sha256": "fb7f5063be2a25ba39a6555a5821e92def6541ba13398f9bd46fa63744c8deb2",
    "module_sha256": "ee9dc1c50b1e6a8fb7fa062030fcb4646b9aaaeb08be513b723a5a92a7290f06",
    "raw_model_unchanged": true,
    "schema": "ailoot-native-model-editorial-v1"
  },
  "locale": "th",
  "methods": [
    {
      "html": "<div class=\"sheet-head\"><span class=\"mav\" aria-hidden=\"true\">•</span><h2 id=\"sheet-title\">Vidu: Q2 Text-to-Video</h2><button class=\"icon-btn\" type=\"button\" data-close-sheet aria-label=\"ปิด\">×</button></div><div class=\"idline\"><span>Vidu /</span><code>viduq2</code><button type=\"button\" id=\"copy-id\">คัดลอก ID</button></div><nav class=\"card-jump-nav\" aria-label=\"ส่วนต่าง ๆ ของการ์ดโมเดล\"><button type=\"button\" data-card-jump=\"overview\">เริ่มต้น</button><button type=\"button\" data-card-jump=\"methods\">อินพุตและเมธอด</button><button type=\"button\" data-card-jump=\"pricing\">ราคา</button><button type=\"button\" data-card-jump=\"examples\">ตัวอย่าง</button><button type=\"button\" data-card-jump=\"results\">ผลลัพธ์</button><button type=\"button\" data-card-jump=\"aliases\">ชื่ออื่น</button></nav><div class=\"card-method-tabs\" role=\"tablist\" aria-label=\"เมธอด API\"><button type=\"button\" role=\"tab\" tabindex=\"0\" aria-controls=\"card-method-content\" aria-selected=\"true\" id=\"card-method-tab-0\" data-card-method=\"Ultra|videos|/v1/videos|viduq2\">วิดีโอ</button></div><div id=\"card-method-content\" role=\"tabpanel\" aria-labelledby=\"card-method-tab-0\"><section class=\"card-section\" data-card-section=\"overview\"><h3 tabindex=\"-1\">เริ่มต้น</h3><p class=\"mdesc-full\">Vidu Q2 สร้างวิดีโอจากบรีฟฉากที่เป็นข้อความ โดยมีความยาว 1–10 วินาที ผลลัพธ์ 540p, 720p หรือ 1080p และอัตราส่วนภาพห้าแบบ โปรไฟล์ viduq2 นี้ใช้พรอมป์ต์กำหนดสไตล์และการเคลื่อนไหว และส่งผลลัพธ์ผ่านงานแบบอะซิงโครนัส</p><dl class=\"card-io\" data-card-io><div><dt>อินพุตที่รองรับ</dt><dd>ข้อความ</dd></div><div><dt>ผลลัพธ์</dt><dd>วิดีโอ</dd></div></dl><details class=\"card-about\"><summary>เกี่ยวกับโมเดล</summary><p class=\"note-s\" data-model-method-boundary>คำอธิบายนี้ครอบคลุมความสามารถของโมเดล อินพุต เอาต์พุต และตัวเลือกที่ใช้ได้ใน Ailoot แสดงด้านล่างตามเมธอดที่เลือก</p><div class=\"mabout\" id=\"m-about\"><p>Vidu Q2 สร้างวิดีโอจากคำบรรยายฉากผ่านโปรไฟล์ข้อความเป็นวิดีโอที่เลือกด้วย viduq2 อินพุตที่ต้องมีคือรหัสโมเดลตรงตามชื่อและพรอมป์ต์บรรยายฉาก ใช้กับแนวคิดผลิตภัณฑ์สั้น ๆ ภาพเปิดแนะนำสถานที่ หรือการกระทำของตัวละครที่สามารถอธิบายรูปลักษณ์และการเคลื่อนไหวเป็นคำพูดได้ เมธอดที่กำหนดไว้นี้เป็นข้อความเป็นวิดีโอ โดยคำอธิบายไม่ได้กำหนดโหมดภาพอ้างอิงหรือแก้ไขวิดีโอแยกให้กับตัวเลือกนี้</p><p>สร้างบรีฟจากลำดับการกระทำที่เห็น ระบุตัวแบบ สถานที่ การกระทำ ขนาดภาพ การเคลื่อนกล้อง และองค์ประกอบภาพสุดท้าย สำหรับแนวคิดผลิตภัณฑ์ ให้บรรยายวัตถุบนโต๊ะ แสงเคลื่อนผ่านวัสดุ และกล้องค่อย ๆ เข้าใกล้จนจบตรงรายละเอียดที่จำได้ สำหรับฉากสถานที่ ให้แสดงสภาพแวดล้อมก่อนเคลื่อนเข้าหาจุดสนใจ จัดการกระทำให้เหมาะกับความยาวคลิปที่เลือก เพื่อให้ฉากมีเวลาสำหรับตอนจบที่ต้องการ</p><p>พรอมป์ต์จำกัดที่ 2,000 ตัวอักษร ใส่ตัวแบบและการกระทำหลักก่อน แล้วเพิ่มแสง วัสดุ สภาพแวดล้อม และรายละเอียดกล้องที่เปลี่ยนผลลัพธ์ที่ต้องการ ระบุสไตล์ภาพไว้ในพรอมป์ต์ คู่มือเฉพาะ Q2 ระบุว่าพารามิเตอร์ style และ movement_amplitude ที่แยกไว้ไม่มีผลกับโมเดลนี้ ดังนั้นพรีเซ็ต general หรือ anime และตัวเลือกขนาดการเคลื่อนไหวจึงใช้แทนคำบรรยายฉากที่ชัดเจนไม่ได้</p><p>การตั้งค่าความยาวเฉพาะโมเดลรับจำนวนวินาทีเต็มตั้งแต่หนึ่งถึงสิบ ตัวเลือกความละเอียดเฉพาะ Q2 คือ 540p, 720p และ 1080p โดยค่าเริ่มต้นตามเอกสารคือ 720p เลือกความยาวและความละเอียดร่วมกันตามการกระทำและปลายทาง การเผยให้เห็นแบบสั้นกับการเคลื่อนไหวที่นานกว่าต้องใช้เวลาต่างกัน การเพิ่มความยาวที่ร้องขอควรเอื้อต่อลำดับภาพที่เห็น แทนการยืดบรีฟเดิมที่ไม่ได้เปลี่ยน ตรวจขนาดและความยาวจริงของคลิปที่ส่งกลับเมื่อเตรียมการวางชิ้นงานสุดท้าย</p><p>ตัวเลือก aspect_ratio ตามเอกสารคือ 16:9, 9:16, 3:4, 4:3 และ 1:1 โดยค่าเริ่มต้นคือ 16:9 คู่มือระบุชัดว่า 3:4 และ 4:3 ใช้กับตระกูล Q2 ได้ เลือกเฟรมก่อนสร้างและบรรยายองค์ประกอบภาพให้เหมาะ: ให้ตัวแบบหลักดูได้ชัดในภาพแนวตั้ง หรือใช้ความกว้างของเฟรมแนวนอนแสดงสถานที่รอบข้าง ให้มุมปิดชัดพอสำหรับหน้าเว็บ งานนำเสนอ หรือการจัดคำบรรยายในภายหลังตามที่ต้องการ</p><p>ฟิลด์ seed ควบคุมความแปรผัน การไม่ส่งค่าหรือส่ง 0 จะเลือกค่าสุ่ม ส่วนค่าที่ไม่ใช่ศูนย์จะเลือกตัวเลือกซีดคงที่ตามเอกสารสำหรับการสร้างซ้ำ เก็บซีดที่ส่งกลับไว้พร้อมพรอมป์ต์และการตั้งค่าเมื่อเปรียบเทียบเวอร์ชัน เอกสารของเมธอดเดียวกันยังระบุตัวควบคุม audio และ off_peak ไว้เฉพาะสำหรับโมเดล Q3 ตัวเลือก Q3 เหล่านี้ไม่ใช่ความสามารถที่กำหนดให้กับโปรไฟล์ Q2 นี้ จึงควรวางแผนคำขอตามอินพุตข้อความและผลลัพธ์วิดีโอที่เอกสารระบุ</p><p>การสร้างทำงานแบบอะซิงโครนัส เมื่อส่งคำขอจะได้ task_id และสถานะเริ่มต้น โดยงานที่เพิ่งสร้างใช้ created เก็บรหัสอ้างอิงงานนั้นไว้ระหว่างติดตามการประมวลผล การสอบถามผลลัพธ์ตามเอกสารใช้ state=success สำหรับผลลัพธ์สำเร็จและส่งอาร์เรย์ creations กลับมา แต่ละรายการมี URL วิดีโอใน creations[].url ให้บันทึกวิดีโอทุกชิ้นที่ส่งกลับ แทนการสมมติว่าทุกงานมีผลงานที่สร้างเพียงหนึ่งชิ้นเสมอ</p><p>เอกสารผลลัพธ์ยังรายงานความยาว fps และความกว้างกับความสูงของความละเอียดวิดีโอจริง เก็บค่าที่รายงานเหล่านี้ไว้พร้อมคลิปสำเร็จ แทนการถือว่าอัตราเฟรมหรือขนาดจากตัวอย่างเป็นข้อกำหนด Q2 แบบคงที่ การตอบกลับเมื่อสร้างงานมีค่า credits ควบคู่กับการตั้งค่าคำขอ เก็บข้อมูลกำกับงานที่รายงานและรหัสอ้างอิงของงานที่เสร็จแล้วไว้พร้อมผลลัพธ์ เพื่อให้วิดีโอแต่ละชิ้นยังเชื่อมโยงกับการตั้งค่าที่ใช้สร้าง</p><p>ตรวจลำดับทั้งหมดเทียบกับบรีฟต้นฉบับ: รูปลักษณ์ตัวแบบ รูปทรงวัตถุ ทิศทางการเคลื่อนไหว ความต่อเนื่องของกล้อง และมุมสุดท้ายที่ต้องการ สำหรับการแก้ไข ให้ระบุรายละเอียดที่ไม่ตรงบรีฟโดยเจาะจง และเก็บส่วนที่ได้ผลของฉากไว้ เก็บพรอมป์ต์ ตัวเลือกตรงตามชื่อ การตั้งค่า รหัสอ้างอิงงาน และวิดีโอสำเร็จไว้ด้วยกัน เพื่อให้การเปรียบเทียบภายหลังอิงชิ้นงานจริง</p></div></details></section><section class=\"card-section\" data-card-section=\"methods\"><h3 tabindex=\"-1\">ใช้งานได้ใน Ailoot · อินพุตและเมธอด</h3><details class=\"card-method\" open><summary><b>Ailoot Ultra · วิดีโอ</b> <code>POST /v1/videos</code></summary><dl class=\"method-capabilities\"><div><dt>ขาเข้า</dt><dd><code>text</code></dd></div><div><dt>ขาออก</dt><dd><code>video</code></dd></div></dl><div class=\"tw\" data-card-parameters data-typed-parameters><table><thead><tr><th>ฟิลด์</th><th>ประเภท</th><th>ข้อกำหนด</th><th>ค่าและข้อจำกัด</th><th>ค่าเริ่มต้น</th></tr></thead><tbody><tr data-parameter-availability=\"source_interface\"><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">model</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span><code>string</code></td><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>จำเป็น</td><td data-cell-label=\"ค่าและข้อจำกัด\"><span class=\"card-cell-label\">ค่าและข้อจำกัด</span><div>viduq2</div></td><td data-cell-label=\"ค่าเริ่มต้น\" data-default=\"unspecified\"><span class=\"card-cell-label\">ค่าเริ่มต้น</span>—</td></tr><tr data-parameter-availability=\"source_interface\"><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">prompt</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span><code>string</code></td><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>จำเป็น</td><td data-cell-label=\"ค่าและข้อจำกัด\"><span class=\"card-cell-label\">ค่าและข้อจำกัด</span><div>เงื่อนไข: อธิบายฉากที่จะสร้าง ขีดจำกัดที่ระบุในเอกสารคือ 2000 อักขระ Ailoot ตรวจสอบว่าสตริงไม่ว่างและคงข้อความไว้</div></td><td data-cell-label=\"ค่าเริ่มต้น\" data-default=\"unspecified\"><span class=\"card-cell-label\">ค่าเริ่มต้น</span>—</td></tr><tr data-parameter-availability=\"source_interface\"><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">duration</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span><code>integer</code></td><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>ไม่บังคับ</td><td data-cell-label=\"ค่าและข้อจำกัด\"><span class=\"card-cell-label\">ค่าและข้อจำกัด</span><div>ขั้นต่ำ: 1</div><div>สูงสุด: 10</div><div>เงื่อนไข: คำอธิบายเฉพาะโมเดล viduq2 ระบุช่วง 1–10 วินาทีเต็ม ไม่มีการระบุระยะเวลาเริ่มต้นเฉพาะโมเดลในเอกสาร</div><div>หน่วย: วินาที</div></td><td data-cell-label=\"ค่าเริ่มต้น\" data-default=\"unspecified\"><span class=\"card-cell-label\">ค่าเริ่มต้น</span>—</td></tr><tr data-parameter-availability=\"source_interface\"><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">seed</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span><code>string</code></td><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>ไม่บังคับ</td><td data-cell-label=\"ค่าและข้อจำกัด\"><span class=\"card-cell-label\">ค่าและข้อจำกัด</span><div>เงื่อนไข: ไม่ต้องระบุหรือส่งสตริง &quot;0&quot; เพื่อสุ่ม การระบุ seed ที่ไม่เป็นศูนย์จะเลือกพฤติกรรม seed แบบคงที่ตามเอกสาร ไม่ได้ระบุช่วงตัวเลข</div></td><td data-cell-label=\"ค่าเริ่มต้น\" data-default=\"unspecified\"><span class=\"card-cell-label\">ค่าเริ่มต้น</span>—</td></tr><tr data-parameter-availability=\"source_interface\"><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">aspect_ratio</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span><code>string</code></td><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>ไม่บังคับ</td><td data-cell-label=\"ค่าและข้อจำกัด\"><span class=\"card-cell-label\">ค่าและข้อจำกัด</span><div>16:9, 9:16, 3:4, 4:3, 1:1</div></td><td data-cell-label=\"ค่าเริ่มต้น\" data-default=\"known\"><span class=\"card-cell-label\">ค่าเริ่มต้น</span>16:9</td></tr><tr data-parameter-availability=\"source_interface\"><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">resolution</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span><code>string</code></td><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>ไม่บังคับ</td><td data-cell-label=\"ค่าและข้อจำกัด\"><span class=\"card-cell-label\">ค่าและข้อจำกัด</span><div>540p, 720p, 1080p</div><div>เงื่อนไข: รายการเฉพาะโมเดล viduq2 ระบุระดับเหล่านี้สำหรับ 1–10 วินาที enum และตารางที่ใช้ร่วมกันยังกล่าวถึง 360p แต่การนำมาใช้ขัดกับรายการนั้น จึงไม่ยืนยันไว้ที่นี่</div></td><td data-cell-label=\"ค่าเริ่มต้น\" data-default=\"known\"><span class=\"card-cell-label\">ค่าเริ่มต้น</span>720p</td></tr><tr data-parameter-availability=\"source_interface\"><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">style</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span><code>string</code></td><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>ไม่บังคับ</td><td data-cell-label=\"ค่าและข้อจำกัด\"><span class=\"card-cell-label\">ค่าและข้อจำกัด</span><div>general, anime</div><div>เงื่อนไข: คำขอที่ใช้ร่วมกันรับฟิลด์นี้ได้ แต่เอกสารระบุชัดเจนว่าไม่มีผลสำหรับ viduq2</div></td><td data-cell-label=\"ค่าเริ่มต้น\" data-default=\"known\"><span class=\"card-cell-label\">ค่าเริ่มต้น</span>general</td></tr><tr data-parameter-availability=\"source_interface\"><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">movement_amplitude</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span><code>string</code></td><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>ไม่บังคับ</td><td data-cell-label=\"ค่าและข้อจำกัด\"><span class=\"card-cell-label\">ค่าและข้อจำกัด</span><div>auto, small, medium, large</div><div>เงื่อนไข: คำขอที่ใช้ร่วมกันรับฟิลด์นี้ได้ แต่เอกสารระบุชัดเจนว่าไม่มีผลสำหรับโมเดล q2</div></td><td data-cell-label=\"ค่าเริ่มต้น\" data-default=\"known\"><span class=\"card-cell-label\">ค่าเริ่มต้น</span>auto</td></tr></tbody></table></div><details class=\"card-about\" data-material-combinations><summary>ชุดผสมของสื่ออินพุต</summary><p class=\"note-s\"><b></b></p></details><details class=\"note-s\" data-method-contract><summary>พารามิเตอร์และวงจรการทำงานของเมธอด</summary><div class=\"tw\" data-card-table=\"contract\"><table><thead><tr><th>พารามิเตอร์</th><th>ข้อกำหนด</th></tr></thead><tbody><tr><th data-cell-label=\"พารามิเตอร์\" scope=\"row\"><span class=\"card-cell-label\">พารามิเตอร์</span><code>content_type</code></th><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>application/json</td></tr><tr><th data-cell-label=\"พารามิเตอร์\" scope=\"row\"><span class=\"card-cell-label\">พารามิเตอร์</span><code>required</code></th><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>model, prompt</td></tr><tr><th data-cell-label=\"พารามิเตอร์\" scope=\"row\"><span class=\"card-cell-label\">พารามิเตอร์</span><code>optional</code></th><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>duration, seed, aspect_ratio, resolution, style, movement_amplitude</td></tr><tr><th data-cell-label=\"พารามิเตอร์\" scope=\"row\"><span class=\"card-cell-label\">พารามิเตอร์</span><code>material_types</code></th><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>text</td></tr><tr><th data-cell-label=\"พารามิเตอร์\" scope=\"row\"><span class=\"card-cell-label\">พารามิเตอร์</span><code>additional_properties</code></th><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>true</td></tr><tr><th data-cell-label=\"พารามิเตอร์\" scope=\"row\"><span class=\"card-cell-label\">พารามิเตอร์</span><code>validation_scope</code></th><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>Ailoot ตรวจสอบสตริง model/prompt ที่ไม่ว่าง ชนิดและขีดจำกัดของฟิลด์ที่ไม่บังคับด้านล่างเป็นข้อกำหนดคำขอตามเอกสาร ฟิลด์อื่นของคำขอจะถูกคงไว้สำหรับโมเดลที่เลือก</td></tr></tbody></table></div><p>ชื่ออื่นของเมธอด: <code>/v1/videos/generations</code></p><p>วงจรการทำงาน: <code>submit_once_poll_original</code></p><p class=\"note-s\"><code>GET /v1/videos/{request_id}</code></p><p class=\"note-s\"><code>GET /v1/videos/generations/{request_id}</code></p><p class=\"note-s\"><code>GET /v1/videos/{request_id}/content</code></p><p class=\"note-s\"><code>GET /v1/videos/generations/{request_id}/content</code></p><p class=\"note-s\">สร้างเพียงครั้งเดียวและเก็บ id สาธารณะกับ polling_url ที่ส่งกลับ</p><p class=\"note-s\">ตรวจสอบการดำเนินการเดิมเป็นระยะและอ่าน state การสำเร็จและผลลัพธ์ creations[].url ที่เป็นของคุณเป็นเกณฑ์ที่ยืนยันว่าเสร็จสมบูรณ์</p><p class=\"note-s\">ดาวน์โหลด URL วิดีโอที่เป็นของคุณทุกรายการที่ส่งกลับ อย่าอนุมานจำนวนผลลัพธ์ ระยะเวลา หรืออัตราเฟรมตายตัวจากตัวอย่าง</p></details></details></section><section class=\"card-section\" data-card-section=\"pricing\"><h3 tabindex=\"-1\">ราคา</h3><div class=\"card-result-process\" data-billing-basis><h5>วิธีคำนวณค่าบริการสุดท้าย</h5><p class=\"note-s\">อัตราที่แสดงใช้ประมาณการค่าใช้จ่ายก่อนการสร้างผลลัพธ์ ยอดเรียกเก็บสุดท้ายคำนวณจากค่าใช้จ่ายที่บันทึกไว้สำหรับการสร้างผลลัพธ์ครั้งเดิม ระยะเวลาของผลลัพธ์ที่วัดได้และปริมาณที่คาดการณ์ไว้ไม่ใช่ปริมาณสุดท้ายที่ใช้คิดค่าบริการ</p></div><div data-native-semantic-method=\"v1\" data-tariff-reference-only><p class=\"note-s\" data-rate-support-note>ข้อมูลอัตราราคาไม่ได้เพิ่มตัวเลือกคำขอ พารามิเตอร์ที่รองรับระบุไว้สำหรับเมธอดที่เลือก</p><dl data-price-conditions><dt>โหมดรวดเร็ว</dt><dd>ไม่ได้ระบุ <span class=\"note-s\">เมื่อเลือกโหมดรวดเร็ว</span></dd><dt>โหมดยืดหยุ่น</dt><dd>ไม่ได้ระบุ <span class=\"note-s\">เมื่อเลือกโหมด flex</span></dd><dt>ระดับการใช้เหตุผลสูงสุด</dt><dd>ไม่ได้ระบุ <span class=\"note-s\">เมื่อใช้การปรับตามค่าเริ่มต้น (default) สำหรับระดับการใช้เหตุผลสูงสุด</span></dd></dl></div><div data-declared-tariff-pricing><h4>อัตราประมาณการเพื่อเปรียบเทียบ</h4><h4>ราคาตามการตั้งค่า</h4><p class=\"note-s\">เทียบค่าบริการแต่ละรายการกับเงื่อนไขที่แสดง เลือกใช้อัตราเดียวสำหรับแต่ละชุดการตั้งค่าที่เป็นตัวเลือกทดแทนกัน</p><div class=\"tw\" data-pricing-profiles><table><thead><tr><th>การตั้งค่า</th><th>ตารางอัตราค่าบริการ</th><th>ปริมาณคาดการณ์</th><th>ค่าบริการ</th></tr></thead><tbody><tr><th data-cell-label=\"การตั้งค่า\" scope=\"row\"><span class=\"card-cell-label\">การตั้งค่า</span>อัตราค่าบริการโทเคนพื้นฐาน</th><td data-cell-label=\"ตารางอัตราค่าบริการ\"><span class=\"card-cell-label\">ตารางอัตราค่าบริการ</span>อัตราพื้นฐาน</td><td data-cell-label=\"ปริมาณคาดการณ์\"><span class=\"card-cell-label\">ปริมาณคาดการณ์</span>—</td><td data-cell-label=\"ค่าบริการ\"><span class=\"card-cell-label\">ค่าบริการ</span><div><span>ขาเข้า · โทเค็นอินพุต · ประมาณการเพื่อเปรียบเทียบเท่านั้น</span> <b>—</b> <span class=\"price-unit\">/ 1K โทเค็น</span></div><div><span>ขาออก · โทเค็นเอาต์พุต · ประมาณการเพื่อเปรียบเทียบเท่านั้น</span> <b>—</b> <span class=\"price-unit\">/ 1K โทเค็น</span></div><div><span>ขาเข้า · การอ่านแคช · ประมาณการเพื่อเปรียบเทียบเท่านั้น</span> <b>—</b> <span class=\"price-unit\">/ 1K โทเค็น</span></div><div><span>ขาเข้า · การเขียนแคช · ประมาณการเพื่อเปรียบเทียบเท่านั้น</span> <b>—</b> <span class=\"price-unit\">/ 1K โทเค็น</span></div><div><span>ขาเข้า · การเขียนแคช, 1 ชั่วโมง · ประมาณการเพื่อเปรียบเทียบเท่านั้น</span> <b>—</b> <span class=\"price-unit\">/ 1K โทเค็น</span></div></td></tr><tr><th data-cell-label=\"การตั้งค่า\" scope=\"row\"><span class=\"card-cell-label\">การตั้งค่า</span>ต้นทุนการสร้างโดยประมาณ</th><td data-cell-label=\"ตารางอัตราค่าบริการ\"><span class=\"card-cell-label\">ตารางอัตราค่าบริการ</span>—</td><td data-cell-label=\"ปริมาณคาดการณ์\"><span class=\"card-cell-label\">ปริมาณคาดการณ์</span>ค่าประมาณสำหรับการสร้างหนึ่งครั้ง</td><td data-cell-label=\"ค่าบริการ\"><span class=\"card-cell-label\">ค่าบริการ</span><div><span>ขาออก · ค่าใช้จ่ายในการสร้างโดยประมาณ · ประมาณการเพื่อเปรียบเทียบเท่านั้น</span> <b>$5.12</b> <span class=\"price-unit\">ประมาณการก่อนสร้าง</span></div><p class=\"note-s\">ค่าประมาณนี้ไม่ใช่ค่าใช้จ่ายเพิ่มเติมหรืออัตราคงที่สำหรับการสร้างผลลัพธ์ที่เสร็จสมบูรณ์แล้ว</p></td></tr></tbody></table></div></div><p class=\"note-s\">Ailoot กันยอดเงินประมาณการไว้ก่อนส่งคำขอ หลังได้ผลลัพธ์ จะคิดค่าบริการสุดท้ายตามการใช้งานที่วัดได้ การคิดค่าบริการแบบสตรีมใช้บันทึกการใช้งานสุดท้าย <a href=\"/docs/th/billing/reserve/\">วิธีกันยอดเงินและคิดค่าบริการสุดท้าย →</a></p></section><section class=\"card-section\" data-card-section=\"examples\"><h3 tabindex=\"-1\">ตัวอย่างคำขอ</h3><h4>Ailoot Ultra · วิดีโอ</h4><div class=\"code-group\"><div class=\"cg-bar\"><div class=\"cg-tabs\" role=\"tablist\" aria-label=\"ตัวเลือกโค้ด\"><button class=\"cg-tab\" id=\"model-code-2782-tab-0\" role=\"tab\" type=\"button\" aria-controls=\"model-code-2782-panel-0\" aria-selected=\"true\" tabindex=\"0\">curl · สร้างวิดีโอ</button><button class=\"cg-tab\" id=\"model-code-2782-tab-1\" role=\"tab\" type=\"button\" aria-controls=\"model-code-2782-panel-1\" aria-selected=\"false\" tabindex=\"-1\">curl · อ่านข้อมูลงานต้นฉบับ</button><button class=\"cg-tab\" id=\"model-code-2782-tab-2\" role=\"tab\" type=\"button\" aria-controls=\"model-code-2782-panel-2\" aria-selected=\"false\" tabindex=\"-1\">curl · ดาวน์โหลดวิดีโอที่เป็นของคุณทุกรายการ</button></div><div class=\"cg-tools\"><button class=\"cg-btn cg-copy\" type=\"button\" aria-label=\"คัดลอกโค้ด\"><svg class=\"cp\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.4\"><rect x=\"5.25\" y=\"5.25\" width=\"8.5\" height=\"8.5\" rx=\"1.75\"/><path d=\"M10.75 5.25V3.5a1.25 1.25 0 0 0-1.25-1.25H3.5A1.25 1.25 0 0 0 2.25 3.5v6a1.25 1.25 0 0 0 1.25 1.25h1.75\"/></svg><svg class=\"ok\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.4\"><path d=\"m3 8.5 3.25 3.25L13 5\"/></svg></button></div></div><div class=\"cg-body\"><div class=\"cg-pane\" id=\"model-code-2782-panel-0\" role=\"tabpanel\" aria-labelledby=\"model-code-2782-tab-0\"><pre data-lang=\"bash\"><code>set -eu\n: &quot;${AILOOT_API_KEY:?Set your Ailoot API key}&quot;\ncat &gt; request.json &lt;&lt;&#39;JSON_REQUEST&#39;\n{&quot;model&quot;:&quot;viduq2&quot;,&quot;prompt&quot;:&quot;In an ultra-realistic fashion photography style featuring light blue and pale amber tones, an astronaut in a spacesuit walks through the fog. The background consists of enchanting white and golden lights, creating a minimalist still life and an impressive panoramic scene.&quot;}\nJSON_REQUEST\ncurl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/videos \\\n  -H &quot;Authorization: Bearer $AILOOT_API_KEY&quot; -H &#39;Content-Type: application/json&#39; \\\n  --data-binary @request.json -D response-headers.txt -o result.json\n</code></pre></div><div class=\"cg-pane\" id=\"model-code-2782-panel-1\" role=\"tabpanel\" aria-labelledby=\"model-code-2782-tab-1\" hidden><pre data-lang=\"bash\"><code>set -eu\n: &quot;${AILOOT_API_KEY:?Set your Ailoot API key}&quot;\npython3 - &lt;&lt;&#39;PY_POLL&#39;\nimport json\nfrom pathlib import Path\nfrom urllib.parse import quote,urljoin,urlsplit\nr=json.loads(Path(&quot;result.json&quot;).read_text())\ni=r.get(&quot;id&quot;)\nif not isinstance(i,str) or not i:raise SystemExit(&quot;Keep original response/headers/id; do not resubmit creation.&quot;)\nu=urljoin(&quot;https://api.ailoot.ai&quot;,r.get(&quot;polling_url&quot;) or &quot;/v1/videos/&quot;+quote(i,safe=&quot;&quot;))\np=urlsplit(u)\nif p.scheme!=&quot;https&quot; or p.netloc!=&quot;api.ailoot.ai&quot; or not p.path.startswith(&quot;/v1/videos/&quot;):raise SystemExit(&quot;Use the actual Ailoot lookup path.&quot;)\nPath(&quot;poll-url.txt&quot;).write_text(u)\nPY_POLL\ncurl --fail-with-body --silent --show-error &quot;$(cat poll-url.txt)&quot; -H &quot;Authorization: Bearer $AILOOT_API_KEY&quot; -D status-headers.txt -o status.json\n</code></pre></div><div class=\"cg-pane\" id=\"model-code-2782-panel-2\" role=\"tabpanel\" aria-labelledby=\"model-code-2782-tab-2\" hidden><pre data-lang=\"bash\"><code>set -eu\npython3 - &lt;&lt;&#39;PY_ASSETS&#39;\nimport json\nfrom pathlib import Path\nfrom urllib.parse import urlsplit\nr=json.loads(Path(&quot;status.json&quot;).read_text())\nif r.get(&quot;state&quot;)!=&quot;success&quot;:raise SystemExit(&quot;Poll the same original job until its owned result is returned.&quot;)\ncreations=r.get(&quot;creations&quot;)\nif not isinstance(creations,list) or not creations:raise SystemExit(&quot;No completed video creations.&quot;)\nurls=[]\nfor item in creations:\n    value=item.get(&quot;url&quot;) if isinstance(item,dict) else None\n    values=[value] if isinstance(value,str) else value\n    if not isinstance(values,list) or not values:raise SystemExit(&quot;No completed video URL.&quot;)\n    for u in values:\n        if not isinstance(u,str):raise SystemExit(&quot;Invalid returned URL.&quot;)\n        p=urlsplit(u)\n        if p.scheme!=&quot;https&quot; or p.netloc!=&quot;api.ailoot.ai&quot; or not p.path.startswith(&quot;/v1/media/assets/&quot;) or not p.path.endswith(&quot;/content&quot;) or not p.query:raise SystemExit(&quot;Wait for the actual Ailoot-owned signed result.&quot;)\n        urls.append(u)\nPath(&quot;asset-urls.txt&quot;).write_text(&quot;\\n&quot;.join(urls)+&quot;\\n&quot;)\nPY_ASSETS\nindex=0\nwhile IFS= read -r asset_url; do\n  curl --fail-with-body --silent --show-error &quot;$asset_url&quot; -o &quot;video-${index}.bin&quot;\n  index=$((index + 1))\ndone &lt; asset-urls.txt\n</code></pre></div></div></div></section><section class=\"card-section\" data-card-section=\"results\"><h3 tabindex=\"-1\">รับและบันทึกผลลัพธ์</h3><h4>Ailoot Ultra · วิดีโอ</h4><p class=\"note-s\">JSON คง state ดั้งเดิมและอาร์เรย์ creations โดยเพิ่ม id/provider_task_id/polling_url สาธารณะ URL วิดีโอที่เลือกจะว่างก่อนเผยแพร่ และกลายเป็น URL ที่ลงลายเซ็นและเป็นของ Ailoot หลังเสร็จสมบูรณ์</p><ul class=\"card-result-paths\"><li><code>GET /v1/videos/{request_id}</code></li><li><code>GET /v1/videos/generations/{request_id}</code></li><li><code>GET /v1/videos/{request_id}/content</code></li><li><code>GET /v1/videos/generations/{request_id}/content</code></li></ul><div class=\"card-result-process\" data-all-results><h5>เก็บผลลัพธ์ที่เสร็จสมบูรณ์ทั้งหมด</h5><p class=\"note-s\">บันทึกวิดีโอที่สร้างเสร็จหรือไฟล์ที่ส่งกลับมาทุกไฟล์ และดึงไฟล์สื่อจากทุก URL ที่ส่งกลับมาจริง</p><p class=\"note-s\">ดาวน์โหลด URL จริงทุกรายการที่ส่งกลับใน creations[].url ดัชนีเนื้อหาระบุผลลัพธ์จริงที่ส่งกลับหนึ่งรายการ</p></div><div class=\"card-result-process\" data-unknown-recovery><h5>เมื่อต้องตรวจสอบการตอบกลับต้นฉบับ</h5><p class=\"note-s\">ข้อกำหนดที่ตรึงไว้ไม่ได้แจกแจงสถานะล้มเหลวขั้นสุดท้าย เก็บการตอบกลับ/ส่วนหัว/id เดิมและตรวจสอบการดำเนินการเดียวกันเมื่อพบสถานะที่ไม่รู้จักหรือข้อผิดพลาด result_pending_check ห้ามส่งคำขอสร้างที่ยังไม่ทราบผลซ้ำ</p></div><details class=\"card-about\" data-output-fields><summary>ฟิลด์การตอบกลับ</summary><div class=\"tw\" data-card-table=\"output\"><table><thead><tr><th>ฟิลด์</th><th>ประเภท</th><th>ความหมาย</th></tr></thead><tbody><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">id</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>string</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>ตัวระบุงานหรือการดำเนินการสาธารณะของ Ailoot ที่ส่งกลับ</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">provider_task_id</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>string</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>ตัวระบุงานเดิม แยกจาก id สาธารณะ</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">polling_url</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>string</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>พาธค้นหาข้อมูลของ Ailoot สำหรับงานเดิมที่ส่งกลับ</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">task_id</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>string when supplied</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>ตัวระบุเดิมที่มีอยู่ในการตอบกลับการสร้าง</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">state</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>string when supplied</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>สถานะงานดั้งเดิม: created สำหรับสถานะรอดำเนินการที่ตรึงไว้ และ success สำหรับการเสร็จสมบูรณ์</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">err_code</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>string when supplied</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>ข้อมูลวินิจฉัยงาน ข้อกำหนดที่บันทึกไว้ไม่ได้ประกาศรายการรหัสข้อผิดพลาดแบบแจกแจง</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">creations[].url</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>string|string[]</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>URL วิดีโอที่เสร็จสมบูรณ์แต่ละรายการที่เลือกจะถูกแทนด้วย URL ที่ลงลายเซ็นและเป็นของ Ailoot</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">creations[].video.duration</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>number when supplied</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>ระยะเวลาวิดีโอที่ส่งกลับ ตรวจสอบผลลัพธ์จริงที่เสร็จสมบูรณ์</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">creations[].video.fps</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>integer when supplied</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>อัตราเฟรมที่ส่งกลับ ไม่รับประกันอัตราเฟรมคงที่</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">creations[].video.resolution.width</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>integer when supplied</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>ความกว้างผลลัพธ์ที่ส่งกลับเป็นพิกเซล</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">creations[].video.resolution.height</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>integer when supplied</td><td data-cell-label=\"ความหมาย\"><span class=\"card-cell-label\">ความหมาย</span>ความสูงผลลัพธ์ที่ส่งกลับเป็นพิกเซล</td></tr></tbody></table></div></details><details class=\"card-about\" data-method-errors><summary>ข้อผิดพลาดและขั้นตอนถัดไป</summary><div class=\"tw\" data-card-table=\"errors\"><table><thead><tr><th>การตอบกลับ</th><th>เงื่อนไข</th><th>ขั้นตอนถัดไป</th></tr></thead><tbody><tr><th data-cell-label=\"การตอบกลับ\" scope=\"row\"><span class=\"card-cell-label\">การตอบกลับ</span>400 · <code>invalid_request_error</code></th><td data-cell-label=\"เงื่อนไข\"><span class=\"card-cell-label\">เงื่อนไข</span>JSON/โมเดลไม่ถูกต้อง ไม่ได้ระบุสตริงที่จำเป็นหรือสตริงว่าง หรือดัชนีเนื้อหาไม่ถูกต้อง</td><td data-cell-label=\"ขั้นตอนถัดไป\"><span class=\"card-cell-label\">ขั้นตอนถัดไป</span></td></tr><tr><th data-cell-label=\"การตอบกลับ\" scope=\"row\"><span class=\"card-cell-label\">การตอบกลับ</span>401 · <code>authentication_error</code></th><td data-cell-label=\"เงื่อนไข\"><span class=\"card-cell-label\">เงื่อนไข</span>คีย์ API ของ Ailoot ไม่ถูกต้อง</td><td data-cell-label=\"ขั้นตอนถัดไป\"><span class=\"card-cell-label\">ขั้นตอนถัดไป</span></td></tr><tr><th data-cell-label=\"การตอบกลับ\" scope=\"row\"><span class=\"card-cell-label\">การตอบกลับ</span>403 · <code>permission_error</code></th><td data-cell-label=\"เงื่อนไข\"><span class=\"card-cell-label\">เงื่อนไข</span>กลุ่มคีย์ API ไม่ได้รับอนุญาตให้ใช้เส้นทางสื่อนี้</td><td data-cell-label=\"ขั้นตอนถัดไป\"><span class=\"card-cell-label\">ขั้นตอนถัดไป</span></td></tr><tr><th data-cell-label=\"การตอบกลับ\" scope=\"row\"><span class=\"card-cell-label\">การตอบกลับ</span>404 · <code>not_found_error</code></th><td data-cell-label=\"เงื่อนไข\"><span class=\"card-cell-label\">เงื่อนไข</span>ไม่พบงานเดิมหรือผลลัพธ์ที่ขอ หรือไม่ได้เป็นของผู้ใช้/คีย์ API/กลุ่มเดียวกัน</td><td data-cell-label=\"ขั้นตอนถัดไป\"><span class=\"card-cell-label\">ขั้นตอนถัดไป</span></td></tr><tr><th data-cell-label=\"การตอบกลับ\" scope=\"row\"><span class=\"card-cell-label\">การตอบกลับ</span>502 · <code>result_pending_check</code></th><td data-cell-label=\"เงื่อนไข\"><span class=\"card-cell-label\">เงื่อนไข</span>การส่งคำขอหรือสถานะเดิมไม่สมบูรณ์หรือไม่สามารถตรวจสอบให้สอดคล้องกันได้ ให้เก็บ ID เดิมไว้และอย่าส่งคำขอซ้ำ</td><td data-cell-label=\"ขั้นตอนถัดไป\"><span class=\"card-cell-label\">ขั้นตอนถัดไป</span></td></tr><tr><th data-cell-label=\"การตอบกลับ\" scope=\"row\"><span class=\"card-cell-label\">การตอบกลับ</span>503 · <code>result_pending_check</code></th><td data-cell-label=\"เงื่อนไข\"><span class=\"card-cell-label\">เงื่อนไข</span>ยังอยู่ระหว่างตรวจสอบการผูกข้อมูล เส้นทาง หรือสื่อที่เป็นของคุณสำหรับการดำเนินการเดิม ให้ตรวจสอบการดำเนินการเดิมนั้นต่อ</td><td data-cell-label=\"ขั้นตอนถัดไป\"><span class=\"card-cell-label\">ขั้นตอนถัดไป</span></td></tr><tr><th data-cell-label=\"การตอบกลับ\" scope=\"row\"><span class=\"card-cell-label\">การตอบกลับ</span>503 · <code>server_error</code></th><td data-cell-label=\"เงื่อนไข\"><span class=\"card-cell-label\">เงื่อนไข</span>บริการสื่อหรือที่เก็บงานเดิมไม่พร้อมใช้งาน</td><td data-cell-label=\"ขั้นตอนถัดไป\"><span class=\"card-cell-label\">ขั้นตอนถัดไป</span></td></tr></tbody></table></div></details></section><section class=\"card-section\" data-card-section=\"aliases\"><h3 tabindex=\"-1\">ชื่ออื่น</h3><h4>ชื่ออื่นของโมเดล</h4><p class=\"note-s\"><span data-model-alias-route=\"Ultra\"><b>Ailoot Ultra</b> <a href=\"#m=viduq2&amp;route=Ultra&amp;caller=viduq2&amp;fmt=videos\"><code>viduq2</code></a></span></p><h4>ชื่อพาธเมธอดอื่น</h4><p class=\"note-s\"><code>/v1/videos/generations</code></p><h4>ID ที่เกี่ยวข้องสำหรับเรียกใช้โมเดล</h4><p class=\"note-s\"><a href=\"#m=viduq2&amp;route=Ultra&amp;caller=viduq2&amp;fmt=videos\"><code>viduq2</code></a></p></section></div>",
      "method_identity": {
        "effective_request_model_id": "viduq2",
        "fmt": "videos",
        "http": "POST",
        "path": "/v1/videos",
        "request_model_id": "viduq2",
        "route_label": "Ultra"
      },
      "method_key": "Ultra|videos|/v1/videos|viduq2",
      "ordinal": 0,
      "rawMethod": {
        "available": null,
        "billing_basis": {
          "basis": "original_invoice_usd",
          "description": "อัตราที่แสดงใช้ประมาณการค่าใช้จ่ายก่อนการสร้างผลลัพธ์ ยอดเรียกเก็บสุดท้ายคำนวณจากค่าใช้จ่ายที่บันทึกไว้สำหรับการสร้างผลลัพธ์ครั้งเดิม ระยะเวลาของผลลัพธ์ที่วัดได้และปริมาณที่คาดการณ์ไว้ไม่ใช่ปริมาณสุดท้ายที่ใช้คิดค่าบริการ",
          "forecast_quantity_is_estimate": true,
          "physical_output_is_billable_quantity": false,
          "version": "original_invoice_usd_v1"
        },
        "cache_read": null,
        "cache_write": null,
        "cache_write_1h": null,
        "contract": {
          "data": {
            "errors": [
              {
                "condition": "JSON/โมเดลไม่ถูกต้อง ไม่ได้ระบุสตริงที่จำเป็นหรือสตริงว่าง หรือดัชนีเนื้อหาไม่ถูกต้อง",
                "http_status": 400,
                "type": "invalid_request_error"
              },
              {
                "condition": "คีย์ API ของ Ailoot ไม่ถูกต้อง",
                "http_status": 401,
                "type": "authentication_error"
              },
              {
                "condition": "กลุ่มคีย์ API ไม่ได้รับอนุญาตให้ใช้เส้นทางสื่อนี้",
                "http_status": 403,
                "type": "permission_error"
              },
              {
                "condition": "ไม่พบงานเดิมหรือผลลัพธ์ที่ขอ หรือไม่ได้เป็นของผู้ใช้/คีย์ API/กลุ่มเดียวกัน",
                "http_status": 404,
                "type": "not_found_error"
              },
              {
                "condition": "การส่งคำขอหรือสถานะเดิมไม่สมบูรณ์หรือไม่สามารถตรวจสอบให้สอดคล้องกันได้ ให้เก็บ ID เดิมไว้และอย่าส่งคำขอซ้ำ",
                "http_status": 502,
                "type": "result_pending_check"
              },
              {
                "condition": "ยังอยู่ระหว่างตรวจสอบการผูกข้อมูล เส้นทาง หรือสื่อที่เป็นของคุณสำหรับการดำเนินการเดิม ให้ตรวจสอบการดำเนินการเดิมนั้นต่อ",
                "http_status": 503,
                "type": "result_pending_check"
              },
              {
                "condition": "บริการสื่อหรือที่เก็บงานเดิมไม่พร้อมใช้งาน",
                "http_status": 503,
                "type": "server_error"
              }
            ],
            "ignored_fields": [
              "style",
              "movement_amplitude"
            ],
            "lifecycle": {
              "cancel_endpoint": null,
              "completed_states": [
                "success"
              ],
              "content": [
                {
                  "http": "GET",
                  "path": "/v1/videos/{request_id}/content",
                  "query": {
                    "index": "actual output index; default 0"
                  }
                },
                {
                  "http": "GET",
                  "path": "/v1/videos/generations/{request_id}/content",
                  "query": {
                    "index": "actual output index; default 0"
                  }
                }
              ],
              "content_pending": "Original status JSON until publication.",
              "content_ready": {
                "http_status": 303,
                "location": "actual signed Ailoot-owned asset URL"
              },
              "create": {
                "http": "POST",
                "path": "/v1/videos"
              },
              "failed_states": [],
              "id_source": "Use the actual returned public id or X-Ailoot-Task-Id and polling_url. Keep task_id/provider_task_id separate; status lookup can retain the original task identity when the native fetch omits it.",
              "mode": "submit_once_poll_original",
              "owned_result": {
                "http": "GET",
                "path": "/v1/media/assets/{asset_id}"
              },
              "pending_states": [
                "created"
              ],
              "signed_asset_lifetime_seconds": 86400,
              "state_field": "state",
              "status": [
                {
                  "http": "GET",
                  "path": "/v1/videos/{request_id}"
                },
                {
                  "http": "GET",
                  "path": "/v1/videos/generations/{request_id}"
                }
              ],
              "submit_status": 200,
              "unknown": "ข้อกำหนดที่ตรึงไว้ไม่ได้แจกแจงสถานะล้มเหลวขั้นสุดท้าย เก็บการตอบกลับ/ส่วนหัว/id เดิมและตรวจสอบการดำเนินการเดียวกันเมื่อพบสถานะที่ไม่รู้จักหรือข้อผิดพลาด result_pending_check ห้ามส่งคำขอสร้างที่ยังไม่ทราบผลซ้ำ",
              "unknown_no_replay": true
            },
            "material_combinations": [
              [
                "text"
              ]
            ],
            "operation_modes": [
              "text_to_video"
            ],
            "outputs": {
              "additional_media_boundary": "Only creations[].url is selected for owned video delivery. No owned cover-image or callback result flow is established.",
              "all_results": "ดาวน์โหลด URL จริงทุกรายการที่ส่งกลับใน creations[].url ดัชนีเนื้อหาระบุผลลัพธ์จริงที่ส่งกลับหนึ่งรายการ",
              "every_actual_output": true,
              "family": "video",
              "fields": [
                {
                  "description": "ตัวระบุงานหรือการดำเนินการสาธารณะของ Ailoot ที่ส่งกลับ",
                  "name": "id",
                  "type": "string"
                },
                {
                  "description": "ตัวระบุงานเดิม แยกจาก id สาธารณะ",
                  "name": "provider_task_id",
                  "type": "string"
                },
                {
                  "description": "พาธค้นหาข้อมูลของ Ailoot สำหรับงานเดิมที่ส่งกลับ",
                  "name": "polling_url",
                  "type": "string"
                },
                {
                  "description": "ตัวระบุเดิมที่มีอยู่ในการตอบกลับการสร้าง",
                  "name": "task_id",
                  "type": "string when supplied"
                },
                {
                  "description": "สถานะงานดั้งเดิม: created สำหรับสถานะรอดำเนินการที่ตรึงไว้ และ success สำหรับการเสร็จสมบูรณ์",
                  "name": "state",
                  "type": "string when supplied"
                },
                {
                  "description": "ข้อมูลวินิจฉัยงาน ข้อกำหนดที่บันทึกไว้ไม่ได้ประกาศรายการรหัสข้อผิดพลาดแบบแจกแจง",
                  "name": "err_code",
                  "type": "string when supplied"
                },
                {
                  "description": "URL วิดีโอที่เสร็จสมบูรณ์แต่ละรายการที่เลือกจะถูกแทนด้วย URL ที่ลงลายเซ็นและเป็นของ Ailoot",
                  "name": "creations[].url",
                  "type": "string|string[]"
                },
                {
                  "description": "ระยะเวลาวิดีโอที่ส่งกลับ ตรวจสอบผลลัพธ์จริงที่เสร็จสมบูรณ์",
                  "name": "creations[].video.duration",
                  "type": "number when supplied"
                },
                {
                  "description": "อัตราเฟรมที่ส่งกลับ ไม่รับประกันอัตราเฟรมคงที่",
                  "name": "creations[].video.fps",
                  "type": "integer when supplied"
                },
                {
                  "description": "ความกว้างผลลัพธ์ที่ส่งกลับเป็นพิกเซล",
                  "name": "creations[].video.resolution.width",
                  "type": "integer when supplied"
                },
                {
                  "description": "ความสูงผลลัพธ์ที่ส่งกลับเป็นพิกเซล",
                  "name": "creations[].video.resolution.height",
                  "type": "integer when supplied"
                }
              ],
              "format": null,
              "maximum_outputs": null,
              "ownership": "Selected video outputs are copied, reopened and SHA256/length/positive-duration checked before publication.",
              "result": "JSON คง state ดั้งเดิมและอาร์เรย์ creations โดยเพิ่ม id/provider_task_id/polling_url สาธารณะ URL วิดีโอที่เลือกจะว่างก่อนเผยแพร่ และกลายเป็น URL ที่ลงลายเซ็นและเป็นของ Ailoot หลังเสร็จสมบูรณ์"
            },
            "parameters": [
              {
                "availability": "source_interface",
                "default": null,
                "default_known": false,
                "enum": [
                  "viduq2"
                ],
                "enum_known": true,
                "name": "model",
                "required": true,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "conditions": "อธิบายฉากที่จะสร้าง ขีดจำกัดที่ระบุในเอกสารคือ 2000 อักขระ Ailoot ตรวจสอบว่าสตริงไม่ว่างและคงข้อความไว้",
                "default": null,
                "default_known": false,
                "enum": null,
                "enum_known": false,
                "maxLength": 2000,
                "minLength": 1,
                "name": "prompt",
                "required": true,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "conditions": "คำอธิบายเฉพาะโมเดล viduq2 ระบุช่วง 1–10 วินาทีเต็ม ไม่มีการระบุระยะเวลาเริ่มต้นเฉพาะโมเดลในเอกสาร",
                "default": null,
                "default_known": false,
                "enum": null,
                "enum_known": false,
                "maximum": 10,
                "minimum": 1,
                "name": "duration",
                "required": false,
                "type": "integer",
                "unit": "วินาที"
              },
              {
                "availability": "source_interface",
                "conditions": "ไม่ต้องระบุหรือส่งสตริง \"0\" เพื่อสุ่ม การระบุ seed ที่ไม่เป็นศูนย์จะเลือกพฤติกรรม seed แบบคงที่ตามเอกสาร ไม่ได้ระบุช่วงตัวเลข",
                "default": null,
                "default_known": false,
                "enum": null,
                "enum_known": false,
                "name": "seed",
                "required": false,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "default": "16:9",
                "default_known": true,
                "enum": [
                  "16:9",
                  "9:16",
                  "3:4",
                  "4:3",
                  "1:1"
                ],
                "enum_known": true,
                "name": "aspect_ratio",
                "required": false,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "conditions": "รายการเฉพาะโมเดล viduq2 ระบุระดับเหล่านี้สำหรับ 1–10 วินาที enum และตารางที่ใช้ร่วมกันยังกล่าวถึง 360p แต่การนำมาใช้ขัดกับรายการนั้น จึงไม่ยืนยันไว้ที่นี่",
                "default": "720p",
                "default_known": true,
                "enum": [
                  "540p",
                  "720p",
                  "1080p"
                ],
                "enum_known": true,
                "name": "resolution",
                "required": false,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "conditions": "คำขอที่ใช้ร่วมกันรับฟิลด์นี้ได้ แต่เอกสารระบุชัดเจนว่าไม่มีผลสำหรับ viduq2",
                "default": "general",
                "default_known": true,
                "enum": [
                  "general",
                  "anime"
                ],
                "enum_known": true,
                "name": "style",
                "required": false,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "conditions": "คำขอที่ใช้ร่วมกันรับฟิลด์นี้ได้ แต่เอกสารระบุชัดเจนว่าไม่มีผลสำหรับโมเดล q2",
                "default": "auto",
                "default_known": true,
                "enum": [
                  "auto",
                  "small",
                  "medium",
                  "large"
                ],
                "enum_known": true,
                "name": "movement_amplitude",
                "required": false,
                "type": "string"
              }
            ],
            "profile_binding": "Literal viduq2 model with the documented Ailoot videos interface.",
            "request_schema": {
              "additionalProperties": true,
              "properties": {
                "aspect_ratio": {
                  "default": "16:9",
                  "enum": [
                    "16:9",
                    "9:16",
                    "3:4",
                    "4:3",
                    "1:1"
                  ],
                  "type": "string"
                },
                "duration": {
                  "maximum": 10,
                  "minimum": 1,
                  "type": "integer"
                },
                "model": {
                  "const": "viduq2",
                  "minLength": 1,
                  "type": "string"
                },
                "movement_amplitude": {
                  "default": "auto",
                  "enum": [
                    "auto",
                    "small",
                    "medium",
                    "large"
                  ],
                  "type": "string"
                },
                "prompt": {
                  "maxLength": 2000,
                  "minLength": 1,
                  "type": "string"
                },
                "resolution": {
                  "default": "720p",
                  "enum": [
                    "540p",
                    "720p",
                    "1080p"
                  ],
                  "type": "string"
                },
                "seed": {
                  "type": "string"
                },
                "style": {
                  "default": "general",
                  "enum": [
                    "general",
                    "anime"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "model",
                "prompt"
              ],
              "type": "object"
            },
            "source_ambiguities": [
              "The shared enum and table mention 360p, while the model-specific viduq2 resolution description lists 540p/720p/1080p. The method asserts only the explicit model-specific list.",
              "The shared duration example uses a quoted string despite an integer schema. The copyable viduq2 example omits that optional field; an explicit duration follows the documented integer type.",
              "No model-specific default duration, maximum output count, generated-file retention period, cancellation endpoint or terminal failure-state list is established by these saved documents.",
              "The documented fetch uses an id path parameter; the pinned declaration names that same substituted value task_id. The fetch example has no task_id field, which the current client accepts only by retaining the original task identity."
            ],
            "unsupported": [
              "Image-guided input, video editing and extension are not part of this text-to-video method.",
              "The audio and off_peak parameters are documented only for other model selectors, not viduq2.",
              "No live streaming, callback completion or owned cover-image result contract is established here."
            ]
          },
          "hints": [
            "สร้างเพียงครั้งเดียวและเก็บ id สาธารณะกับ polling_url ที่ส่งกลับ",
            "ตรวจสอบการดำเนินการเดิมเป็นระยะและอ่าน state การสำเร็จและผลลัพธ์ creations[].url ที่เป็นของคุณเป็นเกณฑ์ที่ยืนยันว่าเสร็จสมบูรณ์",
            "ดาวน์โหลด URL วิดีโอที่เป็นของคุณทุกรายการที่ส่งกลับ อย่าอนุมานจำนวนผลลัพธ์ ระยะเวลา หรืออัตราเฟรมตายตัวจากตัวอย่าง"
          ],
          "input": {
            "additional_properties": true,
            "content_type": "application/json",
            "material_types": [
              "text"
            ],
            "optional": [
              "duration",
              "seed",
              "aspect_ratio",
              "resolution",
              "style",
              "movement_amplitude"
            ],
            "required": [
              "model",
              "prompt"
            ],
            "validation_scope": "Ailoot ตรวจสอบสตริง model/prompt ที่ไม่ว่าง ชนิดและขีดจำกัดของฟิลด์ที่ไม่บังคับด้านล่างเป็นข้อกำหนดคำขอตามเอกสาร ฟิลด์อื่นของคำขอจะถูกคงไว้สำหรับโมเดลที่เลือก"
          },
          "lifecycle": {
            "cancel_endpoint": null,
            "completed_states": [
              "success"
            ],
            "content": [
              {
                "http": "GET",
                "path": "/v1/videos/{request_id}/content",
                "query": {
                  "index": "actual output index; default 0"
                }
              },
              {
                "http": "GET",
                "path": "/v1/videos/generations/{request_id}/content",
                "query": {
                  "index": "actual output index; default 0"
                }
              }
            ],
            "content_pending": "Original status JSON until publication.",
            "content_ready": {
              "http_status": 303,
              "location": "actual signed Ailoot-owned asset URL"
            },
            "create": {
              "http": "POST",
              "path": "/v1/videos"
            },
            "failed_states": [],
            "id_source": "Use the actual returned public id or X-Ailoot-Task-Id and polling_url. Keep task_id/provider_task_id separate; status lookup can retain the original task identity when the native fetch omits it.",
            "mode": "submit_once_poll_original",
            "owned_result": {
              "http": "GET",
              "path": "/v1/media/assets/{asset_id}"
            },
            "pending_states": [
              "created"
            ],
            "signed_asset_lifetime_seconds": 86400,
            "state_field": "state",
            "status": [
              {
                "http": "GET",
                "path": "/v1/videos/{request_id}"
              },
              {
                "http": "GET",
                "path": "/v1/videos/generations/{request_id}"
              }
            ],
            "submit_status": 200,
            "unknown": "The pinned declaration enumerates no terminal failure state. Preserve original response/headers/id and check that same operation for any unrecognized state or result_pending_check error; never resubmit an unknown creation.",
            "unknown_no_replay": true
          },
          "manufacturer_capability": {
            "documented_material_types": [
              "text"
            ]
          },
          "method": {
            "http": "POST",
            "path": "/v1/videos"
          },
          "method_aliases": [
            "/v1/videos/generations"
          ],
          "operation_modes": [
            "text_to_video"
          ],
          "output": {
            "additional_media_boundary": "Only creations[].url is selected for owned video delivery. No owned cover-image or callback result flow is established.",
            "all_results": "Download every actual returned URL in creations[].url; a content index identifies one real returned output.",
            "every_actual_output": true,
            "family": "video",
            "fields": [
              {
                "description": "Returned public Ailoot task or operation identifier.",
                "name": "id",
                "type": "string"
              },
              {
                "description": "Original task identifier, separate from the public id.",
                "name": "provider_task_id",
                "type": "string"
              },
              {
                "description": "Returned Ailoot lookup path for the original task.",
                "name": "polling_url",
                "type": "string"
              },
              {
                "description": "Original identifier present in the creation response.",
                "name": "task_id",
                "type": "string when supplied"
              },
              {
                "description": "Native task state: created for the pinned pending state and success for completion.",
                "name": "state",
                "type": "string when supplied"
              },
              {
                "description": "Task diagnostic; the saved specification declares no enumerated error-code list.",
                "name": "err_code",
                "type": "string when supplied"
              },
              {
                "description": "Every selected completed video URL is replaced with an Ailoot-owned signed URL.",
                "name": "creations[].url",
                "type": "string|string[]"
              },
              {
                "description": "Returned video duration; inspect the actual completed result.",
                "name": "creations[].video.duration",
                "type": "number when supplied"
              },
              {
                "description": "Returned frame rate; no fixed frame rate is promised.",
                "name": "creations[].video.fps",
                "type": "integer when supplied"
              },
              {
                "description": "Returned output width in pixels.",
                "name": "creations[].video.resolution.width",
                "type": "integer when supplied"
              },
              {
                "description": "Returned output height in pixels.",
                "name": "creations[].video.resolution.height",
                "type": "integer when supplied"
              }
            ],
            "format": null,
            "maximum_outputs": null,
            "ownership": "Selected video outputs are copied, reopened and SHA256/length/positive-duration checked before publication.",
            "result": "JSON retains the native state and creations array, with public id/provider_task_id/polling_url added. Selected video URLs are blank before publication and become Ailoot-owned signed URLs after completion."
          }
        },
        "ctx": null,
        "declared_pricing_profiles": [
          {
            "dimensions": {
              "regime": "base"
            },
            "label": "Base token rates",
            "units": [
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "input_price",
                "label": "Input tokens",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "output_price",
                "label": "Output tokens",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "output_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "output_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_read_price",
                "label": "Cache read",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "cached_input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "cached_input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_write_price",
                "label": "Cache write",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "generic_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "generic_cache_creation_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_write_1h_price",
                "label": "Cache write, 1 hour",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "one_hour_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "one_hour_cache_creation_token"
              }
            ]
          },
          {
            "basis": "ค่าประมาณนี้ไม่ใช่ค่าใช้จ่ายเพิ่มเติมหรืออัตราคงที่สำหรับการสร้างผลลัพธ์ที่เสร็จสมบูรณ์แล้ว",
            "dimensions": {
              "forecast_quantity": "one generation estimate"
            },
            "label": "ต้นทุนการสร้างโดยประมาณ",
            "units": [
              {
                "amount": "5.12",
                "amount_unit": "usd_per_exact_native_unit",
                "billing_input": false,
                "estimate_only": true,
                "key": "forecast_usd",
                "label": "Estimated generation cost",
                "native_amount_usd_per_unit": "5.12",
                "native_quantity": 1,
                "public_unit_label": "estimate before generation",
                "quantity": 1,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "request_estimate"
              }
            ]
          }
        ],
        "examples": [
          {
            "code": "set -eu\n: \"${AILOOT_API_KEY:?Set your Ailoot API key}\"\ncat > request.json <<'JSON_REQUEST'\n{\"model\":\"viduq2\",\"prompt\":\"In an ultra-realistic fashion photography style featuring light blue and pale amber tones, an astronaut in a spacesuit walks through the fog. The background consists of enchanting white and golden lights, creating a minimalist still life and an impressive panoramic scene.\"}\nJSON_REQUEST\ncurl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/videos \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" -H 'Content-Type: application/json' \\\n  --data-binary @request.json -D response-headers.txt -o result.json\n",
            "label": "curl · create video",
            "language": "bash"
          },
          {
            "code": "set -eu\n: \"${AILOOT_API_KEY:?Set your Ailoot API key}\"\npython3 - <<'PY_POLL'\nimport json\nfrom pathlib import Path\nfrom urllib.parse import quote,urljoin,urlsplit\nr=json.loads(Path(\"result.json\").read_text())\ni=r.get(\"id\")\nif not isinstance(i,str) or not i:raise SystemExit(\"Keep original response/headers/id; do not resubmit creation.\")\nu=urljoin(\"https://api.ailoot.ai\",r.get(\"polling_url\") or \"/v1/videos/\"+quote(i,safe=\"\"))\np=urlsplit(u)\nif p.scheme!=\"https\" or p.netloc!=\"api.ailoot.ai\" or not p.path.startswith(\"/v1/videos/\"):raise SystemExit(\"Use the actual Ailoot lookup path.\")\nPath(\"poll-url.txt\").write_text(u)\nPY_POLL\ncurl --fail-with-body --silent --show-error \"$(cat poll-url.txt)\" -H \"Authorization: Bearer $AILOOT_API_KEY\" -D status-headers.txt -o status.json\n",
            "label": "curl · read original task",
            "language": "bash"
          },
          {
            "code": "set -eu\npython3 - <<'PY_ASSETS'\nimport json\nfrom pathlib import Path\nfrom urllib.parse import urlsplit\nr=json.loads(Path(\"status.json\").read_text())\nif r.get(\"state\")!=\"success\":raise SystemExit(\"Poll the same original job until its owned result is returned.\")\ncreations=r.get(\"creations\")\nif not isinstance(creations,list) or not creations:raise SystemExit(\"No completed video creations.\")\nurls=[]\nfor item in creations:\n    value=item.get(\"url\") if isinstance(item,dict) else None\n    values=[value] if isinstance(value,str) else value\n    if not isinstance(values,list) or not values:raise SystemExit(\"No completed video URL.\")\n    for u in values:\n        if not isinstance(u,str):raise SystemExit(\"Invalid returned URL.\")\n        p=urlsplit(u)\n        if p.scheme!=\"https\" or p.netloc!=\"api.ailoot.ai\" or not p.path.startswith(\"/v1/media/assets/\") or not p.path.endswith(\"/content\") or not p.query:raise SystemExit(\"Wait for the actual Ailoot-owned signed result.\")\n        urls.append(u)\nPath(\"asset-urls.txt\").write_text(\"\\n\".join(urls)+\"\\n\")\nPY_ASSETS\nindex=0\nwhile IFS= read -r asset_url; do\n  curl --fail-with-body --silent --show-error \"$asset_url\" -o \"video-${index}.bin\"\n  index=$((index + 1))\ndone < asset-urls.txt\n",
            "label": "curl · download every owned video",
            "language": "bash"
          }
        ],
        "family": "openai",
        "fast_multiplier": null,
        "flex_multiplier": null,
        "fmt": "videos",
        "hints": [
          "Create once and retain the returned public id and polling_url.",
          "Poll the original operation and read state; success and an owned creations[].url result are the completion boundary.",
          "Download every returned owned video URL; do not infer a fixed output count, duration or frame rate from the example."
        ],
        "http": "POST",
        "in": null,
        "input": [
          "text"
        ],
        "label": "วิดีโอ",
        "max_out": null,
        "max_reasoning_effort_multiplier": null,
        "method_aliases": [
          "/v1/videos/generations"
        ],
        "out": null,
        "output": [
          "video"
        ],
        "path": "/v1/videos",
        "price_conditions": [
          {
            "label": "Fast mode",
            "value": "Not specified",
            "when": "When fast mode is selected"
          },
          {
            "label": "Flex mode",
            "value": "Not specified",
            "when": "When flex mode is selected"
          },
          {
            "label": "Maximum reasoning effort",
            "value": "Not specified",
            "when": "When maximum reasoning effort uses the default adjustment"
          }
        ],
        "pricing": {
          "billing_mode": "original_invoice_usd",
          "image_input_price": null,
          "image_output_price": null
        },
        "pricing_profiles": [
          {
            "dimensions": {
              "regime": "base"
            },
            "label": "Base token rates",
            "units": [
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "input_price",
                "label": "Input tokens",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "output_price",
                "label": "Output tokens",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "output_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "output_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_read_price",
                "label": "Cache read",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "cached_input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "cached_input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_write_price",
                "label": "Cache write",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "generic_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "generic_cache_creation_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_write_1h_price",
                "label": "Cache write, 1 hour",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "one_hour_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "one_hour_cache_creation_token"
              }
            ]
          },
          {
            "basis": "This estimate is not an additional charge or a fixed rate for the completed generation.",
            "dimensions": {
              "forecast_quantity": "one generation estimate"
            },
            "label": "Estimated generation cost",
            "units": [
              {
                "amount": "5.12",
                "amount_unit": "usd_per_exact_native_unit",
                "billing_input": false,
                "estimate_only": true,
                "key": "forecast_usd",
                "label": "Estimated generation cost",
                "native_amount_usd_per_unit": "5.12",
                "native_quantity": 1,
                "public_unit_label": "estimate before generation",
                "quantity": 1,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "request_estimate"
              }
            ]
          }
        ],
        "request_model_id": "viduq2",
        "route_label": "Ultra",
        "status_reads": [
          "GET /v1/videos/{request_id}",
          "GET /v1/videos/generations/{request_id}",
          "GET /v1/videos/{request_id}/content",
          "GET /v1/videos/generations/{request_id}/content"
        ],
        "tiers": [],
        "units": [
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": false,
            "estimate_only": true,
            "key": "input_price",
            "label": "Input tokens",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "input_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "input_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": false,
            "estimate_only": true,
            "key": "output_price",
            "label": "Output tokens",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "output_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "out",
            "unit": "output_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": false,
            "estimate_only": true,
            "key": "cache_read_price",
            "label": "Cache read",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "cached_input_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "cached_input_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": false,
            "estimate_only": true,
            "key": "cache_write_price",
            "label": "Cache write",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "generic_cache_creation_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "generic_cache_creation_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": false,
            "estimate_only": true,
            "key": "cache_write_1h_price",
            "label": "Cache write, 1 hour",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "one_hour_cache_creation_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "one_hour_cache_creation_token"
          },
          {
            "amount": "5.12",
            "amount_unit": "usd_per_exact_native_unit",
            "billing_input": false,
            "estimate_only": true,
            "key": "forecast_usd",
            "label": "Estimated generation cost",
            "native_amount_usd_per_unit": "5.12",
            "native_quantity": 1,
            "public_unit_label": "estimate before generation",
            "quantity": 1,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "out",
            "unit": "request_estimate"
          }
        ]
      }
    }
  ],
  "model_id": "viduq2",
  "nativeProvenance": {
    "input_facts_canonical_sha256": "f4fc621a09e869c23976a76ec1acecf4eda22d406a2a746eeae8523100229898",
    "input_html_sha256": "bb3d9e1ab72b66af47b8a717d636bef117f744b43b8a76ac457f678998060a30",
    "private_audit_sha256": "6c9f74e0b891c546d4e1c1356aebba954eb7c892a9f7a04388f3ca06fdbdfee1",
    "role": "historical-normalized-input-audit-hashes",
    "schema": "ailoot-native-model-provenance-v2"
  },
  "page": {
    "canonical": "https://ailoot.ai/models/th/viduq2/",
    "description": "Vidu Q2 สร้างวิดีโอจากบรีฟฉากที่เป็นข้อความ โดยมีความยาว 1–10 วินาที ผลลัพธ์ 540p, 720p หรือ 1080p และอัตราส่วนภาพห้าแบบ โปรไฟล์ viduq2 นี้ใช้พรอมป์ต์กำหนดสไตล์และการเคลื่อนไหว และส่งผลลัพธ์ผ่านงานแบบอะซิงโครนัส",
    "locale": "th",
    "md_url": "https://ailoot.ai/models/th/viduq2/index.md",
    "title": "Vidu: Q2 Text-to-Video — Ailoot",
    "url": "https://ailoot.ai/models/th/viduq2/"
  },
  "rawModel": {
    "about": "Vidu Q2 สร้างวิดีโอจากคำบรรยายฉากผ่านโปรไฟล์ข้อความเป็นวิดีโอที่เลือกด้วย viduq2 อินพุตที่ต้องมีคือรหัสโมเดลตรงตามชื่อและพรอมป์ต์บรรยายฉาก ใช้กับแนวคิดผลิตภัณฑ์สั้น ๆ ภาพเปิดแนะนำสถานที่ หรือการกระทำของตัวละครที่สามารถอธิบายรูปลักษณ์และการเคลื่อนไหวเป็นคำพูดได้ เมธอดที่กำหนดไว้นี้เป็นข้อความเป็นวิดีโอ โดยคำอธิบายไม่ได้กำหนดโหมดภาพอ้างอิงหรือแก้ไขวิดีโอแยกให้กับตัวเลือกนี้\n\nสร้างบรีฟจากลำดับการกระทำที่เห็น ระบุตัวแบบ สถานที่ การกระทำ ขนาดภาพ การเคลื่อนกล้อง และองค์ประกอบภาพสุดท้าย สำหรับแนวคิดผลิตภัณฑ์ ให้บรรยายวัตถุบนโต๊ะ แสงเคลื่อนผ่านวัสดุ และกล้องค่อย ๆ เข้าใกล้จนจบตรงรายละเอียดที่จำได้ สำหรับฉากสถานที่ ให้แสดงสภาพแวดล้อมก่อนเคลื่อนเข้าหาจุดสนใจ จัดการกระทำให้เหมาะกับความยาวคลิปที่เลือก เพื่อให้ฉากมีเวลาสำหรับตอนจบที่ต้องการ\n\nพรอมป์ต์จำกัดที่ 2,000 ตัวอักษร ใส่ตัวแบบและการกระทำหลักก่อน แล้วเพิ่มแสง วัสดุ สภาพแวดล้อม และรายละเอียดกล้องที่เปลี่ยนผลลัพธ์ที่ต้องการ ระบุสไตล์ภาพไว้ในพรอมป์ต์ คู่มือเฉพาะ Q2 ระบุว่าพารามิเตอร์ style และ movement_amplitude ที่แยกไว้ไม่มีผลกับโมเดลนี้ ดังนั้นพรีเซ็ต general หรือ anime และตัวเลือกขนาดการเคลื่อนไหวจึงใช้แทนคำบรรยายฉากที่ชัดเจนไม่ได้\n\nการตั้งค่าความยาวเฉพาะโมเดลรับจำนวนวินาทีเต็มตั้งแต่หนึ่งถึงสิบ ตัวเลือกความละเอียดเฉพาะ Q2 คือ 540p, 720p และ 1080p โดยค่าเริ่มต้นตามเอกสารคือ 720p เลือกความยาวและความละเอียดร่วมกันตามการกระทำและปลายทาง การเผยให้เห็นแบบสั้นกับการเคลื่อนไหวที่นานกว่าต้องใช้เวลาต่างกัน การเพิ่มความยาวที่ร้องขอควรเอื้อต่อลำดับภาพที่เห็น แทนการยืดบรีฟเดิมที่ไม่ได้เปลี่ยน ตรวจขนาดและความยาวจริงของคลิปที่ส่งกลับเมื่อเตรียมการวางชิ้นงานสุดท้าย\n\nตัวเลือก aspect_ratio ตามเอกสารคือ 16:9, 9:16, 3:4, 4:3 และ 1:1 โดยค่าเริ่มต้นคือ 16:9 คู่มือระบุชัดว่า 3:4 และ 4:3 ใช้กับตระกูล Q2 ได้ เลือกเฟรมก่อนสร้างและบรรยายองค์ประกอบภาพให้เหมาะ: ให้ตัวแบบหลักดูได้ชัดในภาพแนวตั้ง หรือใช้ความกว้างของเฟรมแนวนอนแสดงสถานที่รอบข้าง ให้มุมปิดชัดพอสำหรับหน้าเว็บ งานนำเสนอ หรือการจัดคำบรรยายในภายหลังตามที่ต้องการ\n\nฟิลด์ seed ควบคุมความแปรผัน การไม่ส่งค่าหรือส่ง 0 จะเลือกค่าสุ่ม ส่วนค่าที่ไม่ใช่ศูนย์จะเลือกตัวเลือกซีดคงที่ตามเอกสารสำหรับการสร้างซ้ำ เก็บซีดที่ส่งกลับไว้พร้อมพรอมป์ต์และการตั้งค่าเมื่อเปรียบเทียบเวอร์ชัน เอกสารของเมธอดเดียวกันยังระบุตัวควบคุม audio และ off_peak ไว้เฉพาะสำหรับโมเดล Q3 ตัวเลือก Q3 เหล่านี้ไม่ใช่ความสามารถที่กำหนดให้กับโปรไฟล์ Q2 นี้ จึงควรวางแผนคำขอตามอินพุตข้อความและผลลัพธ์วิดีโอที่เอกสารระบุ\n\nการสร้างทำงานแบบอะซิงโครนัส เมื่อส่งคำขอจะได้ task_id และสถานะเริ่มต้น โดยงานที่เพิ่งสร้างใช้ created เก็บรหัสอ้างอิงงานนั้นไว้ระหว่างติดตามการประมวลผล การสอบถามผลลัพธ์ตามเอกสารใช้ state=success สำหรับผลลัพธ์สำเร็จและส่งอาร์เรย์ creations กลับมา แต่ละรายการมี URL วิดีโอใน creations[].url ให้บันทึกวิดีโอทุกชิ้นที่ส่งกลับ แทนการสมมติว่าทุกงานมีผลงานที่สร้างเพียงหนึ่งชิ้นเสมอ\n\nเอกสารผลลัพธ์ยังรายงานความยาว fps และความกว้างกับความสูงของความละเอียดวิดีโอจริง เก็บค่าที่รายงานเหล่านี้ไว้พร้อมคลิปสำเร็จ แทนการถือว่าอัตราเฟรมหรือขนาดจากตัวอย่างเป็นข้อกำหนด Q2 แบบคงที่ การตอบกลับเมื่อสร้างงานมีค่า credits ควบคู่กับการตั้งค่าคำขอ เก็บข้อมูลกำกับงานที่รายงานและรหัสอ้างอิงของงานที่เสร็จแล้วไว้พร้อมผลลัพธ์ เพื่อให้วิดีโอแต่ละชิ้นยังเชื่อมโยงกับการตั้งค่าที่ใช้สร้าง\n\nตรวจลำดับทั้งหมดเทียบกับบรีฟต้นฉบับ: รูปลักษณ์ตัวแบบ รูปทรงวัตถุ ทิศทางการเคลื่อนไหว ความต่อเนื่องของกล้อง และมุมสุดท้ายที่ต้องการ สำหรับการแก้ไข ให้ระบุรายละเอียดที่ไม่ตรงบรีฟโดยเจาะจง และเก็บส่วนที่ได้ผลของฉากไว้ เก็บพรอมป์ต์ ตัวเลือกตรงตามชื่อ การตั้งค่า รหัสอ้างอิงงาน และวิดีโอสำเร็จไว้ด้วยกัน เพื่อให้การเปรียบเทียบภายหลังอิงชิ้นงานจริง",
    "alias_of": null,
    "aliases": [],
    "author": "Vidu",
    "capabilities": {
      "context_length": 0,
      "manufacturer_input": [
        "text"
      ],
      "manufacturer_output": [
        "video"
      ]
    },
    "card_routes": [
      {
        "label": "Ultra",
        "rates": [
          {
            "amount": "5.12",
            "amount_unit": "usd_per_exact_native_unit",
            "billing_input": false,
            "estimate_only": true,
            "key": "forecast_usd",
            "label": "Estimated generation cost",
            "native_amount_usd_per_unit": "5.12",
            "native_quantity": 1,
            "public_unit_label": "estimate before generation",
            "quantity": 1,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "out",
            "unit": "request_estimate"
          }
        ],
        "summary": "ดูราคาตามการกำหนดค่าแบบครบถ้วนในรายละเอียด"
      }
    ],
    "ctx": null,
    "display_name": "Vidu: Q2 Text-to-Video",
    "formats": [
      "videos"
    ],
    "id": "viduq2",
    "input": [
      "text"
    ],
    "kind": "video",
    "locale": "en",
    "max_out": null,
    "methods": [
      {
        "available": null,
        "billing_basis": {
          "basis": "original_invoice_usd",
          "description": "อัตราที่แสดงใช้ประมาณการค่าใช้จ่ายก่อนการสร้างผลลัพธ์ ยอดเรียกเก็บสุดท้ายคำนวณจากค่าใช้จ่ายที่บันทึกไว้สำหรับการสร้างผลลัพธ์ครั้งเดิม ระยะเวลาของผลลัพธ์ที่วัดได้และปริมาณที่คาดการณ์ไว้ไม่ใช่ปริมาณสุดท้ายที่ใช้คิดค่าบริการ",
          "forecast_quantity_is_estimate": true,
          "physical_output_is_billable_quantity": false,
          "version": "original_invoice_usd_v1"
        },
        "cache_read": null,
        "cache_write": null,
        "cache_write_1h": null,
        "contract": {
          "data": {
            "errors": [
              {
                "condition": "JSON/โมเดลไม่ถูกต้อง ไม่ได้ระบุสตริงที่จำเป็นหรือสตริงว่าง หรือดัชนีเนื้อหาไม่ถูกต้อง",
                "http_status": 400,
                "type": "invalid_request_error"
              },
              {
                "condition": "คีย์ API ของ Ailoot ไม่ถูกต้อง",
                "http_status": 401,
                "type": "authentication_error"
              },
              {
                "condition": "กลุ่มคีย์ API ไม่ได้รับอนุญาตให้ใช้เส้นทางสื่อนี้",
                "http_status": 403,
                "type": "permission_error"
              },
              {
                "condition": "ไม่พบงานเดิมหรือผลลัพธ์ที่ขอ หรือไม่ได้เป็นของผู้ใช้/คีย์ API/กลุ่มเดียวกัน",
                "http_status": 404,
                "type": "not_found_error"
              },
              {
                "condition": "การส่งคำขอหรือสถานะเดิมไม่สมบูรณ์หรือไม่สามารถตรวจสอบให้สอดคล้องกันได้ ให้เก็บ ID เดิมไว้และอย่าส่งคำขอซ้ำ",
                "http_status": 502,
                "type": "result_pending_check"
              },
              {
                "condition": "ยังอยู่ระหว่างตรวจสอบการผูกข้อมูล เส้นทาง หรือสื่อที่เป็นของคุณสำหรับการดำเนินการเดิม ให้ตรวจสอบการดำเนินการเดิมนั้นต่อ",
                "http_status": 503,
                "type": "result_pending_check"
              },
              {
                "condition": "บริการสื่อหรือที่เก็บงานเดิมไม่พร้อมใช้งาน",
                "http_status": 503,
                "type": "server_error"
              }
            ],
            "ignored_fields": [
              "style",
              "movement_amplitude"
            ],
            "lifecycle": {
              "cancel_endpoint": null,
              "completed_states": [
                "success"
              ],
              "content": [
                {
                  "http": "GET",
                  "path": "/v1/videos/{request_id}/content",
                  "query": {
                    "index": "actual output index; default 0"
                  }
                },
                {
                  "http": "GET",
                  "path": "/v1/videos/generations/{request_id}/content",
                  "query": {
                    "index": "actual output index; default 0"
                  }
                }
              ],
              "content_pending": "Original status JSON until publication.",
              "content_ready": {
                "http_status": 303,
                "location": "actual signed Ailoot-owned asset URL"
              },
              "create": {
                "http": "POST",
                "path": "/v1/videos"
              },
              "failed_states": [],
              "id_source": "Use the actual returned public id or X-Ailoot-Task-Id and polling_url. Keep task_id/provider_task_id separate; status lookup can retain the original task identity when the native fetch omits it.",
              "mode": "submit_once_poll_original",
              "owned_result": {
                "http": "GET",
                "path": "/v1/media/assets/{asset_id}"
              },
              "pending_states": [
                "created"
              ],
              "signed_asset_lifetime_seconds": 86400,
              "state_field": "state",
              "status": [
                {
                  "http": "GET",
                  "path": "/v1/videos/{request_id}"
                },
                {
                  "http": "GET",
                  "path": "/v1/videos/generations/{request_id}"
                }
              ],
              "submit_status": 200,
              "unknown": "ข้อกำหนดที่ตรึงไว้ไม่ได้แจกแจงสถานะล้มเหลวขั้นสุดท้าย เก็บการตอบกลับ/ส่วนหัว/id เดิมและตรวจสอบการดำเนินการเดียวกันเมื่อพบสถานะที่ไม่รู้จักหรือข้อผิดพลาด result_pending_check ห้ามส่งคำขอสร้างที่ยังไม่ทราบผลซ้ำ",
              "unknown_no_replay": true
            },
            "material_combinations": [
              [
                "text"
              ]
            ],
            "operation_modes": [
              "text_to_video"
            ],
            "outputs": {
              "additional_media_boundary": "Only creations[].url is selected for owned video delivery. No owned cover-image or callback result flow is established.",
              "all_results": "ดาวน์โหลด URL จริงทุกรายการที่ส่งกลับใน creations[].url ดัชนีเนื้อหาระบุผลลัพธ์จริงที่ส่งกลับหนึ่งรายการ",
              "every_actual_output": true,
              "family": "video",
              "fields": [
                {
                  "description": "ตัวระบุงานหรือการดำเนินการสาธารณะของ Ailoot ที่ส่งกลับ",
                  "name": "id",
                  "type": "string"
                },
                {
                  "description": "ตัวระบุงานเดิม แยกจาก id สาธารณะ",
                  "name": "provider_task_id",
                  "type": "string"
                },
                {
                  "description": "พาธค้นหาข้อมูลของ Ailoot สำหรับงานเดิมที่ส่งกลับ",
                  "name": "polling_url",
                  "type": "string"
                },
                {
                  "description": "ตัวระบุเดิมที่มีอยู่ในการตอบกลับการสร้าง",
                  "name": "task_id",
                  "type": "string when supplied"
                },
                {
                  "description": "สถานะงานดั้งเดิม: created สำหรับสถานะรอดำเนินการที่ตรึงไว้ และ success สำหรับการเสร็จสมบูรณ์",
                  "name": "state",
                  "type": "string when supplied"
                },
                {
                  "description": "ข้อมูลวินิจฉัยงาน ข้อกำหนดที่บันทึกไว้ไม่ได้ประกาศรายการรหัสข้อผิดพลาดแบบแจกแจง",
                  "name": "err_code",
                  "type": "string when supplied"
                },
                {
                  "description": "URL วิดีโอที่เสร็จสมบูรณ์แต่ละรายการที่เลือกจะถูกแทนด้วย URL ที่ลงลายเซ็นและเป็นของ Ailoot",
                  "name": "creations[].url",
                  "type": "string|string[]"
                },
                {
                  "description": "ระยะเวลาวิดีโอที่ส่งกลับ ตรวจสอบผลลัพธ์จริงที่เสร็จสมบูรณ์",
                  "name": "creations[].video.duration",
                  "type": "number when supplied"
                },
                {
                  "description": "อัตราเฟรมที่ส่งกลับ ไม่รับประกันอัตราเฟรมคงที่",
                  "name": "creations[].video.fps",
                  "type": "integer when supplied"
                },
                {
                  "description": "ความกว้างผลลัพธ์ที่ส่งกลับเป็นพิกเซล",
                  "name": "creations[].video.resolution.width",
                  "type": "integer when supplied"
                },
                {
                  "description": "ความสูงผลลัพธ์ที่ส่งกลับเป็นพิกเซล",
                  "name": "creations[].video.resolution.height",
                  "type": "integer when supplied"
                }
              ],
              "format": null,
              "maximum_outputs": null,
              "ownership": "Selected video outputs are copied, reopened and SHA256/length/positive-duration checked before publication.",
              "result": "JSON คง state ดั้งเดิมและอาร์เรย์ creations โดยเพิ่ม id/provider_task_id/polling_url สาธารณะ URL วิดีโอที่เลือกจะว่างก่อนเผยแพร่ และกลายเป็น URL ที่ลงลายเซ็นและเป็นของ Ailoot หลังเสร็จสมบูรณ์"
            },
            "parameters": [
              {
                "availability": "source_interface",
                "default": null,
                "default_known": false,
                "enum": [
                  "viduq2"
                ],
                "enum_known": true,
                "name": "model",
                "required": true,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "conditions": "อธิบายฉากที่จะสร้าง ขีดจำกัดที่ระบุในเอกสารคือ 2000 อักขระ Ailoot ตรวจสอบว่าสตริงไม่ว่างและคงข้อความไว้",
                "default": null,
                "default_known": false,
                "enum": null,
                "enum_known": false,
                "maxLength": 2000,
                "minLength": 1,
                "name": "prompt",
                "required": true,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "conditions": "คำอธิบายเฉพาะโมเดล viduq2 ระบุช่วง 1–10 วินาทีเต็ม ไม่มีการระบุระยะเวลาเริ่มต้นเฉพาะโมเดลในเอกสาร",
                "default": null,
                "default_known": false,
                "enum": null,
                "enum_known": false,
                "maximum": 10,
                "minimum": 1,
                "name": "duration",
                "required": false,
                "type": "integer",
                "unit": "วินาที"
              },
              {
                "availability": "source_interface",
                "conditions": "ไม่ต้องระบุหรือส่งสตริง \"0\" เพื่อสุ่ม การระบุ seed ที่ไม่เป็นศูนย์จะเลือกพฤติกรรม seed แบบคงที่ตามเอกสาร ไม่ได้ระบุช่วงตัวเลข",
                "default": null,
                "default_known": false,
                "enum": null,
                "enum_known": false,
                "name": "seed",
                "required": false,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "default": "16:9",
                "default_known": true,
                "enum": [
                  "16:9",
                  "9:16",
                  "3:4",
                  "4:3",
                  "1:1"
                ],
                "enum_known": true,
                "name": "aspect_ratio",
                "required": false,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "conditions": "รายการเฉพาะโมเดล viduq2 ระบุระดับเหล่านี้สำหรับ 1–10 วินาที enum และตารางที่ใช้ร่วมกันยังกล่าวถึง 360p แต่การนำมาใช้ขัดกับรายการนั้น จึงไม่ยืนยันไว้ที่นี่",
                "default": "720p",
                "default_known": true,
                "enum": [
                  "540p",
                  "720p",
                  "1080p"
                ],
                "enum_known": true,
                "name": "resolution",
                "required": false,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "conditions": "คำขอที่ใช้ร่วมกันรับฟิลด์นี้ได้ แต่เอกสารระบุชัดเจนว่าไม่มีผลสำหรับ viduq2",
                "default": "general",
                "default_known": true,
                "enum": [
                  "general",
                  "anime"
                ],
                "enum_known": true,
                "name": "style",
                "required": false,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "conditions": "คำขอที่ใช้ร่วมกันรับฟิลด์นี้ได้ แต่เอกสารระบุชัดเจนว่าไม่มีผลสำหรับโมเดล q2",
                "default": "auto",
                "default_known": true,
                "enum": [
                  "auto",
                  "small",
                  "medium",
                  "large"
                ],
                "enum_known": true,
                "name": "movement_amplitude",
                "required": false,
                "type": "string"
              }
            ],
            "profile_binding": "Literal viduq2 model with the documented Ailoot videos interface.",
            "request_schema": {
              "additionalProperties": true,
              "properties": {
                "aspect_ratio": {
                  "default": "16:9",
                  "enum": [
                    "16:9",
                    "9:16",
                    "3:4",
                    "4:3",
                    "1:1"
                  ],
                  "type": "string"
                },
                "duration": {
                  "maximum": 10,
                  "minimum": 1,
                  "type": "integer"
                },
                "model": {
                  "const": "viduq2",
                  "minLength": 1,
                  "type": "string"
                },
                "movement_amplitude": {
                  "default": "auto",
                  "enum": [
                    "auto",
                    "small",
                    "medium",
                    "large"
                  ],
                  "type": "string"
                },
                "prompt": {
                  "maxLength": 2000,
                  "minLength": 1,
                  "type": "string"
                },
                "resolution": {
                  "default": "720p",
                  "enum": [
                    "540p",
                    "720p",
                    "1080p"
                  ],
                  "type": "string"
                },
                "seed": {
                  "type": "string"
                },
                "style": {
                  "default": "general",
                  "enum": [
                    "general",
                    "anime"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "model",
                "prompt"
              ],
              "type": "object"
            },
            "source_ambiguities": [
              "The shared enum and table mention 360p, while the model-specific viduq2 resolution description lists 540p/720p/1080p. The method asserts only the explicit model-specific list.",
              "The shared duration example uses a quoted string despite an integer schema. The copyable viduq2 example omits that optional field; an explicit duration follows the documented integer type.",
              "No model-specific default duration, maximum output count, generated-file retention period, cancellation endpoint or terminal failure-state list is established by these saved documents.",
              "The documented fetch uses an id path parameter; the pinned declaration names that same substituted value task_id. The fetch example has no task_id field, which the current client accepts only by retaining the original task identity."
            ],
            "unsupported": [
              "Image-guided input, video editing and extension are not part of this text-to-video method.",
              "The audio and off_peak parameters are documented only for other model selectors, not viduq2.",
              "No live streaming, callback completion or owned cover-image result contract is established here."
            ]
          },
          "hints": [
            "สร้างเพียงครั้งเดียวและเก็บ id สาธารณะกับ polling_url ที่ส่งกลับ",
            "ตรวจสอบการดำเนินการเดิมเป็นระยะและอ่าน state การสำเร็จและผลลัพธ์ creations[].url ที่เป็นของคุณเป็นเกณฑ์ที่ยืนยันว่าเสร็จสมบูรณ์",
            "ดาวน์โหลด URL วิดีโอที่เป็นของคุณทุกรายการที่ส่งกลับ อย่าอนุมานจำนวนผลลัพธ์ ระยะเวลา หรืออัตราเฟรมตายตัวจากตัวอย่าง"
          ],
          "input": {
            "additional_properties": true,
            "content_type": "application/json",
            "material_types": [
              "text"
            ],
            "optional": [
              "duration",
              "seed",
              "aspect_ratio",
              "resolution",
              "style",
              "movement_amplitude"
            ],
            "required": [
              "model",
              "prompt"
            ],
            "validation_scope": "Ailoot ตรวจสอบสตริง model/prompt ที่ไม่ว่าง ชนิดและขีดจำกัดของฟิลด์ที่ไม่บังคับด้านล่างเป็นข้อกำหนดคำขอตามเอกสาร ฟิลด์อื่นของคำขอจะถูกคงไว้สำหรับโมเดลที่เลือก"
          },
          "lifecycle": {
            "cancel_endpoint": null,
            "completed_states": [
              "success"
            ],
            "content": [
              {
                "http": "GET",
                "path": "/v1/videos/{request_id}/content",
                "query": {
                  "index": "actual output index; default 0"
                }
              },
              {
                "http": "GET",
                "path": "/v1/videos/generations/{request_id}/content",
                "query": {
                  "index": "actual output index; default 0"
                }
              }
            ],
            "content_pending": "Original status JSON until publication.",
            "content_ready": {
              "http_status": 303,
              "location": "actual signed Ailoot-owned asset URL"
            },
            "create": {
              "http": "POST",
              "path": "/v1/videos"
            },
            "failed_states": [],
            "id_source": "Use the actual returned public id or X-Ailoot-Task-Id and polling_url. Keep task_id/provider_task_id separate; status lookup can retain the original task identity when the native fetch omits it.",
            "mode": "submit_once_poll_original",
            "owned_result": {
              "http": "GET",
              "path": "/v1/media/assets/{asset_id}"
            },
            "pending_states": [
              "created"
            ],
            "signed_asset_lifetime_seconds": 86400,
            "state_field": "state",
            "status": [
              {
                "http": "GET",
                "path": "/v1/videos/{request_id}"
              },
              {
                "http": "GET",
                "path": "/v1/videos/generations/{request_id}"
              }
            ],
            "submit_status": 200,
            "unknown": "The pinned declaration enumerates no terminal failure state. Preserve original response/headers/id and check that same operation for any unrecognized state or result_pending_check error; never resubmit an unknown creation.",
            "unknown_no_replay": true
          },
          "manufacturer_capability": {
            "documented_material_types": [
              "text"
            ]
          },
          "method": {
            "http": "POST",
            "path": "/v1/videos"
          },
          "method_aliases": [
            "/v1/videos/generations"
          ],
          "operation_modes": [
            "text_to_video"
          ],
          "output": {
            "additional_media_boundary": "Only creations[].url is selected for owned video delivery. No owned cover-image or callback result flow is established.",
            "all_results": "Download every actual returned URL in creations[].url; a content index identifies one real returned output.",
            "every_actual_output": true,
            "family": "video",
            "fields": [
              {
                "description": "Returned public Ailoot task or operation identifier.",
                "name": "id",
                "type": "string"
              },
              {
                "description": "Original task identifier, separate from the public id.",
                "name": "provider_task_id",
                "type": "string"
              },
              {
                "description": "Returned Ailoot lookup path for the original task.",
                "name": "polling_url",
                "type": "string"
              },
              {
                "description": "Original identifier present in the creation response.",
                "name": "task_id",
                "type": "string when supplied"
              },
              {
                "description": "Native task state: created for the pinned pending state and success for completion.",
                "name": "state",
                "type": "string when supplied"
              },
              {
                "description": "Task diagnostic; the saved specification declares no enumerated error-code list.",
                "name": "err_code",
                "type": "string when supplied"
              },
              {
                "description": "Every selected completed video URL is replaced with an Ailoot-owned signed URL.",
                "name": "creations[].url",
                "type": "string|string[]"
              },
              {
                "description": "Returned video duration; inspect the actual completed result.",
                "name": "creations[].video.duration",
                "type": "number when supplied"
              },
              {
                "description": "Returned frame rate; no fixed frame rate is promised.",
                "name": "creations[].video.fps",
                "type": "integer when supplied"
              },
              {
                "description": "Returned output width in pixels.",
                "name": "creations[].video.resolution.width",
                "type": "integer when supplied"
              },
              {
                "description": "Returned output height in pixels.",
                "name": "creations[].video.resolution.height",
                "type": "integer when supplied"
              }
            ],
            "format": null,
            "maximum_outputs": null,
            "ownership": "Selected video outputs are copied, reopened and SHA256/length/positive-duration checked before publication.",
            "result": "JSON retains the native state and creations array, with public id/provider_task_id/polling_url added. Selected video URLs are blank before publication and become Ailoot-owned signed URLs after completion."
          }
        },
        "ctx": null,
        "declared_pricing_profiles": [
          {
            "dimensions": {
              "regime": "base"
            },
            "label": "Base token rates",
            "units": [
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "input_price",
                "label": "Input tokens",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "output_price",
                "label": "Output tokens",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "output_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "output_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_read_price",
                "label": "Cache read",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "cached_input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "cached_input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_write_price",
                "label": "Cache write",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "generic_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "generic_cache_creation_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_write_1h_price",
                "label": "Cache write, 1 hour",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "one_hour_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "one_hour_cache_creation_token"
              }
            ]
          },
          {
            "basis": "ค่าประมาณนี้ไม่ใช่ค่าใช้จ่ายเพิ่มเติมหรืออัตราคงที่สำหรับการสร้างผลลัพธ์ที่เสร็จสมบูรณ์แล้ว",
            "dimensions": {
              "forecast_quantity": "one generation estimate"
            },
            "label": "ต้นทุนการสร้างโดยประมาณ",
            "units": [
              {
                "amount": "5.12",
                "amount_unit": "usd_per_exact_native_unit",
                "billing_input": false,
                "estimate_only": true,
                "key": "forecast_usd",
                "label": "Estimated generation cost",
                "native_amount_usd_per_unit": "5.12",
                "native_quantity": 1,
                "public_unit_label": "estimate before generation",
                "quantity": 1,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "request_estimate"
              }
            ]
          }
        ],
        "examples": [
          {
            "code": "set -eu\n: \"${AILOOT_API_KEY:?Set your Ailoot API key}\"\ncat > request.json <<'JSON_REQUEST'\n{\"model\":\"viduq2\",\"prompt\":\"In an ultra-realistic fashion photography style featuring light blue and pale amber tones, an astronaut in a spacesuit walks through the fog. The background consists of enchanting white and golden lights, creating a minimalist still life and an impressive panoramic scene.\"}\nJSON_REQUEST\ncurl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/videos \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" -H 'Content-Type: application/json' \\\n  --data-binary @request.json -D response-headers.txt -o result.json\n",
            "label": "curl · create video",
            "language": "bash"
          },
          {
            "code": "set -eu\n: \"${AILOOT_API_KEY:?Set your Ailoot API key}\"\npython3 - <<'PY_POLL'\nimport json\nfrom pathlib import Path\nfrom urllib.parse import quote,urljoin,urlsplit\nr=json.loads(Path(\"result.json\").read_text())\ni=r.get(\"id\")\nif not isinstance(i,str) or not i:raise SystemExit(\"Keep original response/headers/id; do not resubmit creation.\")\nu=urljoin(\"https://api.ailoot.ai\",r.get(\"polling_url\") or \"/v1/videos/\"+quote(i,safe=\"\"))\np=urlsplit(u)\nif p.scheme!=\"https\" or p.netloc!=\"api.ailoot.ai\" or not p.path.startswith(\"/v1/videos/\"):raise SystemExit(\"Use the actual Ailoot lookup path.\")\nPath(\"poll-url.txt\").write_text(u)\nPY_POLL\ncurl --fail-with-body --silent --show-error \"$(cat poll-url.txt)\" -H \"Authorization: Bearer $AILOOT_API_KEY\" -D status-headers.txt -o status.json\n",
            "label": "curl · read original task",
            "language": "bash"
          },
          {
            "code": "set -eu\npython3 - <<'PY_ASSETS'\nimport json\nfrom pathlib import Path\nfrom urllib.parse import urlsplit\nr=json.loads(Path(\"status.json\").read_text())\nif r.get(\"state\")!=\"success\":raise SystemExit(\"Poll the same original job until its owned result is returned.\")\ncreations=r.get(\"creations\")\nif not isinstance(creations,list) or not creations:raise SystemExit(\"No completed video creations.\")\nurls=[]\nfor item in creations:\n    value=item.get(\"url\") if isinstance(item,dict) else None\n    values=[value] if isinstance(value,str) else value\n    if not isinstance(values,list) or not values:raise SystemExit(\"No completed video URL.\")\n    for u in values:\n        if not isinstance(u,str):raise SystemExit(\"Invalid returned URL.\")\n        p=urlsplit(u)\n        if p.scheme!=\"https\" or p.netloc!=\"api.ailoot.ai\" or not p.path.startswith(\"/v1/media/assets/\") or not p.path.endswith(\"/content\") or not p.query:raise SystemExit(\"Wait for the actual Ailoot-owned signed result.\")\n        urls.append(u)\nPath(\"asset-urls.txt\").write_text(\"\\n\".join(urls)+\"\\n\")\nPY_ASSETS\nindex=0\nwhile IFS= read -r asset_url; do\n  curl --fail-with-body --silent --show-error \"$asset_url\" -o \"video-${index}.bin\"\n  index=$((index + 1))\ndone < asset-urls.txt\n",
            "label": "curl · download every owned video",
            "language": "bash"
          }
        ],
        "family": "openai",
        "fast_multiplier": null,
        "flex_multiplier": null,
        "fmt": "videos",
        "hints": [
          "Create once and retain the returned public id and polling_url.",
          "Poll the original operation and read state; success and an owned creations[].url result are the completion boundary.",
          "Download every returned owned video URL; do not infer a fixed output count, duration or frame rate from the example."
        ],
        "http": "POST",
        "in": null,
        "input": [
          "text"
        ],
        "label": "วิดีโอ",
        "max_out": null,
        "max_reasoning_effort_multiplier": null,
        "method_aliases": [
          "/v1/videos/generations"
        ],
        "out": null,
        "output": [
          "video"
        ],
        "path": "/v1/videos",
        "price_conditions": [
          {
            "label": "Fast mode",
            "value": "Not specified",
            "when": "When fast mode is selected"
          },
          {
            "label": "Flex mode",
            "value": "Not specified",
            "when": "When flex mode is selected"
          },
          {
            "label": "Maximum reasoning effort",
            "value": "Not specified",
            "when": "When maximum reasoning effort uses the default adjustment"
          }
        ],
        "pricing": {
          "billing_mode": "original_invoice_usd",
          "image_input_price": null,
          "image_output_price": null
        },
        "pricing_profiles": [
          {
            "dimensions": {
              "regime": "base"
            },
            "label": "Base token rates",
            "units": [
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "input_price",
                "label": "Input tokens",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "output_price",
                "label": "Output tokens",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "output_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "output_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_read_price",
                "label": "Cache read",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "cached_input_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "cached_input_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_write_price",
                "label": "Cache write",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "generic_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "generic_cache_creation_token"
              },
              {
                "amount": null,
                "amount_unit": "usd_per_thousand_tokens",
                "billing_input": false,
                "estimate_only": true,
                "key": "cache_write_1h_price",
                "label": "Cache write, 1 hour",
                "native_amount_usd_per_unit": null,
                "native_quantity": 1,
                "native_unit": "one_hour_cache_creation_token",
                "public_unit_label": "/ 1K tokens",
                "quantity": 1000,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "in",
                "unit": "one_hour_cache_creation_token"
              }
            ]
          },
          {
            "basis": "This estimate is not an additional charge or a fixed rate for the completed generation.",
            "dimensions": {
              "forecast_quantity": "one generation estimate"
            },
            "label": "Estimated generation cost",
            "units": [
              {
                "amount": "5.12",
                "amount_unit": "usd_per_exact_native_unit",
                "billing_input": false,
                "estimate_only": true,
                "key": "forecast_usd",
                "label": "Estimated generation cost",
                "native_amount_usd_per_unit": "5.12",
                "native_quantity": 1,
                "public_unit_label": "estimate before generation",
                "quantity": 1,
                "quantity_is_estimate": true,
                "rate_role": "typed_native_retail_rate",
                "side": "out",
                "unit": "request_estimate"
              }
            ]
          }
        ],
        "request_model_id": "viduq2",
        "route_label": "Ultra",
        "status_reads": [
          "GET /v1/videos/{request_id}",
          "GET /v1/videos/generations/{request_id}",
          "GET /v1/videos/{request_id}/content",
          "GET /v1/videos/generations/{request_id}/content"
        ],
        "tiers": [],
        "units": [
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": false,
            "estimate_only": true,
            "key": "input_price",
            "label": "Input tokens",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "input_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "input_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": false,
            "estimate_only": true,
            "key": "output_price",
            "label": "Output tokens",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "output_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "out",
            "unit": "output_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": false,
            "estimate_only": true,
            "key": "cache_read_price",
            "label": "Cache read",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "cached_input_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "cached_input_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": false,
            "estimate_only": true,
            "key": "cache_write_price",
            "label": "Cache write",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "generic_cache_creation_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "generic_cache_creation_token"
          },
          {
            "amount": null,
            "amount_unit": "usd_per_thousand_tokens",
            "billing_input": false,
            "estimate_only": true,
            "key": "cache_write_1h_price",
            "label": "Cache write, 1 hour",
            "native_amount_usd_per_unit": null,
            "native_quantity": 1,
            "native_unit": "one_hour_cache_creation_token",
            "public_unit_label": "/ 1K tokens",
            "quantity": 1000,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "in",
            "unit": "one_hour_cache_creation_token"
          },
          {
            "amount": "5.12",
            "amount_unit": "usd_per_exact_native_unit",
            "billing_input": false,
            "estimate_only": true,
            "key": "forecast_usd",
            "label": "Estimated generation cost",
            "native_amount_usd_per_unit": "5.12",
            "native_quantity": 1,
            "public_unit_label": "estimate before generation",
            "quantity": 1,
            "quantity_is_estimate": true,
            "rate_role": "typed_native_retail_rate",
            "side": "out",
            "unit": "request_estimate"
          }
        ]
      }
    ],
    "model_aliases": [
      {
        "canonical_model_id": "viduq2",
        "request_model_id": "viduq2",
        "route_label": "Ultra"
      }
    ],
    "name": "Vidu: Q2 Text-to-Video",
    "price": {
      "estimate_only": true,
      "in": null,
      "in_label": null,
      "out": 5.12,
      "out_label": "estimate before generation",
      "scope_label": "Estimated generation cost",
      "sort_in": null,
      "sort_out": 5.12,
      "varies": false
    },
    "short": "Vidu Q2 สร้างวิดีโอจากบรีฟฉากที่เป็นข้อความ โดยมีความยาว 1–10 วินาที ผลลัพธ์ 540p, 720p หรือ 1080p และอัตราส่วนภาพห้าแบบ โปรไฟล์ viduq2 นี้ใช้พรอมป์ต์กำหนดสไตล์และการเคลื่อนไหว และส่งผลลัพธ์ผ่านงานแบบอะซิงโครนัส"
  },
  "renderer_schema": {
    "method_order": "Original DTO methods order; every exact route/format/path/caller survives.",
    "prices": "Original public DTO fields and original native display HTML; no flattened or normalized offers."
  },
  "representation": "exact-public-dto-and-native-renderer-html",
  "representationNotes": {
    "current_reference": {
      "about_json_pointer": "/aboutHtml",
      "methods": [
        {
          "contract_json_pointer": "/methods/0/rawMethod/contract",
          "html_json_pointer": "/methods/0/html",
          "method_ordinal": 0
        }
      ],
      "role": "current-semantic-reference"
    },
    "raw_input": {
      "examples_role": "historical-input-not-current-ready-examples",
      "json_pointers": [
        "/rawModel",
        "/methods/0/rawMethod"
      ],
      "role": "historical-owner-input"
    },
    "schema": "ailoot-native-model-representations-v1"
  },
  "schema": "ailoot-static-model-facts-v1",
  "schema_version": 1,
  "shortText": "Vidu Q2 สร้างวิดีโอจากบรีฟฉากที่เป็นข้อความ โดยมีความยาว 1–10 วินาที ผลลัพธ์ 540p, 720p หรือ 1080p และอัตราส่วนภาพห้าแบบ โปรไฟล์ viduq2 นี้ใช้พรอมป์ต์กำหนดสไตล์และการเคลื่อนไหว และส่งผลลัพธ์ผ่านงานแบบอะซิงโครนัส",
  "source": {
    "audit_sha256": "2e00086bcbfc28e64d0cebe97aa47c17d8d5618963027f8ffb9dc6123d7d25b1",
    "bridge_map_sha256": "1125275768b9636fc8461bc7da5061239a81ddfe508e2557843ca42c58ab0036",
    "raw_model_json_sha256": "8956e9bd2704c300fce42cd502d9a065d43bdbfc07da78421311014f41fa8aba",
    "renderer_sha256": "890edb706fafafdd4f598bb324acf65fada58918b0911b97eb80e68be2ef65d9"
  },
  "sourceRevision": "1f9d96a849d6b443f8b50ed1f9be21a21471e81ba557851bc606ef83f9c7e660"
}
