Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

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.

Базовая цена
$0.08USD / запуск
Выполнение
async
Тип модели
audio
Поля ввода
2
Маршрут продакшена

Попробовать модель

Песочница

Открыть playground
Ввод
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 или GIF · максимум 20 MiB

Optional image file or URL used as inspiration; the music will match the mood and theme of the image.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

Карточка модели

Характеристики

Цены

Вход
$0 / 1 млн токенов
Выход
$0 / 1 млн токенов
Базовая цена
$0.08 / запуск

Контекст и модальности

Вход
Определяется схемой
Выход
audio

Возможности

Чат
Не поддерживается
Зрение
Не поддерживается
Рассуждение
Не поддерживается
Структурированный вывод
Не поддерживается
Вызов функций
Не поддерживается
Аудиовход
Не поддерживается

Доступ

Провайдер
Google
ID модели
google/lyria-3-pro-preview
Выполнение
async
Базовый URL
https://api.sandbase.ai
API
Unified Run API
Эндпоинт
/v1/run

README по 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.

Начните разработку

Отправьте свой первый запрос

Совместимая с OpenAI конечная точка с единообразной аутентификацией и учётом использования.

Production API
конечная точка Unified Run API
https://api.sandbase.ai/v1/run
ID модели
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

Схема ввода

2 параметров · 1 обязательных · 1 необязательных

ПараметрТипОбязательныйОписание
promptstringОбязательный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. · Мин. длина: 1 · Макс. длина: 5000
imagestringНеобязательныйOptional image file or URL used as inspiration; the music will match the mood and theme of the image.
02

Схема вывода

ПолеТипОписание
idstringУникальный идентификатор задачи генерации
statusstringСтатус задачи: pending, running, completed, failed, timeout
modelstringМодель, использованная для генерации
outputsarrayМассив элементов вывода
outputs[].urlstringURL сгенерированного артефакта
outputs[].content_typestringMIME-тип (например, image/png, video/mp4)
errorobject | nullСведения об ошибке, если не удалось; null при успехе
error.typestringКод ошибки для машинной обработки
error.messagestringОписание ошибки, понятное человеку

Асинхронный workflow

Эта модель работает асинхронно. Отправьте запрос, затем опрашивайте результат.

  1. Отправка: выполните POST на /v1/run и прочитайте возвращаемое id.
  2. Опрос: выполняйте GET /v1/run/{id}, пока статус не станет completed, failed или timeout.
  3. Получение: прочитайте outputs из завершенного ответа.

Выберите свою модель

Сравнить модели

Все модели для изображений и видео
МодельТипЦена по умолчаниюВыпущена
Lyria 3 Pro PreviewЭта модель
Google
Аудио$0.08 / запуск30 мар. 2026 г.
GoogleАудио$0.04 / запуск25 сент. 2026 г.
GoogleАудио$0.03 / запуск25 сент. 2026 г.
GoogleАудио$0.10 / запуск15 сент. 2026 г.
GoogleАудио$0.05 / запуск16 апр. 2026 г.
GoogleАудио$0.04 / запуск30 мар. 2026 г.

Вопросы

FAQ

Как вызвать Google Lyria 3 Pro Preview через SandBase?

Создайте API key SandBase, затем отправляйте запросы с идентификатором модели "google/lyria-3-pro-preview" на Unified Run API (/v1/run) по адресу https://api.sandbase.ai. Примеры запросов на этой странице показывают точный payload.

Сколько стоит Google Lyria 3 Pro Preview?

$0 за 1 млн входных токенов и $0 за 1 млн выходных токенов, списывается за каждый запрос с баланса SandBase. Скидки, если доступны, указаны в ценах на этой странице.

Нужен ли мне отдельный аккаунт Google?

Нет. Один API key SandBase и один баланс дают вам доступ к Google Lyria 3 Pro Preview и другим моделям в каталоге; отдельно регистрироваться в Google не нужно.