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.
- Prezzo base
- $0.04USD / esecuzione
- Esecuzione
- async
- Tipo di modello
- audio
- Campi di input
- 2
Prova il modello
Playground
PNG, JPEG, WebP o GIF · massimo 20 MiB
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Scheda del modello
Specifiche
Prezzi
- Input
- $0 / 1M token
- Output
- $0 / 1M token
- Prezzo base
- $0.04 / esecuzione
Contesto e modalità
- Input
- Definito dallo schema
- Output
- audio
Funzionalità
- Chat
- Non supportato
- Vision
- Non supportato
- Ragionamento
- Non supportato
- Output strutturato
- Non supportato
- Chiamata di funzione
- Non supportato
- Input audio
- Non supportato
Accesso
- Provider
- ID modello
- google/lyria-3-clip-preview
- Esecuzione
- async
- URL base
- 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.
Inizia a costruire
Invia la tua prima richiesta
Endpoint compatibile con OpenAI con autenticazione unificata e tracciamento dell'utilizzo.
# 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"Schema di input
2 parametri · 1 obbligatori · 1 facoltativi
| Parametro | Tipo | Obbligatorio | Descrizione |
|---|---|---|---|
prompt | string | Obbligatorio | 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. · Lunghezza minima: 1 · Lunghezza massima: 5000 |
image | string | Facoltativo | Optional image file or URL used as inspiration; the music will match the mood and theme of the image. |
Schema di output
| Campo | Tipo | Descrizione |
|---|---|---|
id | string | Identificatore univoco dell'attività di generazione |
status | string | Stato dell'attività: pending, running, completed, failed, timeout |
model | string | Modello usato per la generazione |
outputs | array | Array di elementi di output |
outputs[].url | string | URL dell'artefatto generato |
outputs[].content_type | string | Tipo MIME (ad esempio image/png, video/mp4) |
error | object | null | Dettagli dell'errore in caso di fallimento, null in caso di successo |
error.type | string | Codice del tipo di errore leggibile dalla macchina |
error.message | string | Descrizione dell'errore leggibile dall'utente |
Workflow asincrono
Questo modello funziona in modo asincrono. Invia una richiesta, quindi esegui il polling per ottenere il risultato.
- Invio: esegui POST su /v1/run e leggi il
idrestituito. - Polling: esegui GET /v1/run/{id} finché lo stato non è
completed,failedotimeout. - Recupero: leggi
outputsdalla risposta completata.
Scegli il tuo modello
Confronta i modelli
| Modello | Tipo | Prezzo predefinito | Rilasciato |
|---|---|---|---|
Lyria 3 Clip PreviewQuesto modello Google | Audio | $0.04 / esecuzione | 30 mar 2026 |
Google | Audio | $0.04 / esecuzione | 25 set 2026 |
Google | Audio | $0.03 / esecuzione | 25 set 2026 |
Google | Audio | $0.10 / esecuzione | 15 set 2026 |
Google | Audio | $0.05 / esecuzione | 16 apr 2026 |
Google | Audio | $0.08 / esecuzione | 30 mar 2026 |
Domande
FAQ
Come chiamo Google Lyria 3 Clip Preview tramite SandBase?
Crea una chiave API SandBase, poi invia richieste con l'ID modello "google/lyria-3-clip-preview" a Unified Run API (/v1/run) su https://api.sandbase.ai. Gli esempi di richiesta in questa pagina mostrano il payload esatto.
Quanto costa Google Lyria 3 Clip Preview?
$0 per 1M token di input e $0 per 1M token di output, addebitati per richiesta dal tuo saldo SandBase. Gli sconti, quando disponibili, sono indicati nei prezzi di questa pagina.
Mi serve un account Google separato?
No. Una sola chiave API e un solo saldo SandBase ti danno accesso a Google Lyria 3 Clip Preview e agli altri modelli del catalogo; non è necessario registrarsi separatamente su Google.
