Lyria 3 Clip Preview
google/lyria-3-clip-previewLyria 3 Clip is Google's music generation model for 30-second clips, loops, and previews, including vocals and lyrics. It generates 48 kHz stereo MP3 audio from a text prompt, optionally guided by an image.
- Harga dasar
- $0.04USD / run
- Eksekusi
- async
- Jenis model
- audio
- Field input
- 2
Coba model ini
Playground
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Kartu model
Spesifikasi
Harga
- Input
- $0 / 1M token
- Output
- $0 / 1M token
- Harga dasar
- $0.04 / run
Konteks & modalitas
- Input
- Didefinisikan oleh skema
- Output
- audio
Kemampuan
- Chat
- Tidak didukung
- Vision
- Tidak didukung
- Penalaran
- Tidak didukung
- Output terstruktur
- Tidak didukung
- Pemanggilan fungsi
- Tidak didukung
- Input audio
- Tidak didukung
Akses
- Penyedia
- Model ID
- google/lyria-3-clip-preview
- Eksekusi
- async
- Base URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
Lyria 3 Clip Preview
Lyria 3 Clip is Google's music model for 30-second clips and loops, 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.04 per clip.
| Request | Price |
|---|---|
| One clip | $0.04 |
| 10 clips | $0.40 |
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-pro-preview, google/lyria-2.
Mulai membangun
Kirim permintaan pertama Anda
Endpoint yang kompatibel dengan OpenAI dengan autentikasi dan pelacakan penggunaan terpadu.
# 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-clip-preview",
"image": "https://v3b.fal.media/files/b/0a93b559/qjT9o0CId1B65PbD6Yp06_9c94501900464c5aa98f302fa4b00375.png",
"prompt": "A 30-second lo-fi hip hop loop with mellow Rhodes chords, vinyl crackle, and a laid-back drum groove."
}
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"Skema Input
2 parameter · 1 wajib · 1 opsional
| Parameter | Tipe | Wajib | Deskripsi |
|---|---|---|---|
prompt | string | Wajib | 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. · Panjang minimum: 1 · Panjang maksimum: 5000 |
image | string | Opsional | Optional image file or URL used as inspiration; the music will match the mood and theme of the image. |
Skema Output
| Field | Tipe | Deskripsi |
|---|---|---|
id | string | Pengidentifikasi unik untuk tugas generasi |
status | string | Status tugas: pending, running, completed, failed, timeout |
model | string | Model yang digunakan untuk generasi |
outputs | array | Array item output |
outputs[].url | string | URL artefak yang dihasilkan |
outputs[].content_type | string | Tipe MIME (mis. image/png, video/mp4) |
error | object | null | Detail error jika gagal, null jika berhasil |
error.type | string | Kode jenis error yang dapat dibaca mesin |
error.message | string | Deskripsi error yang dapat dibaca manusia |
Alur Kerja Asinkron
Model ini berjalan secara asinkron. Kirim permintaan, lalu polling untuk hasilnya.
- Kirim: POST ke /v1/run dan baca
idyang dikembalikan. - Polling: GET /v1/run/{id} sampai status menjadi
completed,failed, atautimeout. - Ambil: baca
outputsdari response yang selesai.
Pilih model Anda
Bandingkan model
| Model | Tipe | Harga default | Rilis |
|---|---|---|---|
Lyria 3 Clip PreviewModel ini Google | Audio | $0.04 / run | 30 Mar 2026 |
Google | Audio | $0.04 / run | 25 Sep 2026 |
Google | Audio | $0.03 / run | 25 Sep 2026 |
Google | Audio | $0.10 / run | 15 Sep 2026 |
Google | Audio | $0.05 / run | 16 Apr 2026 |
Google | Audio | $0.08 / run | 30 Mar 2026 |
Pertanyaan
FAQ
Bagaimana cara memanggil Google Lyria 3 Clip Preview melalui SandBase?
Buat kunci API SandBase, lalu kirim permintaan dengan model ID "google/lyria-3-clip-preview" ke Unified Run API (/v1/run) di https://api.sandbase.ai. Contoh permintaan di halaman ini menunjukkan payload yang tepat.
Berapa biaya Google Lyria 3 Clip Preview?
$0 per 1 juta token input dan $0 per 1 juta token output, ditagihkan per permintaan dari saldo SandBase Anda. Diskon, jika tersedia, ditampilkan pada harga di halaman ini.
Apakah saya memerlukan akun Google terpisah?
Tidak. Satu kunci API dan saldo SandBase memberi Anda akses ke Google Lyria 3 Clip Preview dan model lain di katalog; Anda tidak perlu mendaftar ke Google secara terpisah.
