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

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.

Precio base
$0.10USD / 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, 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 o GIF · máximo 20 MiB

Optional image used as inspiration; the music will match the mood and theme of the image.
SalidaEjemplo
  1. ¿Qué le gustaría hacer después?

    Abrir original

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

  • Entrada
    {
      "prompt": "A 30-second upbeat synthwave instrumental with punchy drums and a soaring lead synth."
    }
    Abrir resultado ↗

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

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.

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

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, 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
imagestringOpcionalOptional image 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
Lyria 3.5Este modelo
Google
Audio$0.10 / ejecución15 sept 2026
GoogleAudio$0.04 / ejecución25 sept 2026
GoogleAudio$0.03 / ejecución25 sept 2026
GoogleAudio$0.05 / ejecución16 abr 2026
GoogleAudio$0.08 / ejecución30 mar 2026
GoogleAudio$0.04 / ejecución30 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.