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

Lyria 3 Pro

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

ID โมเดล lyria3/pro
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/lyria3/pro?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

รับคีย์ API

Lyria 3 ระดับ Pro สำหรับสร้างเพลงจากข้อความ พร้อมเสียงร้อง เนื้อเพลง และภาพอ้างอิงที่เป็นตัวเลือก

Google · เสียง

ผลลัพธ์แรกของคุณจะแสดงที่นี่

สร้างคำขอด้านล่างและเรียกใช้ด้วยคีย์ API ของคุณ เอาต์พุตจะถูกคัดลอกไปยังพื้นที่จัดเก็บของเรา และเก็บไว้ตลอดไปหรือฟรี 7 วัน

สร้างคำขอ

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

•จำเป็น 88 / 5000

พรอมต์การสร้างดนตรีสำหรับ Lyria 3 ซึ่งสามารถสร้างเสียงร้องและเนื้อเพลงได้หลายภาษา เพื่อผลลัพธ์ที่ดีที่สุด ให้อธิบายแนวเพลงและอารมณ์ที่ต้องการ พร้อมเครื่องดนตรี จังหวะ และสไตล์เสียงร้อง

ขั้นสูง negative_prompt · image · enable_safety_checker
ค่าเริ่มต้น

Lyria 3 ไม่รองรับการใช้พรอมต์เชิงลบ

image_url
วางไฟล์ หรือ

แรงบันดาลใจทางดนตรีเสริมที่ระบุผ่าน URL รูปภาพ โดยอารมณ์และธีมของรูปภาพจะเป็นแนวทางให้ดนตรีที่โมเดลสร้าง

POST /run/lyria3/pro?wait=20 ใบเสนอราคา → $0.08
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/lyria3/pro?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

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

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

เกี่ยวกับ Lyria 3 Pro

รุ่น Pro ของ Lyria 3 จาก Google แต่งเพลงจากพรอมต์ความยาวสูงสุด 5000 อักขระ โดยระบุแนวเพลง อารมณ์ เครื่องดนตรี จังหวะ และเสียงร้องได้ รองรับ `image_url` ที่ไม่บังคับเพื่อใช้เป็นแรงบันดาลใจ และส่งคืนไฟล์ MP3 พร้อมเนื้อเพลงเมื่อเกี่ยวข้อง ไม่รองรับพรอมต์เชิงลบ

พารามิเตอร์

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

ชื่อประเภท ค่าเริ่มต้นค่าที่อนุญาต คำอธิบาย
promptจำเป็น
ประเภทstring
≤ 5,000 อักขระ
พรอมต์การสร้างดนตรีสำหรับ Lyria 3 ซึ่งสามารถสร้างเสียงร้องและเนื้อเพลงได้หลายภาษา เพื่อผลลัพธ์ที่ดีที่สุด ให้อธิบายแนวเพลงและอารมณ์ที่ต้องการ พร้อมเครื่องดนตรี จังหวะ และสไตล์เสียงร้อง
negative_promptไม่บังคับ
ประเภทstring
ค่าเริ่มต้น
Lyria 3 ไม่รองรับการใช้พรอมต์เชิงลบ
image_urlไม่บังคับ image
ประเภทurl · image
แรงบันดาลใจทางดนตรีเสริมที่ระบุผ่าน URL รูปภาพ โดยอารมณ์และธีมของรูปภาพจะเป็นแนวทางให้ดนตรีที่โมเดลสร้าง
enable_safety_checkerไม่บังคับ
ประเภทboolean
ค่าเริ่มต้นtrue
สามารถผ่อนปรนการคัดกรองได้โดยตั้งค่าเป็น false หากผู้เรียกมีสิทธิ์
จำเป็น ชื่อมาตรฐาน ซึ่งรองรับเช่นกัน

พารามิเตอร์ไฟล์รับ URL https:// สาธารณะ, data: URI ขนาดไม่เกิน 10 MB หรือ file_url ของไฟล์ที่อัปโหลด ไฟล์

เอาต์พุต

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "lyria3/pro",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 80,
    "usd": "0.08",
    "charged": 80,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    },
    "lyrics": "Caption: This is a high-energy Progressive House anthem, a subgenre of EDM defined by its massive scale and uplifting melodic content, all polished with a clean, powerful, and wide stereo production aesthetic. The rhythmic foundation is a punchy, heavily compressed four-on-the-floor kick drum, modeled after a classic Roland TR-909, providing a relentless pulse at 128 BPM. Supporting the kick are crisp, bright open hi-hats on the off-beats and a thick clap/snare layer on beats 2 and 4. The harmonic and melodic core is built from multiple synth layers: vast, shimmering supersaw synth pads play a soaring major-key chord progression; a powerful, monophonic sawtooth bassline plays the root notes and is aggressively side-chained to the kick drum to create the genre's signature 'pumping' effect. Above it all, a soaring supersaw lead synth—composed of multiple detuned sawtooth waves to create a thick, wide sound—plays a memorable, uplifting arpeggiated melody. A powerful, clean female vocal delivers the catchy hook, processed with significant hall reverb and delay to make it feel enormous and seamlessly blend with the synths. The entire instrumental bed (pads, lead, bass) is also heavily side-chained to the kick, ensuring every element ducks in volume with each beat to maximize the kick's punch and drive the track forward.\nMosic: 4.5\nBPM: 128.0"
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
ไฟล์ของคุณ คุณเลือกเองทุก outputs[].url คือสำเนาบนพื้นที่จัดเก็บของเรา: เก็บไว้ตลอดไป (คิดค่าบริการต่อ GB-เดือน) หรือฟรี 7 วัน โดยกำหนดได้ในการตั้งค่าบัญชีหรือ ?storage=
รูปแบบเดียวกันในทุกโมเดลtype, url, content_type, width, height และ duration สำหรับภาพ วิดีโอ และเสียงเหมือนกันทั้งหมด ส่วน output คือออบเจ็กต์ผลลัพธ์ของโมเดลเอง
ฟิลด์ของเอาต์พุต
audio
object {url, content_type, file_name, file_size}เอาต์พุตเพลงในรูปแบบ MP3
lyrics
string | nullเนื้อเพลงของแทร็ก ซึ่งอาจเป็นเนื้อเพลงที่สร้างขึ้นหรือระบุเอง

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

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