Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

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.

Cena bazowa
$0.10USD / uruchomienie
Wykonanie
async
Typ modelu
audio
Pola wejściowe
2
Trasa produkcyjna

Wypróbuj model

Playground

Otwórz Playground
Wejście
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 lub GIF · maksymalnie 20 MiB

Optional image used as inspiration; the music will match the mood and theme of the image.
WyjściePrzykład
  1. Co chcesz zrobić dalej?

    Otwórz oryginał

Przykłady

Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.

  • Wejście
    {
      "prompt": "A 30-second upbeat synthwave instrumental with punchy drums and a soaring lead synth."
    }
    Otwórz wynik ↗

Karta modelu

Specyfikacja

Cennik

Wejście
$0 / 1M tokenów
Wyjście
$0 / 1M tokenów
Cena bazowa
$0.10 / uruchomienie

Kontekst i modalności

Wejście
Zdefiniowane przez schemat
Wyjście
audio

Możliwości

Czat
Nieobsługiwane
Wizja
Nieobsługiwane
Rozumowanie
Nieobsługiwane
Ustrukturyzowany wynik
Nieobsługiwane
Wywoływanie funkcji
Nieobsługiwane
Wejście audio
Nieobsługiwane

Dostęp

Dostawca
Google
ID modelu
google/lyria-3.5
Wykonanie
async
Bazowy 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.

Zacznij tworzyć

Wyślij pierwsze żądanie

Kompatybilny z OpenAI endpoint z jednolitym uwierzytelnianiem i śledzeniem użycia.

API produkcyjne
endpoint Unified Run API
https://api.sandbase.ai/v1/run
ID modelu
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

Schemat wejścia

2 parametrów · 1 wymaganych · 1 opcjonalnych

ParametrTypWymaganeOpis
promptstringWymaganeThe 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. · Minimalna długość: 1 · Maksymalna długość: 5000
imagestringOpcjonalneOptional image used as inspiration; the music will match the mood and theme of the image.
02

Schemat wyjścia

PoleTypOpis
idstringUnikalny identyfikator zadania generowania
statusstringStatus zadania: pending, running, completed, failed, timeout
modelstringModel użyty do generowania
outputsarrayTablica elementów wyjściowych
outputs[].urlstringURL wygenerowanego artefaktu
outputs[].content_typestringTyp MIME (np. image/png, video/mp4)
errorobject | nullSzczegóły błędu, jeśli wystąpił; null w przypadku powodzenia
error.typestringMaszynowo czytelny kod typu błędu
error.messagestringOpis błędu czytelny dla człowieka

Asynchroniczny przepływ pracy

Ten model działa asynchronicznie. Wyślij żądanie, a następnie odpytyuj o wynik.

  1. Wyślij: wykonaj POST do /v1/run i odczytaj zwrócone id.
  2. Odpytywanie: wykonuj GET /v1/run/{id}, aż status będzie równy completed, failed lub timeout.
  3. Pobierz: odczytaj outputs z ukończonej odpowiedzi.

Wybierz swój model

Porównaj modele

Wszystkie modele obrazu i wideo
ModelTypCena domyślnaWydano
Lyria 3.5Ten model
Google
Audio$0.10 / uruchomienie15 wrz 2026
GoogleAudio$0.04 / uruchomienie25 wrz 2026
GoogleAudio$0.03 / uruchomienie25 wrz 2026
GoogleAudio$0.05 / uruchomienie16 kwi 2026
GoogleAudio$0.08 / uruchomienie30 mar 2026
GoogleAudio$0.04 / uruchomienie30 mar 2026

Pytania

FAQ

Jak wywołać Google Lyria 3.5 przez SandBase?

Utwórz klucz API SandBase, a następnie wysyłaj żądania z identyfikatorem modelu "google/lyria-3.5" do Unified Run API (/v1/run) na https://api.sandbase.ai. Przykłady żądań na tej stronie pokazują dokładny payload.

Ile kosztuje Google Lyria 3.5?

$0 za 1M tokenów wejściowych i $0 za 1M tokenów wyjściowych, rozliczane per request z salda SandBase. Rabaty, jeśli są dostępne, są pokazane w cenniku na tej stronie.

Czy potrzebuję osobnego konta Google?

Nie. Jeden klucz API SandBase i saldo daje Ci dostęp do Google Lyria 3.5 oraz innych modeli w katalogu; nie musisz osobno zakładać konta u Google.