Lyria 3 Pro Preview
google/lyria-3-pro-previewLyria 3 Pro is Google's music generation model for full-length songs up to about three minutes, with verses, choruses, bridges, vocals, and timed lyrics. It generates 48 kHz stereo MP3 audio from a text prompt, optionally guided by an image.
- ราคาพื้นฐาน
- $0.08USD / การรัน
- การทำงาน
- async
- ประเภโมเดล
- audio
- ฟิลด์อินพุต
- 2
ลองใช้โมเดล
Playground
PNG, JPEG, WebP หรือ GIF · สูงสุด 20 MiB
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
การ์ดโมเดล
ข้อมูลจำเพาะ
ราคา
- อินพุต
- $0 / 1M โทเค็น
- เอาต์พุต
- $0 / 1M โทเค็น
- ราคาพื้นฐาน
- $0.08 / การรัน
บริบทและ modalities
- อินพุต
- กำหนดตามสคีมา
- เอาต์พุต
- audio
ความสามารถ
- แชท
- ไม่รองรับ
- วิชัน
- ไม่รองรับ
- การให้เหตุผล
- ไม่รองรับ
- เอาต์พุตแบบมีโครงสร้าง
- ไม่รองรับ
- การเรียกใช้ฟังก์ชัน
- ไม่รองรับ
- อินพุตเสียง
- ไม่รองรับ
การเข้าถึง
- ผู้ให้บริการ
- รหัสโมเดล
- google/lyria-3-pro-preview
- การทำงาน
- async
- Base URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
API README
Lyria 3 Pro Preview
Lyria 3 Pro is Google's music model for full songs up to about three minutes: verses, choruses, and bridges with vocals and lyrics. An optional image sets the mood.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, up to 5000 chars, required | — | Genre, mood, instruments, tempo, vocal style, and lyrics. Up to 5,000 characters. |
image | image file or URL | — | Optional image whose mood the music should match. |
Output
| Field | Notes |
|---|---|
url | MP3 file. |
lyrics | Lyrics and caption the model used, when available. |
Billing
$0.08 per song.
| Request | Price |
|---|---|
| One song | $0.08 |
| 10 songs | $0.80 |
Failed runs are not charged.
Prompting
- Name the genre, tempo, and instrumentation first, then the vocal style.
- Mark lyric sections, e.g.
[Verse],[Chorus].
Also on SandBase
Related: google/lyria-3.5, google/lyria-3-clip-preview, google/lyria-2.
เริ่มสร้าง
ส่งคำขอแรกของคุณ
เอ็นด์พอยต์ที่ใช้งานร่วมกับ OpenAI ได้ พร้อมการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "google/lyria-3-pro-preview",
"image": "https://v3b.fal.media/files/b/0a93b559/qjT9o0CId1B65PbD6Yp06_9c94501900464c5aa98f302fa4b00375.png",
"prompt": "An uplifting indie pop song with bright acoustic guitar, warm female vocals, and a catchy chorus about a summer road trip, 110 BPM."
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"สคีมาขาเข้า
2 พารามิเตอร์ · จำเป็น 1 · ไม่บังคับ 1
| พารามิเตอร์ | ประเภท | จำเป็น | คำอธิบาย |
|---|---|---|---|
prompt | string | จำเป็น | The text prompt describing the music you want to generate. Include genre, mood, instrumentation, tempo, and vocal style for best results. Supports vocals, lyrics, and multiple languages. · ความยาวต่ำสุด: 1 · ความยาวสูงสุด: 5000 |
image | string | ไม่บังคับ | Optional image file or URL used as inspiration; the music will match the mood and theme of the image. |
สคีมาเอาต์พุต
| ฟิลด์ | ประเภท | คำอธิบาย |
|---|---|---|
id | string | ตัวระบุเฉพาะสำหรับงาน generation |
status | string | สถานะงาน: pending, running, completed, failed, timeout |
model | string | โมเดลที่ใช้สำหรับ generation |
outputs | array | อาร์เรย์ของรายการเอาต์พุต |
outputs[].url | string | URL ของอาร์ติแฟกต์ที่สร้างขึ้น |
outputs[].content_type | string | ประเภท MIME (เช่น image/png, video/mp4) |
error | object | null | รายละเอียดข้อผิดพลาดหากล้มเหลว, เป็น null เมื่อสำเร็จ |
error.type | string | รหัสประเภทข้อผิดพลาดที่เครื่องอ่านได้ |
error.message | string | คำอธิบายข้อผิดพลาดที่มนุษย์อ่านได้ |
เวิร์กโฟลว์แบบอะซิงก์
โมเดลนี้ทำงานแบบอะซิงโครนัส ส่งคำขอแล้วคอยตรวจผลลัพธ์
- ส่ง: POST ไปที่ /v1/run แล้วอ่าน
idที่ส่งกลับมา - คอยตรวจ: GET /v1/run/{id} จนกว่าสถานะจะเป็น
completed,failedหรือtimeout - ดึงข้อมูล: อ่าน
outputsจากการตอบกลับที่เสร็จสมบูรณ์
เลือกโมเดลของคุณ
เปรียบเทียบโมเดล
| โมเดล | ประเภท | ราคามาตรฐาน | เปิดตัว |
|---|---|---|---|
Lyria 3 Pro Previewโมเดลนี้ Google | เสียง | $0.08 / ครั้ง | 30 มี.ค. 2569 |
Google | เสียง | $0.04 / ครั้ง | 25 ก.ย. 2569 |
Google | เสียง | $0.03 / ครั้ง | 25 ก.ย. 2569 |
Google | เสียง | $0.10 / ครั้ง | 15 ก.ย. 2569 |
Google | เสียง | $0.05 / ครั้ง | 16 เม.ย. 2569 |
Google | เสียง | $0.04 / ครั้ง | 30 มี.ค. 2569 |
คำถาม
คำถามที่พบบ่อย
ฉันจะเรียก Google Lyria 3 Pro Preview ผ่าน SandBase ได้อย่างไร?
สร้าง SandBase API key แล้วส่งคำขอด้วย model ID "google/lyria-3-pro-preview" ไปที่ Unified Run API (/v1/run) ที่ https://api.sandbase.ai ตัวอย่างคำขอบนหน้านี้แสดง payload ที่ถูกต้องทั้งหมด
Google Lyria 3 Pro Preview ราคาเท่าไร?
$0 ต่อ 1M โทเค็นอินพุต และ $0 ต่อ 1M โทเค็นเอาต์พุต คิดค่าบริการต่อคำขอจากยอดคงเหลือ SandBase ของคุณ ส่วนลด หากมี จะแสดงไว้ในราคาในหน้านี้
ฉันจำเป็นต้องมีบัญชี Google แยกต่างหากไหม?
ไม่จำเป็น SandBase API key และยอดคงเหลือหนึ่งชุดให้คุณเข้าถึง Google Lyria 3 Pro Preview และโมเดลอื่น ๆ ในแค็ตตาล็อกได้ คุณไม่ต้องสมัครใช้งานกับ Google แยกต่างหาก
