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.
- Grundpreis
- $0.08USD / Ausführung
- Ausführung
- async
- Modelltyp
- audio
- Eingabefelder
- 2
Modell testen
Playground
PNG, JPEG, WebP oder GIF · maximal 20 MiB
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Modellkarte
Spezifikationen
Preisgestaltung
- Eingabe
- $0 / 1 Mio. Tokens
- Ausgabe
- $0 / 1 Mio. Tokens
- Basispreis
- $0.08 / Ausführung
Kontext & Modalitäten
- Eingabe
- Schema-definiert
- Ausgabe
- audio
Funktionen
- Chat
- Nicht unterstützt
- Vision
- Nicht unterstützt
- Reasoning
- Nicht unterstützt
- Strukturierte Ausgabe
- Nicht unterstützt
- Function Calling
- Nicht unterstützt
- Audioeingabe
- Nicht unterstützt
Zugriff
- Anbieter
- Modell-ID
- google/lyria-3-pro-preview
- Ausführung
- async
- Basis-URL
- https://api.sandbase.ai
- API
- Unified Run API
- Endpunkt
- /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.
Jetzt loslegen
Senden Sie Ihre erste Anfrage
OpenAI-kompatibler Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
# 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"Eingabeschema
2 Parameter · 1 erforderlich · 1 optional
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
prompt | string | Erforderlich | 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. · Minimale Länge: 1 · Maximale Länge: 5000 |
image | string | Optional | Optional image file or URL used as inspiration; the music will match the mood and theme of the image. |
Ausgabeschema
| Feld | Typ | Beschreibung |
|---|---|---|
id | string | Eindeutige Kennung für den Generierungsauftrag |
status | string | Status des Auftrags: pending, running, completed, failed, timeout |
model | string | Verwendetes Modell für die Generierung |
outputs | array | Array von Ausgabeelementen |
outputs[].url | string | URL des generierten Artefakts |
outputs[].content_type | string | MIME-Typ (z. B. image/png, video/mp4) |
error | object | null | Fehlerdetails bei Fehlschlag, bei Erfolg null |
error.type | string | Maschinenlesbarer Fehler-Typcode |
error.message | string | Menschenlesbare Fehlerbeschreibung |
Asynchroner Workflow
Dieses Modell läuft asynchron. Senden Sie eine Anfrage und pollen Sie dann das Ergebnis.
- Senden: Per POST an /v1/run senden und das zurückgegebene
idlesen. - Pollen: GET /v1/run/{id}, bis der Status
completed,failedodertimeoutist. - Abrufen:
outputsaus der abgeschlossenen Antwort lesen.
Wählen Sie Ihr Modell
Modelle vergleichen
| Modell | Typ | Standardpreis | Veröffentlicht |
|---|---|---|---|
Lyria 3 Pro PreviewDieses Modell Google | Audio | $0.08 / Lauf | 30. März 2026 |
Google | Audio | $0.04 / Lauf | 25. Sept. 2026 |
Google | Audio | $0.03 / Lauf | 25. Sept. 2026 |
Google | Audio | $0.10 / Lauf | 15. Sept. 2026 |
Google | Audio | $0.05 / Lauf | 16. Apr. 2026 |
Google | Audio | $0.04 / Lauf | 30. März 2026 |
Fragen
FAQ
Wie rufe ich Google Lyria 3 Pro Preview über SandBase auf?
Erstellen Sie einen SandBase API-Schlüssel und senden Sie dann Anfragen mit der Modell-ID "google/lyria-3-pro-preview" an Unified Run API (/v1/run) unter https://api.sandbase.ai. Die Anfragebeispiele auf dieser Seite zeigen die exakte Nutzlast.
Was kostet Google Lyria 3 Pro Preview?
$0 pro 1 Mio. Input-Tokens und $0 pro 1 Mio. Output-Tokens, pro Anfrage von Ihrem SandBase-Guthaben abgerechnet. Rabatte werden, falls verfügbar, in den Preisen auf dieser Seite angezeigt.
Benötige ich ein separates Google-Konto?
Nein. Mit einem SandBase API-Schlüssel und Guthaben erhalten Sie Zugriff auf Google Lyria 3 Pro Preview und die anderen Modelle im Katalog; Sie müssen sich nicht separat bei Google registrieren.
