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.
- Precio base
- $0.08USD / 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
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Ficha del modelo
Especificaciones
Precios
- Entrada
- $0 / 1M tokens
- Salida
- $0 / 1M tokens
- Precio base
- $0.08 / 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-pro-preview
- Ejecución
- async
- URL base
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README de la API
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.
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-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"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, and vocal style for best results. Supports vocals, lyrics, and multiple languages. · Longitud mínima: 1 · Longitud máxima: 5000 |
image | string | Opcional | Optional image file or URL 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 Pro PreviewEste modelo Google | Audio | $0.08 / ejecución | 30 mar 2026 |
Google | Audio | $0.04 / ejecución | 25 sept 2026 |
Google | Audio | $0.03 / ejecución | 25 sept 2026 |
Google | Audio | $0.10 / ejecución | 15 sept 2026 |
Google | Audio | $0.05 / ejecución | 16 abr 2026 |
Google | Audio | $0.04 / ejecución | 30 mar 2026 |
Preguntas
FAQ
¿Cómo llamo a Google Lyria 3 Pro Preview a través de SandBase?
Crea una clave API de SandBase y luego envía solicitudes con el ID de modelo "google/lyria-3-pro-preview" 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 Pro Preview?
$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 Pro Preview y a los demás modelos del catálogo; no necesitas registrarte aparte en Google.
