{
  "aboutHtml": "<p>Lyria 3 Clip Preview เป็นโปรไฟล์สร้างเพลงของ Google สำหรับคลิปสั้น ลูป และพรีวิว รับพรอมป์ต์ข้อความหรือแรงบันดาลใจจากภาพ แล้วคืนข้อความกับเสียง โปรไฟล์ที่เผยแพร่อธิบายคลิป 30 วินาทีพร้อมเสียงสเตอริโอ 48 kHz รวมเสียงร้อง เนื้อร้องที่มีเวลา และการเรียบเรียงเครื่องดนตรีครบชุด</p><h4>อธิบายช่วงดนตรี</h4><p>ระบุจุดประสงค์คลิปและอารมณ์ที่ควรสื่อ ธีมเปิดสั้นระบุบทนำที่ไม่หวือหวาและการเข้าท่อนหลักที่ชัดได้ เพลงพื้นหลังระบุจังหวะเร็วช้าและเนื้อเสียงที่ต้องใช้ใต้ฉากภาพได้ บอกว่าผลควรมีเสียงร้องหรือเป็นดนตรีบรรเลง และระบุองค์ประกอบดนตรีที่สำคัญต่อโจทย์</p><p>ให้โครงสร้างเล็กพอสำหรับคลิป ระบุส่วนเปิด วลีหลัก และจุดจบหรือลูป หากคำสำคัญ ให้แนวคิดหรือถ้อยคำเนื้อร้องที่ตั้งใจและตรวจผลร้องจริง โจทย์ดนตรีควรแยกเนื้อหาเสียงร้องออกจากคำสั่งเรียบเรียง</p><h4>แรงบันดาลใจภาพและการเรียบเรียง</h4><p>เมื่อให้ภาพ อธิบายว่าภาพเพิ่มฉากหรืออารมณ์ใดให้คำขอเพลง ทิวทัศน์สงบและฉากกลางคืนที่คนแน่นบอกคนละทิศทาง แต่บทบาทอารมณ์ที่ต้องการยังควรชัดในข้อความ เก็บภาพกับพรอมป์ต์เมื่อเปรียบเทียบคลิปที่คืนมากับแนวคิดที่ตั้งใจ</p><p>ตรวจสมดุลเสียงร้อง เครื่องดนตรี และวลีดนตรีหลัก สำหรับลูป ให้ฟังจุดจบต่อจุดเริ่ม สำหรับพรีวิว ตรวจว่าเวลาสั้นสื่อทิศทางที่ตั้งใจหรือไม่ คลิปที่ประกอบงานตัดต่อควรตรวจคู่กับงานนั้น แทนการฟังเดี่ยวอย่างเดียว</p><h4>เก็บสิ่งส่งมอบที่ฟังได้</h4><p>บันทึกเสียงจริงและข้อความประกอบกับโจทย์ ตรวจคุณสมบัติไฟล์เมื่อเตรียมเล่นหรือนำเข้าโปรแกรมตัดต่อ และเก็บข้อมูลเนื้อร้องหรือเวลาที่คำขอคืนมา เพลงคือเอาต์พุตโมเดล ส่วนการตัด ชื่อเรื่อง ทรานซิชันภาพ และมิกซ์ขั้นผลิตสุดท้ายจัดรอบชิ้นงานที่ตรวจแล้วนั้นได้</p><p>โปรไฟล์ Clip Preview ที่ตรงนี้เหมาะกับสิ่งส่งมอบดนตรีกระชับ รักษาบทบาทงานสั้นให้แยกเมื่อวางแผนเพลงยาว และเลือกคลิปที่คืนมาด้วยการฟังวลีครบ ถ้อยคำที่ร้อง และจุดจบ</p>",
  "aboutText": "Lyria 3 Clip Preview เป็นโปรไฟล์สร้างเพลงของ Google สำหรับคลิปสั้น ลูป และพรีวิว รับพรอมป์ต์ข้อความหรือแรงบันดาลใจจากภาพ แล้วคืนข้อความกับเสียง โปรไฟล์ที่เผยแพร่อธิบายคลิป 30 วินาทีพร้อมเสียงสเตอริโอ 48 kHz รวมเสียงร้อง เนื้อร้องที่มีเวลา และการเรียบเรียงเครื่องดนตรีครบชุด\n\n### อธิบายช่วงดนตรี\n\nระบุจุดประสงค์คลิปและอารมณ์ที่ควรสื่อ ธีมเปิดสั้นระบุบทนำที่ไม่หวือหวาและการเข้าท่อนหลักที่ชัดได้ เพลงพื้นหลังระบุจังหวะเร็วช้าและเนื้อเสียงที่ต้องใช้ใต้ฉากภาพได้ บอกว่าผลควรมีเสียงร้องหรือเป็นดนตรีบรรเลง และระบุองค์ประกอบดนตรีที่สำคัญต่อโจทย์\n\nให้โครงสร้างเล็กพอสำหรับคลิป ระบุส่วนเปิด วลีหลัก และจุดจบหรือลูป หากคำสำคัญ ให้แนวคิดหรือถ้อยคำเนื้อร้องที่ตั้งใจและตรวจผลร้องจริง โจทย์ดนตรีควรแยกเนื้อหาเสียงร้องออกจากคำสั่งเรียบเรียง\n\n### แรงบันดาลใจภาพและการเรียบเรียง\n\nเมื่อให้ภาพ อธิบายว่าภาพเพิ่มฉากหรืออารมณ์ใดให้คำขอเพลง ทิวทัศน์สงบและฉากกลางคืนที่คนแน่นบอกคนละทิศทาง แต่บทบาทอารมณ์ที่ต้องการยังควรชัดในข้อความ เก็บภาพกับพรอมป์ต์เมื่อเปรียบเทียบคลิปที่คืนมากับแนวคิดที่ตั้งใจ\n\nตรวจสมดุลเสียงร้อง เครื่องดนตรี และวลีดนตรีหลัก สำหรับลูป ให้ฟังจุดจบต่อจุดเริ่ม สำหรับพรีวิว ตรวจว่าเวลาสั้นสื่อทิศทางที่ตั้งใจหรือไม่ คลิปที่ประกอบงานตัดต่อควรตรวจคู่กับงานนั้น แทนการฟังเดี่ยวอย่างเดียว\n\n### เก็บสิ่งส่งมอบที่ฟังได้\n\nบันทึกเสียงจริงและข้อความประกอบกับโจทย์ ตรวจคุณสมบัติไฟล์เมื่อเตรียมเล่นหรือนำเข้าโปรแกรมตัดต่อ และเก็บข้อมูลเนื้อร้องหรือเวลาที่คำขอคืนมา เพลงคือเอาต์พุตโมเดล ส่วนการตัด ชื่อเรื่อง ทรานซิชันภาพ และมิกซ์ขั้นผลิตสุดท้ายจัดรอบชิ้นงานที่ตรวจแล้วนั้นได้\n\nโปรไฟล์ Clip Preview ที่ตรงนี้เหมาะกับสิ่งส่งมอบดนตรีกระชับ รักษาบทบาทงานสั้นให้แยกเมื่อวางแผนเพลงยาว และเลือกคลิปที่คืนมาด้วยการฟังวลีครบ ถ้อยคำที่ร้อง และจุดจบ",
  "editorialOverlay": {
    "copy_fields": null,
    "copy_sha256": null,
    "copy_source": null,
    "html_sha256": "6633b448791e8fb6e7ab20ea33ce6b4192d4fb7623e1acceb0750387dbdc3d85",
    "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\">G</span><h2 id=\"sheet-title\">Lyria 3 Clip Preview</h2><button class=\"icon-btn\" type=\"button\" data-close-sheet aria-label=\"ปิด\">×</button></div><div class=\"idline\"><span>Google /</span><code>google/lyria-3-clip-preview</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=\"Core|music|/v1/music/generations|google%2Flyria-3-clip-preview\">เพลง</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\">Lyria 3 Clip Preview เป็นโมเดลเพลงของ Google สำหรับคลิปสั้น ลูป และพรีวิว รับแรงบันดาลใจจากข้อความหรือภาพแล้วสร้างเพลง 30 วินาทีพร้อมเสียงสเตอริโอ 48 kHz รองรับเสียงร้อง เนื้อร้องที่มีเวลา และการเรียบเรียงดนตรีบรรเลง</p><dl class=\"card-io\" data-card-io><div><dt>อินพุตที่รองรับ</dt><dd>ข้อความ</dd></div><div><dt>ผลลัพธ์</dt><dd>music</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>Lyria 3 Clip Preview เป็นโปรไฟล์สร้างเพลงของ Google สำหรับคลิปสั้น ลูป และพรีวิว รับพรอมป์ต์ข้อความหรือแรงบันดาลใจจากภาพ แล้วคืนข้อความกับเสียง โปรไฟล์ที่เผยแพร่อธิบายคลิป 30 วินาทีพร้อมเสียงสเตอริโอ 48 kHz รวมเสียงร้อง เนื้อร้องที่มีเวลา และการเรียบเรียงเครื่องดนตรีครบชุด</p><h4>อธิบายช่วงดนตรี</h4><p>ระบุจุดประสงค์คลิปและอารมณ์ที่ควรสื่อ ธีมเปิดสั้นระบุบทนำที่ไม่หวือหวาและการเข้าท่อนหลักที่ชัดได้ เพลงพื้นหลังระบุจังหวะเร็วช้าและเนื้อเสียงที่ต้องใช้ใต้ฉากภาพได้ บอกว่าผลควรมีเสียงร้องหรือเป็นดนตรีบรรเลง และระบุองค์ประกอบดนตรีที่สำคัญต่อโจทย์</p><p>ให้โครงสร้างเล็กพอสำหรับคลิป ระบุส่วนเปิด วลีหลัก และจุดจบหรือลูป หากคำสำคัญ ให้แนวคิดหรือถ้อยคำเนื้อร้องที่ตั้งใจและตรวจผลร้องจริง โจทย์ดนตรีควรแยกเนื้อหาเสียงร้องออกจากคำสั่งเรียบเรียง</p><h4>แรงบันดาลใจภาพและการเรียบเรียง</h4><p>เมื่อให้ภาพ อธิบายว่าภาพเพิ่มฉากหรืออารมณ์ใดให้คำขอเพลง ทิวทัศน์สงบและฉากกลางคืนที่คนแน่นบอกคนละทิศทาง แต่บทบาทอารมณ์ที่ต้องการยังควรชัดในข้อความ เก็บภาพกับพรอมป์ต์เมื่อเปรียบเทียบคลิปที่คืนมากับแนวคิดที่ตั้งใจ</p><p>ตรวจสมดุลเสียงร้อง เครื่องดนตรี และวลีดนตรีหลัก สำหรับลูป ให้ฟังจุดจบต่อจุดเริ่ม สำหรับพรีวิว ตรวจว่าเวลาสั้นสื่อทิศทางที่ตั้งใจหรือไม่ คลิปที่ประกอบงานตัดต่อควรตรวจคู่กับงานนั้น แทนการฟังเดี่ยวอย่างเดียว</p><h4>เก็บสิ่งส่งมอบที่ฟังได้</h4><p>บันทึกเสียงจริงและข้อความประกอบกับโจทย์ ตรวจคุณสมบัติไฟล์เมื่อเตรียมเล่นหรือนำเข้าโปรแกรมตัดต่อ และเก็บข้อมูลเนื้อร้องหรือเวลาที่คำขอคืนมา เพลงคือเอาต์พุตโมเดล ส่วนการตัด ชื่อเรื่อง ทรานซิชันภาพ และมิกซ์ขั้นผลิตสุดท้ายจัดรอบชิ้นงานที่ตรวจแล้วนั้นได้</p><p>โปรไฟล์ Clip Preview ที่ตรงนี้เหมาะกับสิ่งส่งมอบดนตรีกระชับ รักษาบทบาทงานสั้นให้แยกเมื่อวางแผนเพลงยาว และเลือกคลิปที่คืนมาด้วยการฟังวลีครบ ถ้อยคำที่ร้อง และจุดจบ</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 · เพลง</b> <code>POST /v1/music/generations</code></summary><dl class=\"method-capabilities\"><div><dt>ขาเข้า</dt><dd><code>text</code></dd></div><div><dt>ขาออก</dt><dd><code>music</code></dd></div><div><dt>รูปแบบเอาต์พุต</dt><dd>คลิปเสียงทั้งหมดที่เป็นของคุณ / ลิงก์ JSON</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>google/lyria-3-clip-preview</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>ความยาวขั้นต่ำ: 1</div></td><td data-cell-label=\"ค่าเริ่มต้น\" data-default=\"unspecified\"><span class=\"card-cell-label\">ค่าเริ่มต้น</span>—</td></tr></tbody></table></div><details class=\"card-about\" data-material-combinations><summary>ชุดผสมของสื่ออินพุต</summary><p class=\"note-s\"><b>text_to_music</b> · จำเป็น: prompt</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>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>required</code></th><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>null</td></tr><tr><th data-cell-label=\"พารามิเตอร์\" scope=\"row\"><span class=\"card-cell-label\">พารามิเตอร์</span><code>optional_controls</code></th><td data-cell-label=\"ข้อกำหนด\"><span class=\"card-cell-label\">ข้อกำหนด</span>null</td></tr></tbody></table></div><p>วงจรการทำงาน: <code>synchronous_result_then_owned_library</code></p><p class=\"note-s\"><code>GET /v1/media/tasks/{task_id}</code> · ค่า task_id ที่ส่งกลับมาจริง หรือระเบียนในคลังสื่อ</p><p class=\"note-s\"><code>GET /v1/media/assets/{asset_id}/content</code></p><p class=\"note-s\"><code>GET /v1/media/assets</code></p><p class=\"note-s\"><code>GET /v1/media/assets/{asset_id}</code></p><p class=\"note-s\">รูปแบบเมธอดและ ID ระบุอย่างแม่นยำ ความสามารถของผู้ให้บริการแยกจากการอนุญาตให้รับคำขอ</p></details></details></section><section class=\"card-section\" data-card-section=\"pricing\"><h3 tabindex=\"-1\">ราคา</h3><h4>อัตราค่าบริการเมธอด Ailoot</h4><section class=\"meth\" data-route=\"Core\"><header><b><span class=\"alias\">Ailoot</span> เพลง</b><code>POST /v1/music/generations</code></header><dl><div><dt>ขาออก</dt><dd>US$0.04 <em>ต่อคลิป</em></dd></div><div data-billing-reference=\"not-added\"><dt>อ้างอิงเท่านั้น · ไม่บวกเพิ่ม</dt><dd>US$0.04 <em>ต่อคำขอ</em></dd></div></dl><div data-music-clip-pricing=\"v1\"><p class=\"note-s\">จำนวนคลิปที่ส่งมอบ × อัตราฐานต่อคลิป ไม่บวกอัตราอ้างอิงต่อคำขอ ตัวอย่างเป็นราคาก่อนการปรับที่เกี่ยวข้อง</p><p><code>1 × US$0.04 = US$0.04</code></p></div></section><p class=\"note-s\">Ailoot กันยอดเงินประมาณการไว้ก่อนส่งคำขอ หลังได้ผลลัพธ์ จะคิดค่าบริการสุดท้ายตามการใช้งานที่วัดได้ การคิดค่าบริการแบบสตรีมใช้บันทึกการใช้งานสุดท้าย <a href=\"/docs/th/billing/reserve/\">วิธีกันยอดเงินและคิดค่าบริการสุดท้าย →</a></p><div data-model-tariff-reference><h4>รายละเอียดอัตราอ้างอิง</h4><p class=\"note-s\">ตารางอัตราอ้างอิงระดับโมเดลไม่เปลี่ยนเมธอดที่เลือก ยอดประมาณการ หรือค่าบริการ การคิดค่าบริการจริงใช้อัตราของเมธอด Ailoot ที่เลือก</p><details class=\"card-price-reference\" data-profile-scope=\"manufacturer_reference\" data-client-selectable=\"false\"><summary>ตารางอัตราอ้างอิงของโมเดล</summary><h4>ราคาตามการตั้งค่า</h4><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>Ultra</th><td data-cell-label=\"ระดับบริการ\"><span class=\"card-cell-label\">ระดับบริการ</span>standard</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>US$0.08</b> <span class=\"price-unit\">ต่อเพลง</span></div></td></tr></tbody></table></div></details></div></section><section class=\"card-section\" data-card-section=\"examples\"><h3 tabindex=\"-1\">ตัวอย่างคำขอ</h3><h4>Ailoot · เพลง</h4><div class=\"code-group\"><div class=\"cg-bar\"><div class=\"cg-tabs\" role=\"tablist\" aria-label=\"ตัวเลือกโค้ด\"><button class=\"cg-tab\" id=\"model-code-355-tab-0\" role=\"tab\" type=\"button\" aria-controls=\"model-code-355-panel-0\" aria-selected=\"true\" tabindex=\"0\">ตัวอย่างเพลง</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-355-panel-0\" role=\"tabpanel\" aria-labelledby=\"model-code-355-tab-0\"><pre data-lang=\"bash\"><code>set -eu\n: &quot;${AILOOT_API_KEY:?Set your Ailoot API key}&quot;\n: &quot;${AILOOT_PROMPT_FILE:?Set your actual UTF-8 music brief}&quot;\nexport AILOOT_PROMPT_FILE\npython3 - &lt;&lt;&#39;PY_REQUEST&#39;\nimport json,os\nfrom pathlib import Path\np=json.loads(&#39;{&quot;model&quot;: &quot;google/lyria-3-clip-preview&quot;, &quot;prompt&quot;: &quot;&quot;}&#39;)\nf=Path(os.environ[&quot;AILOOT_PROMPT_FILE&quot;])\nif not f.is_file():raise SystemExit(&quot;Choose your actual UTF-8 brief&quot;)\np[&#39;prompt&#39;]=f.read_text(encoding=&quot;utf-8&quot;)\nif not p[&#39;prompt&#39;].strip():raise SystemExit(&quot;Brief must contain text&quot;)\nPath(&quot;request.json&quot;).write_text(json.dumps(p,ensure_ascii=False))\nPY_REQUEST\ncurl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/music/generations \\\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\nexport AILOOT_API_KEY\npython3 - &lt;&lt;&#39;PY_RESULT&#39;\nimport json, os, subprocess\nfrom pathlib import Path\nfrom urllib.parse import urljoin, urlparse\nresult=json.loads(Path(&quot;result.json&quot;).read_text(encoding=&quot;utf-8&quot;))\nprint(json.dumps(result,ensure_ascii=False,indent=2))\nfor number,clip in enumerate(result.get(&quot;data&quot;) or []):\n    u=urlparse(urljoin(&quot;https://api.ailoot.ai&quot;,clip[&quot;url&quot;]))\n    if u.scheme!=&quot;https&quot; or not u.hostname or u.username or u.password:\n        raise SystemExit(&quot;Result URL must be HTTPS without embedded credentials&quot;)\n    owned=u.netloc==&quot;api.ailoot.ai&quot; and u.path.startswith(&quot;/v1/media/assets/&quot;) and u.path.endswith(&quot;/content&quot;)\n    args=[&quot;curl&quot;,&quot;--fail-with-body&quot;,&quot;--silent&quot;,&quot;--show-error&quot;,u.geturl()]\n    if owned: args += [&quot;-H&quot;,&quot;Authorization: Bearer &quot;+os.environ[&quot;AILOOT_API_KEY&quot;]]\n    raw=subprocess.check_output(args)\n    ext=&quot;wav&quot; if raw.startswith(b&quot;RIFF&quot;) and raw[8:12]==b&quot;WAVE&quot; else &quot;flac&quot; if raw.startswith(b&quot;fLaC&quot;) else &quot;ogg&quot; if raw.startswith(b&quot;OggS&quot;) else &quot;mp3&quot; if raw.startswith(b&quot;ID3&quot;) or raw[:1]==b&quot;\\xff&quot; else &quot;bin&quot;\n    f=Path(&quot;music-&quot;+str(number)+&quot;.&quot;+ext);f.write_bytes(raw)\n    print(&quot;Saved&quot;,f,clip.get(&quot;asset_id&quot;))\n\nPY_RESULT\n</code></pre></div></div></div></section><section class=\"card-section\" data-card-section=\"results\"><h3 tabindex=\"-1\">รับและบันทึกผลลัพธ์</h3><h4>Ailoot · เพลง</h4><p class=\"note-s\">คลิปเสียงทั้งหมดที่เป็นของคุณ / ลิงก์ JSON</p><ul class=\"card-result-paths\"><li><code>GET /v1/media/tasks/{task_id}</code></li><li><code>GET /v1/media/assets/{asset_id}/content</code></li><li><code>GET /v1/media/assets</code></li><li><code>GET /v1/media/assets/{asset_id}</code></li></ul><div class=\"card-result-process\" data-all-results><h5>เก็บผลลัพธ์ที่เสร็จสมบูรณ์ทั้งหมด</h5><p class=\"note-s\">เก็บทุกการตอบกลับ ไฟล์ และส่วนเนื้อหาที่ส่งกลับมาอย่างครบถ้วน</p><p class=\"note-s\">บันทึก/เรียกคลิปทุกชิ้นที่ส่งกลับ และเก็บ ID, MIME และเมทาดาทาจริงไว้ เมธอดนี้ทำงานแบบซิงโครนัส ไม่มีการเพิ่ม URL ตรวจสอบสถานะการสร้างเพลงของ Ailoot แยกต่างหาก</p></div><div class=\"card-result-process\" data-unknown-recovery><h5>เมื่อต้องตรวจสอบการตอบกลับต้นฉบับ</h5><p class=\"note-s\">หากต้องตรวจสอบผลลัพธ์เพลง ให้เก็บ operation_id/X-Client-Request-ID เดิมและข้อมูลคลิปที่ส่งกลับ กู้คืนคลิปเดิมที่เป็นของคุณผ่านคลังสื่อด้วยค่า task_id หรือ asset_id จริง อย่าส่งคำขอเพลงซ้ำหรือสร้าง URL ตรวจสอบสถานะการสร้างจาก operation_id</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></tr></thead><tbody><tr><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>string</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">response_id</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>string</td></tr><tr><th data-cell-label=\"ฟิลด์\" scope=\"row\"><span class=\"card-cell-label\">ฟิลด์</span><code class=\"card-field-name\">data[]</code></th><td data-cell-label=\"ประเภท\" data-field-type><span class=\"card-cell-label\">ประเภท</span>owned clip record</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>ฟิลด์จำเป็น รูปแบบการแทนข้อมูล หรือค่าพารามิเตอร์ไม่ถูกต้อง</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>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>เก็บ ID การดำเนินการ/งานที่ส่งกลับมาแต่เดิม ส่วนหัวของคำขอ และการตอบกลับไว้ แล้วอ่านข้อมูลการดำเนินการเดิมนั้นต่อด้วยวิธีที่รองรับ ห้ามส่งคำขอสร้างซ้ำ</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=\"Core\"><b>Ailoot</b> <a href=\"#m=google%2Flyria-3-clip-preview&amp;route=Core&amp;caller=google%2Flyria-3-clip-preview&amp;fmt=music\"><code>google/lyria-3-clip-preview</code></a></span></p><h4>ชื่อพาธเมธอดอื่น</h4><p class=\"note-s\">ใช้พาธเมธอดที่แสดงด้านบน</p><h4>ID ที่เกี่ยวข้องสำหรับเรียกใช้โมเดล</h4><p class=\"note-s\"><a href=\"#m=google%2Flyria-3-clip-preview&amp;route=Core&amp;caller=google%2Flyria-3-clip-preview&amp;fmt=music\"><code>google/lyria-3-clip-preview</code></a></p></section></div>",
      "method_identity": {
        "effective_request_model_id": "google/lyria-3-clip-preview",
        "fmt": "music",
        "http": "POST",
        "path": "/v1/music/generations",
        "request_model_id": "google/lyria-3-clip-preview",
        "route_label": "Core"
      },
      "method_key": "Core|music|/v1/music/generations|google%2Flyria-3-clip-preview",
      "ordinal": 0,
      "rawMethod": {
        "cache_read": null,
        "cache_write": null,
        "cache_write_1h": null,
        "cache_write_5m": null,
        "conditional_meter": null,
        "contract": {
          "data": {
            "all_results": "Save/fetch every returned clip and preserve actual ID, MIME and metadata. The method is synchronous; no separate Ailoot music generationpollingURL is introduced.",
            "errors": [
              {
                "code": null,
                "condition": "ฟิลด์จำเป็น รูปแบบการแทนข้อมูล หรือค่าพารามิเตอร์ไม่ถูกต้อง",
                "http_status": 400,
                "recovery": "แก้ฟิลด์ที่ระบุก่อนส่งคำขอสร้างครั้งใหม่",
                "type": "invalid_request_error"
              },
              {
                "code": null,
                "condition": "การตอบกลับที่ได้รับระบุว่าต้องตรวจสอบการดำเนินการหรือผลลัพธ์",
                "http_status": null,
                "recovery": "เก็บ ID การดำเนินการ/งานที่ส่งกลับมาแต่เดิม ส่วนหัวของคำขอ และการตอบกลับไว้ แล้วอ่านข้อมูลการดำเนินการเดิมนั้นต่อด้วยวิธีที่รองรับ ห้ามส่งคำขอสร้างซ้ำ",
                "type": "server_error"
              }
            ],
            "hints": [],
            "ignored_fields": [],
            "lifecycle": {
              "all_results": "Follow everyactualreturnedoutputandownedasset; no result is discardedbecauseindex0orcontent_urlalreadyexists.",
              "assets": [
                {
                  "http": "GET",
                  "path": "/v1/media/assets"
                },
                {
                  "http": "GET",
                  "path": "/v1/media/assets/{asset_id}"
                }
              ],
              "content": [
                {
                  "http": "GET",
                  "path": "/v1/media/assets/{asset_id}/content",
                  "url_source": "exact returned signed URL; never construct token"
                }
              ],
              "mode": "synchronous_result_then_owned_library",
              "operation_id_is_not_task_id": true,
              "status": [
                {
                  "http": "GET",
                  "id_source": "actual returned task_id or media library record",
                  "path": "/v1/media/tasks/{task_id}"
                }
              ],
              "unknown": "หากต้องตรวจสอบผลลัพธ์เพลง ให้เก็บ operation_id/X-Client-Request-ID เดิมและข้อมูลคลิปที่ส่งกลับ กู้คืนคลิปเดิมที่เป็นของคุณผ่านคลังสื่อด้วยค่า task_id หรือ asset_id จริง อย่าส่งคำขอเพลงซ้ำหรือสร้าง URL ตรวจสอบสถานะการสร้างจาก operation_id"
            },
            "material_combinations": [
              {
                "content_type": "application/json",
                "mode": "text_to_music",
                "required": [
                  "prompt"
                ]
              }
            ],
            "media_library": {
              "asset": {
                "fields": [
                  {
                    "description": null,
                    "name": "asset_id",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "task_id",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "output_key",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "family",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "model",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "method",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "status",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "content_type",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "sha256",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "size_bytes",
                    "type": "integer"
                  },
                  {
                    "description": null,
                    "name": "content_url",
                    "type": "string"
                  }
                ],
                "http": "GET",
                "id_source": "actual returned asset_id",
                "path": "/v1/media/assets/{asset_id}"
              },
              "content": {
                "http": "GET",
                "path": "/v1/media/assets/{asset_id}/content",
                "range_header_supported": true,
                "url_source": "Use exact returned signed content_url including its token; do not construct a token."
              },
              "expired_link": {
                "code": "link_expired",
                "http_status": 404,
                "recovery": "Read the asset again to obtain its refreshed signed content_url, then fetch that URL. Do not regenerate."
              },
              "list": {
                "all_pages": "Follow every returned next_cursor, then select records by their actual task_id/output_key.",
                "http": "GET",
                "output_fields": [
                  {
                    "description": null,
                    "name": "object",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "data",
                    "type": "asset[]"
                  },
                  {
                    "description": null,
                    "name": "next_cursor",
                    "type": "string|null"
                  }
                ],
                "parameters": [
                  {
                    "availability": "source_interface",
                    "default": null,
                    "default_known": false,
                    "enum": null,
                    "enum_known": false,
                    "name": "family",
                    "required": false,
                    "type": "string"
                  },
                  {
                    "availability": "source_interface",
                    "default": null,
                    "default_known": false,
                    "enum": null,
                    "enum_known": false,
                    "name": "cursor",
                    "required": false,
                    "type": "string"
                  },
                  {
                    "availability": "source_interface",
                    "default": 20,
                    "default_known": true,
                    "enum": null,
                    "enum_known": false,
                    "maximum": 100,
                    "minimum": 1,
                    "name": "limit",
                    "required": false,
                    "type": "integer"
                  }
                ],
                "path": "/v1/media/assets"
              },
              "revoke": {
                "http": "DELETE",
                "meaning": "Revokes/deletes the existing owned file; this is not generation cancellation.",
                "path": "/v1/media/assets/{asset_id}",
                "pending_status": "revoking",
                "success_statuses": [
                  202,
                  204
                ]
              },
              "task": {
                "http": "GET",
                "id_source": "actual returned task_id or media library record; operation_id is not task_id",
                "path": "/v1/media/tasks/{task_id}"
              }
            },
            "operation_modes": [
              "text_to_music"
            ],
            "outputs": {
              "all_results": "บันทึก/เรียกคลิปทุกชิ้นที่ส่งกลับ และเก็บ ID, MIME และเมทาดาทาจริงไว้ เมธอดนี้ทำงานแบบซิงโครนัส ไม่มีการเพิ่ม URL ตรวจสอบสถานะการสร้างเพลงของ Ailoot แยกต่างหาก",
              "family": "music",
              "fields": [
                {
                  "description": null,
                  "name": "model",
                  "type": "string"
                },
                {
                  "description": null,
                  "name": "response_id",
                  "type": "string"
                },
                {
                  "description": null,
                  "name": "data[]",
                  "type": "owned clip record"
                }
              ],
              "format": "คลิปเสียงทั้งหมดที่เป็นของคุณ / ลิงก์ JSON"
            },
            "parameters": [
              {
                "availability": "source_interface",
                "default": null,
                "default_known": false,
                "enum": [
                  "google/lyria-3-clip-preview"
                ],
                "enum_known": true,
                "name": "model",
                "required": true,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "default": null,
                "default_known": false,
                "enum": null,
                "enum_known": false,
                "min_length": 1,
                "name": "prompt",
                "required": true,
                "type": "string"
              }
            ],
            "profile_binding": "Exact existing Ailoot model and method; interface constraints below do not assert provider qualification.",
            "unsupported": []
          },
          "hints": [
            "รูปแบบเมธอดและ ID ระบุอย่างแม่นยำ ความสามารถของผู้ให้บริการแยกจากการอนุญาตให้รับคำขอ"
          ],
          "input": {
            "material_types": [
              "text"
            ],
            "optional_controls": null,
            "required": null
          },
          "lifecycle": {
            "assets": [
              {
                "http": "GET",
                "path": "/v1/media/assets"
              },
              {
                "http": "GET",
                "path": "/v1/media/assets/{asset_id}"
              }
            ],
            "content": [
              {
                "http": "GET",
                "path": "/v1/media/assets/{asset_id}/content",
                "url_source": "exact returned signed URL; never construct token"
              }
            ],
            "mode": "synchronous_result_then_owned_library",
            "operation_id_is_not_task_id": true,
            "status": [
              {
                "http": "GET",
                "id_source": "ค่า task_id ที่ส่งกลับมาจริง หรือระเบียนในคลังสื่อ",
                "path": "/v1/media/tasks/{task_id}"
              }
            ],
            "unknown": "If a music result requires a check, keep the original operation_id/X-Client-Request-ID and returned clip information. Recover existing owned clips through the media library using actual task_id or asset_id values. Do not resubmit the music request or construct a generation polling URL from operation_id."
          },
          "method": {
            "http": "POST",
            "path": "/v1/music/generations"
          },
          "operation_modes": [
            "music"
          ],
          "output": {
            "family": [
              "music"
            ],
            "format": null,
            "multioutputs": "retain every actual response output"
          }
        },
        "ctx": null,
        "examples": [
          {
            "code": "set -eu\n: \"${AILOOT_API_KEY:?Set your Ailoot API key}\"\n: \"${AILOOT_PROMPT_FILE:?Set your actual UTF-8 music brief}\"\nexport AILOOT_PROMPT_FILE\npython3 - <<'PY_REQUEST'\nimport json,os\nfrom pathlib import Path\np=json.loads('{\"model\": \"google/lyria-3-clip-preview\", \"prompt\": \"\"}')\nf=Path(os.environ[\"AILOOT_PROMPT_FILE\"])\nif not f.is_file():raise SystemExit(\"Choose your actual UTF-8 brief\")\np['prompt']=f.read_text(encoding=\"utf-8\")\nif not p['prompt'].strip():raise SystemExit(\"Brief must contain text\")\nPath(\"request.json\").write_text(json.dumps(p,ensure_ascii=False))\nPY_REQUEST\ncurl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/music/generations \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" -H 'Content-Type: application/json' \\\n  --data-binary @request.json -D response-headers.txt -o result.json\nexport AILOOT_API_KEY\npython3 - <<'PY_RESULT'\nimport json, os, subprocess\nfrom pathlib import Path\nfrom urllib.parse import urljoin, urlparse\nresult=json.loads(Path(\"result.json\").read_text(encoding=\"utf-8\"))\nprint(json.dumps(result,ensure_ascii=False,indent=2))\nfor number,clip in enumerate(result.get(\"data\") or []):\n    u=urlparse(urljoin(\"https://api.ailoot.ai\",clip[\"url\"]))\n    if u.scheme!=\"https\" or not u.hostname or u.username or u.password:\n        raise SystemExit(\"Result URL must be HTTPS without embedded credentials\")\n    owned=u.netloc==\"api.ailoot.ai\" and u.path.startswith(\"/v1/media/assets/\") and u.path.endswith(\"/content\")\n    args=[\"curl\",\"--fail-with-body\",\"--silent\",\"--show-error\",u.geturl()]\n    if owned: args += [\"-H\",\"Authorization: Bearer \"+os.environ[\"AILOOT_API_KEY\"]]\n    raw=subprocess.check_output(args)\n    ext=\"wav\" if raw.startswith(b\"RIFF\") and raw[8:12]==b\"WAVE\" else \"flac\" if raw.startswith(b\"fLaC\") else \"ogg\" if raw.startswith(b\"OggS\") else \"mp3\" if raw.startswith(b\"ID3\") or raw[:1]==b\"\\xff\" else \"bin\"\n    f=Path(\"music-\"+str(number)+\".\"+ext);f.write_bytes(raw)\n    print(\"Saved\",f,clip.get(\"asset_id\"))\n\nPY_RESULT\n",
            "label": "Compose from your actual music brief",
            "language": "bash"
          }
        ],
        "family": "openai",
        "fast_multiplier": null,
        "flex_multiplier": null,
        "fmt": "music",
        "http": "POST",
        "img_in": null,
        "img_out": null,
        "in": null,
        "input": [
          "text"
        ],
        "label": "เพลง",
        "max_out": null,
        "max_tool_calls": null,
        "out": null,
        "output": [
          "music"
        ],
        "path": "/v1/music/generations",
        "pricing_profiles": [
          {
            "dimensions": {},
            "label": "Core",
            "units": [
              {
                "amount": 0.04,
                "amount_unit": "usd_per_display_unit",
                "key": "music_output_clip",
                "label": "per clip",
                "side": "out"
              },
              {
                "amount": 0.04,
                "amount_unit": "usd_per_display_unit",
                "key": "per_request",
                "label": "per request",
                "side": "out"
              }
            ]
          }
        ],
        "request_model_id": "google/lyria-3-clip-preview",
        "route_label": "Core",
        "status_reads": [],
        "tiers": [],
        "tool_prices": null,
        "unit": "music_output_clip",
        "units": [
          {
            "key": "music_output_clip",
            "label": "per clip",
            "side": "out",
            "usd": 0.04
          },
          {
            "key": "per_request",
            "label": "per request",
            "side": "out",
            "usd": 0.04
          }
        ]
      }
    }
  ],
  "model_id": "google/lyria-3-clip-preview",
  "nativeProvenance": {
    "input_facts_canonical_sha256": "7ad3e1530db01c8b7d4c5671fd1e6042fcc9c437dcbd10af7e8b07d9cf604b4e",
    "input_html_sha256": "f2b1061a4ac2f5dd5665e4c724b029f6527dedc00dceeb4da3b7d4c7265b6c5c",
    "private_audit_sha256": "1ed4c7a25c946eeb6c1311f239edb1aadabf7c3f6f5fa54a7906ece9ed136292",
    "role": "historical-normalized-input-audit-hashes",
    "schema": "ailoot-native-model-provenance-v2"
  },
  "page": {
    "canonical": "https://ailoot.ai/models/th/google-lyria-3-clip-preview/",
    "description": "Lyria 3 Clip Preview เป็นโมเดลเพลงของ Google สำหรับคลิปสั้น ลูป และพรีวิว รับแรงบันดาลใจจากข้อความหรือภาพแล้วสร้างเพลง 30 วินาทีพร้อมเสียงสเตอริโอ 48 kHz รองรับเสียงร้อง เนื้อร้องที่มีเวลา และการเรียบเรียงดนตรีบรรเลง",
    "locale": "th",
    "md_url": "https://ailoot.ai/models/th/google-lyria-3-clip-preview/index.md",
    "title": "Lyria 3 Clip Preview — Ailoot",
    "url": "https://ailoot.ai/models/th/google-lyria-3-clip-preview/"
  },
  "rawModel": {
    "about": "Lyria 3 Clip Preview เป็นโปรไฟล์สร้างเพลงของ Google สำหรับคลิปสั้น ลูป และพรีวิว รับพรอมป์ต์ข้อความหรือแรงบันดาลใจจากภาพ แล้วคืนข้อความกับเสียง โปรไฟล์ที่เผยแพร่อธิบายคลิป 30 วินาทีพร้อมเสียงสเตอริโอ 48 kHz รวมเสียงร้อง เนื้อร้องที่มีเวลา และการเรียบเรียงเครื่องดนตรีครบชุด\n\n### อธิบายช่วงดนตรี\n\nระบุจุดประสงค์คลิปและอารมณ์ที่ควรสื่อ ธีมเปิดสั้นระบุบทนำที่ไม่หวือหวาและการเข้าท่อนหลักที่ชัดได้ เพลงพื้นหลังระบุจังหวะเร็วช้าและเนื้อเสียงที่ต้องใช้ใต้ฉากภาพได้ บอกว่าผลควรมีเสียงร้องหรือเป็นดนตรีบรรเลง และระบุองค์ประกอบดนตรีที่สำคัญต่อโจทย์\n\nให้โครงสร้างเล็กพอสำหรับคลิป ระบุส่วนเปิด วลีหลัก และจุดจบหรือลูป หากคำสำคัญ ให้แนวคิดหรือถ้อยคำเนื้อร้องที่ตั้งใจและตรวจผลร้องจริง โจทย์ดนตรีควรแยกเนื้อหาเสียงร้องออกจากคำสั่งเรียบเรียง\n\n### แรงบันดาลใจภาพและการเรียบเรียง\n\nเมื่อให้ภาพ อธิบายว่าภาพเพิ่มฉากหรืออารมณ์ใดให้คำขอเพลง ทิวทัศน์สงบและฉากกลางคืนที่คนแน่นบอกคนละทิศทาง แต่บทบาทอารมณ์ที่ต้องการยังควรชัดในข้อความ เก็บภาพกับพรอมป์ต์เมื่อเปรียบเทียบคลิปที่คืนมากับแนวคิดที่ตั้งใจ\n\nตรวจสมดุลเสียงร้อง เครื่องดนตรี และวลีดนตรีหลัก สำหรับลูป ให้ฟังจุดจบต่อจุดเริ่ม สำหรับพรีวิว ตรวจว่าเวลาสั้นสื่อทิศทางที่ตั้งใจหรือไม่ คลิปที่ประกอบงานตัดต่อควรตรวจคู่กับงานนั้น แทนการฟังเดี่ยวอย่างเดียว\n\n### เก็บสิ่งส่งมอบที่ฟังได้\n\nบันทึกเสียงจริงและข้อความประกอบกับโจทย์ ตรวจคุณสมบัติไฟล์เมื่อเตรียมเล่นหรือนำเข้าโปรแกรมตัดต่อ และเก็บข้อมูลเนื้อร้องหรือเวลาที่คำขอคืนมา เพลงคือเอาต์พุตโมเดล ส่วนการตัด ชื่อเรื่อง ทรานซิชันภาพ และมิกซ์ขั้นผลิตสุดท้ายจัดรอบชิ้นงานที่ตรวจแล้วนั้นได้\n\nโปรไฟล์ Clip Preview ที่ตรงนี้เหมาะกับสิ่งส่งมอบดนตรีกระชับ รักษาบทบาทงานสั้นให้แยกเมื่อวางแผนเพลงยาว และเลือกคลิปที่คืนมาด้วยการฟังวลีครบ ถ้อยคำที่ร้อง และจุดจบ",
    "alias_of": null,
    "aliases": [],
    "author": "Google",
    "available": null,
    "canonical_model": "google/lyria-3-clip-preview",
    "capabilities": {
      "context_length": 1048576,
      "manufacturer_input": [
        "text",
        "image"
      ],
      "manufacturer_output": [
        "text",
        "audio"
      ]
    },
    "ctx": null,
    "entity_type": "model",
    "formats": [
      "music"
    ],
    "id": "google/lyria-3-clip-preview",
    "input": [
      "text"
    ],
    "kind": "music",
    "max_out": null,
    "methods": [
      {
        "cache_read": null,
        "cache_write": null,
        "cache_write_1h": null,
        "cache_write_5m": null,
        "conditional_meter": null,
        "contract": {
          "data": {
            "all_results": "Save/fetch every returned clip and preserve actual ID, MIME and metadata. The method is synchronous; no separate Ailoot music generationpollingURL is introduced.",
            "errors": [
              {
                "code": null,
                "condition": "ฟิลด์จำเป็น รูปแบบการแทนข้อมูล หรือค่าพารามิเตอร์ไม่ถูกต้อง",
                "http_status": 400,
                "recovery": "แก้ฟิลด์ที่ระบุก่อนส่งคำขอสร้างครั้งใหม่",
                "type": "invalid_request_error"
              },
              {
                "code": null,
                "condition": "การตอบกลับที่ได้รับระบุว่าต้องตรวจสอบการดำเนินการหรือผลลัพธ์",
                "http_status": null,
                "recovery": "เก็บ ID การดำเนินการ/งานที่ส่งกลับมาแต่เดิม ส่วนหัวของคำขอ และการตอบกลับไว้ แล้วอ่านข้อมูลการดำเนินการเดิมนั้นต่อด้วยวิธีที่รองรับ ห้ามส่งคำขอสร้างซ้ำ",
                "type": "server_error"
              }
            ],
            "hints": [],
            "ignored_fields": [],
            "lifecycle": {
              "all_results": "Follow everyactualreturnedoutputandownedasset; no result is discardedbecauseindex0orcontent_urlalreadyexists.",
              "assets": [
                {
                  "http": "GET",
                  "path": "/v1/media/assets"
                },
                {
                  "http": "GET",
                  "path": "/v1/media/assets/{asset_id}"
                }
              ],
              "content": [
                {
                  "http": "GET",
                  "path": "/v1/media/assets/{asset_id}/content",
                  "url_source": "exact returned signed URL; never construct token"
                }
              ],
              "mode": "synchronous_result_then_owned_library",
              "operation_id_is_not_task_id": true,
              "status": [
                {
                  "http": "GET",
                  "id_source": "actual returned task_id or media library record",
                  "path": "/v1/media/tasks/{task_id}"
                }
              ],
              "unknown": "หากต้องตรวจสอบผลลัพธ์เพลง ให้เก็บ operation_id/X-Client-Request-ID เดิมและข้อมูลคลิปที่ส่งกลับ กู้คืนคลิปเดิมที่เป็นของคุณผ่านคลังสื่อด้วยค่า task_id หรือ asset_id จริง อย่าส่งคำขอเพลงซ้ำหรือสร้าง URL ตรวจสอบสถานะการสร้างจาก operation_id"
            },
            "material_combinations": [
              {
                "content_type": "application/json",
                "mode": "text_to_music",
                "required": [
                  "prompt"
                ]
              }
            ],
            "media_library": {
              "asset": {
                "fields": [
                  {
                    "description": null,
                    "name": "asset_id",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "task_id",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "output_key",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "family",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "model",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "method",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "status",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "content_type",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "sha256",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "size_bytes",
                    "type": "integer"
                  },
                  {
                    "description": null,
                    "name": "content_url",
                    "type": "string"
                  }
                ],
                "http": "GET",
                "id_source": "actual returned asset_id",
                "path": "/v1/media/assets/{asset_id}"
              },
              "content": {
                "http": "GET",
                "path": "/v1/media/assets/{asset_id}/content",
                "range_header_supported": true,
                "url_source": "Use exact returned signed content_url including its token; do not construct a token."
              },
              "expired_link": {
                "code": "link_expired",
                "http_status": 404,
                "recovery": "Read the asset again to obtain its refreshed signed content_url, then fetch that URL. Do not regenerate."
              },
              "list": {
                "all_pages": "Follow every returned next_cursor, then select records by their actual task_id/output_key.",
                "http": "GET",
                "output_fields": [
                  {
                    "description": null,
                    "name": "object",
                    "type": "string"
                  },
                  {
                    "description": null,
                    "name": "data",
                    "type": "asset[]"
                  },
                  {
                    "description": null,
                    "name": "next_cursor",
                    "type": "string|null"
                  }
                ],
                "parameters": [
                  {
                    "availability": "source_interface",
                    "default": null,
                    "default_known": false,
                    "enum": null,
                    "enum_known": false,
                    "name": "family",
                    "required": false,
                    "type": "string"
                  },
                  {
                    "availability": "source_interface",
                    "default": null,
                    "default_known": false,
                    "enum": null,
                    "enum_known": false,
                    "name": "cursor",
                    "required": false,
                    "type": "string"
                  },
                  {
                    "availability": "source_interface",
                    "default": 20,
                    "default_known": true,
                    "enum": null,
                    "enum_known": false,
                    "maximum": 100,
                    "minimum": 1,
                    "name": "limit",
                    "required": false,
                    "type": "integer"
                  }
                ],
                "path": "/v1/media/assets"
              },
              "revoke": {
                "http": "DELETE",
                "meaning": "Revokes/deletes the existing owned file; this is not generation cancellation.",
                "path": "/v1/media/assets/{asset_id}",
                "pending_status": "revoking",
                "success_statuses": [
                  202,
                  204
                ]
              },
              "task": {
                "http": "GET",
                "id_source": "actual returned task_id or media library record; operation_id is not task_id",
                "path": "/v1/media/tasks/{task_id}"
              }
            },
            "operation_modes": [
              "text_to_music"
            ],
            "outputs": {
              "all_results": "บันทึก/เรียกคลิปทุกชิ้นที่ส่งกลับ และเก็บ ID, MIME และเมทาดาทาจริงไว้ เมธอดนี้ทำงานแบบซิงโครนัส ไม่มีการเพิ่ม URL ตรวจสอบสถานะการสร้างเพลงของ Ailoot แยกต่างหาก",
              "family": "music",
              "fields": [
                {
                  "description": null,
                  "name": "model",
                  "type": "string"
                },
                {
                  "description": null,
                  "name": "response_id",
                  "type": "string"
                },
                {
                  "description": null,
                  "name": "data[]",
                  "type": "owned clip record"
                }
              ],
              "format": "คลิปเสียงทั้งหมดที่เป็นของคุณ / ลิงก์ JSON"
            },
            "parameters": [
              {
                "availability": "source_interface",
                "default": null,
                "default_known": false,
                "enum": [
                  "google/lyria-3-clip-preview"
                ],
                "enum_known": true,
                "name": "model",
                "required": true,
                "type": "string"
              },
              {
                "availability": "source_interface",
                "default": null,
                "default_known": false,
                "enum": null,
                "enum_known": false,
                "min_length": 1,
                "name": "prompt",
                "required": true,
                "type": "string"
              }
            ],
            "profile_binding": "Exact existing Ailoot model and method; interface constraints below do not assert provider qualification.",
            "unsupported": []
          },
          "hints": [
            "รูปแบบเมธอดและ ID ระบุอย่างแม่นยำ ความสามารถของผู้ให้บริการแยกจากการอนุญาตให้รับคำขอ"
          ],
          "input": {
            "material_types": [
              "text"
            ],
            "optional_controls": null,
            "required": null
          },
          "lifecycle": {
            "assets": [
              {
                "http": "GET",
                "path": "/v1/media/assets"
              },
              {
                "http": "GET",
                "path": "/v1/media/assets/{asset_id}"
              }
            ],
            "content": [
              {
                "http": "GET",
                "path": "/v1/media/assets/{asset_id}/content",
                "url_source": "exact returned signed URL; never construct token"
              }
            ],
            "mode": "synchronous_result_then_owned_library",
            "operation_id_is_not_task_id": true,
            "status": [
              {
                "http": "GET",
                "id_source": "ค่า task_id ที่ส่งกลับมาจริง หรือระเบียนในคลังสื่อ",
                "path": "/v1/media/tasks/{task_id}"
              }
            ],
            "unknown": "If a music result requires a check, keep the original operation_id/X-Client-Request-ID and returned clip information. Recover existing owned clips through the media library using actual task_id or asset_id values. Do not resubmit the music request or construct a generation polling URL from operation_id."
          },
          "method": {
            "http": "POST",
            "path": "/v1/music/generations"
          },
          "operation_modes": [
            "music"
          ],
          "output": {
            "family": [
              "music"
            ],
            "format": null,
            "multioutputs": "retain every actual response output"
          }
        },
        "ctx": null,
        "examples": [
          {
            "code": "set -eu\n: \"${AILOOT_API_KEY:?Set your Ailoot API key}\"\n: \"${AILOOT_PROMPT_FILE:?Set your actual UTF-8 music brief}\"\nexport AILOOT_PROMPT_FILE\npython3 - <<'PY_REQUEST'\nimport json,os\nfrom pathlib import Path\np=json.loads('{\"model\": \"google/lyria-3-clip-preview\", \"prompt\": \"\"}')\nf=Path(os.environ[\"AILOOT_PROMPT_FILE\"])\nif not f.is_file():raise SystemExit(\"Choose your actual UTF-8 brief\")\np['prompt']=f.read_text(encoding=\"utf-8\")\nif not p['prompt'].strip():raise SystemExit(\"Brief must contain text\")\nPath(\"request.json\").write_text(json.dumps(p,ensure_ascii=False))\nPY_REQUEST\ncurl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/music/generations \\\n  -H \"Authorization: Bearer $AILOOT_API_KEY\" -H 'Content-Type: application/json' \\\n  --data-binary @request.json -D response-headers.txt -o result.json\nexport AILOOT_API_KEY\npython3 - <<'PY_RESULT'\nimport json, os, subprocess\nfrom pathlib import Path\nfrom urllib.parse import urljoin, urlparse\nresult=json.loads(Path(\"result.json\").read_text(encoding=\"utf-8\"))\nprint(json.dumps(result,ensure_ascii=False,indent=2))\nfor number,clip in enumerate(result.get(\"data\") or []):\n    u=urlparse(urljoin(\"https://api.ailoot.ai\",clip[\"url\"]))\n    if u.scheme!=\"https\" or not u.hostname or u.username or u.password:\n        raise SystemExit(\"Result URL must be HTTPS without embedded credentials\")\n    owned=u.netloc==\"api.ailoot.ai\" and u.path.startswith(\"/v1/media/assets/\") and u.path.endswith(\"/content\")\n    args=[\"curl\",\"--fail-with-body\",\"--silent\",\"--show-error\",u.geturl()]\n    if owned: args += [\"-H\",\"Authorization: Bearer \"+os.environ[\"AILOOT_API_KEY\"]]\n    raw=subprocess.check_output(args)\n    ext=\"wav\" if raw.startswith(b\"RIFF\") and raw[8:12]==b\"WAVE\" else \"flac\" if raw.startswith(b\"fLaC\") else \"ogg\" if raw.startswith(b\"OggS\") else \"mp3\" if raw.startswith(b\"ID3\") or raw[:1]==b\"\\xff\" else \"bin\"\n    f=Path(\"music-\"+str(number)+\".\"+ext);f.write_bytes(raw)\n    print(\"Saved\",f,clip.get(\"asset_id\"))\n\nPY_RESULT\n",
            "label": "Compose from your actual music brief",
            "language": "bash"
          }
        ],
        "family": "openai",
        "fast_multiplier": null,
        "flex_multiplier": null,
        "fmt": "music",
        "http": "POST",
        "img_in": null,
        "img_out": null,
        "in": null,
        "input": [
          "text"
        ],
        "label": "เพลง",
        "max_out": null,
        "max_tool_calls": null,
        "out": null,
        "output": [
          "music"
        ],
        "path": "/v1/music/generations",
        "pricing_profiles": [
          {
            "dimensions": {},
            "label": "Core",
            "units": [
              {
                "amount": 0.04,
                "amount_unit": "usd_per_display_unit",
                "key": "music_output_clip",
                "label": "per clip",
                "side": "out"
              },
              {
                "amount": 0.04,
                "amount_unit": "usd_per_display_unit",
                "key": "per_request",
                "label": "per request",
                "side": "out"
              }
            ]
          }
        ],
        "request_model_id": "google/lyria-3-clip-preview",
        "route_label": "Core",
        "status_reads": [],
        "tiers": [],
        "tool_prices": null,
        "unit": "music_output_clip",
        "units": [
          {
            "key": "music_output_clip",
            "label": "per clip",
            "side": "out",
            "usd": 0.04
          },
          {
            "key": "per_request",
            "label": "per request",
            "side": "out",
            "usd": 0.04
          }
        ]
      }
    ],
    "model_aliases": [
      {
        "canonical_model_id": "google/lyria-3-clip-preview",
        "request_model_id": "google/lyria-3-clip-preview",
        "route_label": "Core"
      }
    ],
    "name": "Lyria 3 Clip Preview",
    "price": {
      "in": null,
      "in_label": null,
      "out": 0.04,
      "out_label": "per clip",
      "sort_in": null,
      "sort_out": null,
      "varies": false
    },
    "pricing_profiles": [
      {
        "applicability": {
          "client_selectable": false,
          "native_profile_selection_pending": true,
          "scope": "manufacturer_reference"
        },
        "dimensions": {
          "context_condition": {},
          "service_tier": "standard"
        },
        "label": "Ultra",
        "units": [
          {
            "amount": "0.08",
            "amount_unit": "usd_per_song",
            "conditions": {
              "context_condition": {},
              "service_tier": "standard"
            },
            "key": "music",
            "label": "music",
            "profile_index": 0,
            "quantity": "1",
            "rate_role": "binding_component_rate",
            "side": "out",
            "unit": "song"
          }
        ]
      }
    ],
    "public_id": "google/lyria-3-clip-preview",
    "short": "Lyria 3 Clip Preview เป็นโมเดลเพลงของ Google สำหรับคลิปสั้น ลูป และพรีวิว รับแรงบันดาลใจจากข้อความหรือภาพแล้วสร้างเพลง 30 วินาทีพร้อมเสียงสเตอริโอ 48 kHz รองรับเสียงร้อง เนื้อร้องที่มีเวลา และการเรียบเรียงดนตรีบรรเลง"
  },
  "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": "Lyria 3 Clip Preview เป็นโมเดลเพลงของ Google สำหรับคลิปสั้น ลูป และพรีวิว รับแรงบันดาลใจจากข้อความหรือภาพแล้วสร้างเพลง 30 วินาทีพร้อมเสียงสเตอริโอ 48 kHz รองรับเสียงร้อง เนื้อร้องที่มีเวลา และการเรียบเรียงดนตรีบรรเลง",
  "source": {
    "audit_sha256": "2e00086bcbfc28e64d0cebe97aa47c17d8d5618963027f8ffb9dc6123d7d25b1",
    "bridge_map_sha256": "1125275768b9636fc8461bc7da5061239a81ddfe508e2557843ca42c58ab0036",
    "raw_model_json_sha256": "fec490b055c3656daeaabb016507379a06ce23feaf7384be7294f95334db2fc0",
    "renderer_sha256": "890edb706fafafdd4f598bb324acf65fada58918b0911b97eb80e68be2ef65d9"
  },
  "sourceRevision": "ce36dcfd789df02c7983fc6a6afb6260bded40a9b7a1b684a660b2f1304d799e"
}
