Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Lyria 3 Pro Preview

google/lyria-3-pro-preview

Lyria 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.

Harga dasar
$0.08USD / run
Eksekusi
async
Jenis model
audio
Field input
2
Rute produksi

Coba model ini

Playground

Buka playground
Input
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.

PNG, JPEG, WebP, atau GIF · maksimum 20 MiB

Optional image file or URL used as inspiration; the music will match the mood and theme of the image.
OutputSiap

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.08 / 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
Google
Model ID
google/lyria-3-pro-preview
Eksekusi
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

README API

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

FieldTypeDefaultNotes
promptstring, up to 5000 chars, required—Genre, mood, instruments, tempo, vocal style, and lyrics. Up to 5,000 characters.
imageimage file or URL—Optional image whose mood the music should match.

Output

FieldNotes
urlMP3 file.
lyricsLyrics and caption the model used, when available.

Billing

$0.08 per song.

RequestPrice
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.

Mulai membangun

Kirim permintaan pertama Anda

Endpoint yang kompatibel dengan OpenAI dengan autentikasi dan pelacakan penggunaan terpadu.

Production API
Endpoint Unified Run API
https://api.sandbase.ai/v1/run
Model ID
google/lyria-3-pro-preview
# 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"
01

Skema Input

2 parameter · 1 wajib · 1 opsional

ParameterTipeWajibDeskripsi
promptstringWajibThe 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
imagestringOpsionalOptional image file or URL used as inspiration; the music will match the mood and theme of the image.
02

Skema Output

FieldTipeDeskripsi
idstringPengidentifikasi unik untuk tugas generasi
statusstringStatus tugas: pending, running, completed, failed, timeout
modelstringModel yang digunakan untuk generasi
outputsarrayArray item output
outputs[].urlstringURL artefak yang dihasilkan
outputs[].content_typestringTipe MIME (mis. image/png, video/mp4)
errorobject | nullDetail error jika gagal, null jika berhasil
error.typestringKode jenis error yang dapat dibaca mesin
error.messagestringDeskripsi error yang dapat dibaca manusia

Alur Kerja Asinkron

Model ini berjalan secara asinkron. Kirim permintaan, lalu polling untuk hasilnya.

  1. Kirim: POST ke /v1/run dan baca id yang dikembalikan.
  2. Polling: GET /v1/run/{id} sampai status menjadi completed, failed, atau timeout.
  3. Ambil: baca outputs dari response yang selesai.

Pilih model Anda

Bandingkan model

Semua model gambar & video
ModelTipeHarga defaultRilis
GoogleAudio$0.08 / run30 Mar 2026
GoogleAudio$0.04 / run25 Sep 2026
GoogleAudio$0.03 / run25 Sep 2026
GoogleAudio$0.10 / run15 Sep 2026
GoogleAudio$0.05 / run16 Apr 2026
GoogleAudio$0.04 / run30 Mar 2026

Pertanyaan

FAQ

Bagaimana cara memanggil Google Lyria 3 Pro Preview melalui SandBase?

Buat kunci API SandBase, lalu kirim permintaan dengan model ID "google/lyria-3-pro-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 Pro 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 Pro Preview dan model lain di katalog; Anda tidak perlu mendaftar ke Google secara terpisah.