Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Lyria 3 Pro Preview

google/lyria-3-pro-preview

Lyria 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
Ruta de producción

Probar el modelo

Entorno de pruebas

Abrir playground
Entrada
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.

PNG, JPEG, WebP o GIF · máximo 20 MiB

Optional image file or URL used as inspiration; the music will match the mood and theme of the image.
SalidaListo

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
Google
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

FieldTypeDefaultNotes
promptstring, up to 5000 chars, required—Genre, mood, instruments, tempo, vocal style, and lyrics. Up to 5,000 characters.
imageimage file or URL—Optional image whose mood the music should match.

Output

FieldNotes
urlMP3 file.
lyricsLyrics and caption the model used, when available.

Billing

$0.08 per song.

RequestPrice
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.

API de producción
Endpoint de Unified Run API
https://api.sandbase.ai/v1/run
ID del modelo
google/lyria-3-pro-preview
# 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"
01

Esquema de entrada

2 parámetros · 1 obligatorios · 1 opcionales

ParámetroTipoObligatorioDescripción
promptstringObligatorioThe 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
imagestringOpcionalOptional image file or URL used as inspiration; the music will match the mood and theme of the image.
02

Esquema de salida

CampoTipoDescripción
idstringIdentificador único de la tarea de generación
statusstringEstado de la tarea: pending, running, completed, failed, timeout
modelstringModelo usado para la generación
outputsarrayMatriz de elementos de salida
outputs[].urlstringURL del artefacto generado
outputs[].content_typestringTipo MIME (por ejemplo, image/png, video/mp4)
errorobject | nullDetalles del error si falla; null en caso de éxito
error.typestringCódigo de tipo de error legible por máquina
error.messagestringDescripció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.

  1. Enviar: haz POST a /v1/run y lee el id devuelto.
  2. Consultar: haz GET a /v1/run/{id} hasta que el estado sea completed, failed o timeout.
  3. Recuperar: lee outputs de la respuesta completada.

Elija su modelo

Comparar modelos

Todos los modelos de imagen y video
ModeloTipoPrecio predeterminadoLanzamiento
GoogleAudio$0.08 / ejecución30 mar 2026
GoogleAudio$0.04 / ejecución25 sept 2026
GoogleAudio$0.03 / ejecución25 sept 2026
GoogleAudio$0.10 / ejecución15 sept 2026
GoogleAudio$0.05 / ejecución16 abr 2026
GoogleAudio$0.04 / ejecución30 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.