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

Lyria 3.5

google/lyria-3.5

Lyria 3.5 is Google's flagship music generation model for full-length songs up to a few minutes, with verses, choruses, bridges, expressive vocals, timed lyrics, and rich instrumental arrangements. It generates high-quality 44.1kHz stereo audio from a text prompt, optionally guided by an image.

Harga dasar
$0.10USD / 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, vocals, and structure. Use duration hints (e.g. 'a 2-minute track') or section markers like '[0:00-0:30] Intro: ...' to control length and structure. Supports English, German, Spanish, French, Hindi, Japanese, Korean, and Portuguese.

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

Optional image used as inspiration; the music will match the mood and theme of the image.
OutputContoh
  1. Apa yang ingin Anda lakukan selanjutnya?

    Buka asli

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

  • Input
    {
      "prompt": "A 30-second upbeat synthwave instrumental with punchy drums and a soaring lead synth."
    }
    Buka hasil ↗

Kartu model

Spesifikasi

Harga

Input
$0 / 1M token
Output
$0 / 1M token
Harga dasar
$0.10 / 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.5
Eksekusi
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

README API

Lyria 3.5

Lyria 3.5 is Google's music model for full songs: verses, choruses, and bridges with expressive vocals, timed lyrics, and full arrangements. An optional image sets the mood.

Fields

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

Billing

$0.10 per song.

RequestPrice
One song$0.10

Failed runs are not charged.

Prompting

  • Name the genre, tempo, and instrumentation first, then the vocal style.
  • Mark lyric sections, e.g. [Verse], [Chorus].

Limits

  • One song per request.

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.5
# 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.5",
  "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, vocals, and structure. Use duration hints (e.g. 'a 2-minute track') or section markers like '[0:00-0:30] Intro: ...' to control length and structure. Supports English, German, Spanish, French, Hindi, Japanese, Korean, and Portuguese. · Panjang minimum: 1 · Panjang maksimum: 5000
imagestringOpsionalOptional image 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
Lyria 3.5Model ini
Google
Audio$0.10 / run15 Sep 2026
GoogleAudio$0.04 / run25 Sep 2026
GoogleAudio$0.03 / run25 Sep 2026
GoogleAudio$0.05 / run16 Apr 2026
GoogleAudio$0.08 / run30 Mar 2026
GoogleAudio$0.04 / run30 Mar 2026

Pertanyaan

FAQ

Bagaimana cara memanggil Google Lyria 3.5 melalui SandBase?

Buat kunci API SandBase, lalu kirim permintaan dengan model ID "google/lyria-3.5" 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.5?

$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.5 dan model lain di katalog; Anda tidak perlu mendaftar ke Google secara terpisah.