Lyria 3.5
google/lyria-3.5Lyria 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.
- Precio base
- $0.10USD / ejecución
- Ejecución
- async
- Tipo de modelo
- audio
- Campos de entrada
- 2
Probar el modelo
Entorno de pruebas
PNG, JPEG, WebP o GIF · máximo 20 MiB
¿Qué le gustaría hacer después?
Ejemplos
Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
- Abrir resultado ↗
Entrada
{ "prompt": "A 30-second upbeat synthwave instrumental with punchy drums and a soaring lead synth." }
Ficha del modelo
Especificaciones
Precios
- Entrada
- $0 / 1M tokens
- Salida
- $0 / 1M tokens
- Precio base
- $0.10 / ejecución
Contexto y modalidades
- Entrada
- Definido por esquema
- Salida
- audio
Capacidades
- Chat
- No compatible
- Visión
- No compatible
- Razonamiento
- No compatible
- Salida estructurada
- No compatible
- Llamadas a funciones
- No compatible
- Entrada de audio
- No compatible
Acceso
- Proveedor
- ID del modelo
- google/lyria-3.5
- Ejecución
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README de la 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
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Genre, mood, instruments, tempo, vocal style, and lyrics. Up to 5,000 characters. |
image | image URL | — | Optional image whose mood the music should match. |
Billing
$0.10 per song.
| Request | Price |
|---|---|
| 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.
Empiece a construir
Envíe su primera solicitud
Endpoint compatible con OpenAI con autenticación unificada y seguimiento de uso.
# 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"Esquema de entrada
2 parámetros · 1 obligatorios · 1 opcionales
| Parámetro | Tipo | Obligatorio | Descripción |
|---|---|---|---|
prompt | string | Obligatorio | 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. · Longitud mínima: 1 · Longitud máxima: 5000 |
image | string | Opcional | Optional image used as inspiration; the music will match the mood and theme of the image. |
Esquema de salida
| Campo | Tipo | Descripción |
|---|---|---|
id | string | Identificador único de la tarea de generación |
status | string | Estado de la tarea: pending, running, completed, failed, timeout |
model | string | Modelo usado para la generación |
outputs | array | Matriz de elementos de salida |
outputs[].url | string | URL del artefacto generado |
outputs[].content_type | string | Tipo MIME (por ejemplo, image/png, video/mp4) |
error | object | null | Detalles del error si falla; null en caso de éxito |
error.type | string | Código de tipo de error legible por máquina |
error.message | string | Descripción del error legible por humanos |
Flujo asíncrono
Este modelo se ejecuta de forma asíncrona. Envía una solicitud y luego consulta el resultado.
- Enviar: haz POST a /v1/run y lee el
iddevuelto. - Consultar: haz GET a /v1/run/{id} hasta que el estado sea
completed,failedotimeout. - Recuperar: lee
outputsde la respuesta completada.
Elija su modelo
Comparar modelos
| Modelo | Tipo | Precio predeterminado | Lanzamiento |
|---|---|---|---|
Lyria 3.5Este modelo Google | Audio | $0.10 / ejecución | 15 sept 2026 |
Google | Audio | $0.04 / ejecución | 25 sept 2026 |
Google | Audio | $0.03 / ejecución | 25 sept 2026 |
Google | Audio | $0.05 / ejecución | 16 abr 2026 |
Google | Audio | $0.08 / ejecución | 30 mar 2026 |
Google | Audio | $0.04 / ejecución | 30 mar 2026 |
Preguntas
FAQ
¿Cómo llamo a Google Lyria 3.5 a través de SandBase?
Crea una clave API de SandBase y luego envía solicitudes con el ID de modelo "google/lyria-3.5" a Unified Run API (/v1/run) en https://api.sandbase.ai. Los ejemplos de solicitud de esta página muestran el payload exacto.
¿Cuánto cuesta Google Lyria 3.5?
$0 por 1M tokens de entrada y $0 por 1M tokens de salida, facturado por solicitud desde tu saldo de SandBase. Los descuentos, cuando están disponibles, se muestran en los precios de esta página.
¿Necesito una cuenta separada de Google?
No. Una sola clave API y saldo de SandBase te dan acceso a Google Lyria 3.5 y a los demás modelos del catálogo; no necesitas registrarte aparte en Google.
