lyria-3.5
Google Lyria music generation on POST /v1/music. lyria-3.5 is temporarily unavailable; use lyria-3-pro-preview or lyria-3-clip-preview.
Native waveform: 44.1 kHz stereo audio. POST /v1/music.. Live price and availability are on GET /v1/models/lyria-3.5.
- Call POST /v1/music with a JSON body. The prompt is text at the top level; prompt at the top level or in params works too.
- lyria-3.5 is temporarily unavailable. Use lyria-3-pro-preview for full songs up to 3 minutes, or lyria-3-clip-preview for 30-second clips.
- result.artifacts has one MP3, 44.1 kHz stereo. result.duration is the real length in seconds. result.lyrics has the sung words and result.caption describes the arrangement.
- Timings come from Google and differ by model. Lyria 3 Clip times every line: each item in result.lyrics_lines has start and end. Lyria 3 Pro times only the start of each section (verse, chorus): the first line of a section has start, and every line has section_start and section_end. result.lyrics_sections has each section with start, end, and text. An end with no time from Google is the next section start, or the end of the song. There are no per-word timings.
- Length: Lyria 3 Pro picks it. duration_seconds is a hint and Pro usually returns a longer song. Lyria 3 Clip is always about 30 seconds. Lyria is billed per song, not per second.
Parameters
| Field | Type | Description |
|---|---|---|
textRequired | string | Top level of the body, not inside params. The music to make: genre, instruments, mood, and style. prompt is accepted as the same field. |
params.lyrics | string | Words to sing, up to 5000 characters. Section tags like [Verse] and [Chorus] are allowed. Omit it and the model writes the lyrics. |
params.instrumentalDefault false | boolean | No vocals. lyrics is ignored when this is true. |
params.duration_seconds | integer | Lyria 3 Pro: 30, 60, 90, 120, or 180, as a hint only. Pro usually returns a longer song (30 s requests came back 50 to 116 s); result.duration has the real length. Lyria 3 Clip ignores it and always returns about 30 seconds. |
params.bpmDefault 120 | integer | Tempo in beats per minute, 40 to 240. |
params.negative_prompt | string | Instruments, styles, or sounds to leave out, for example vocals. Up to 500 characters. |
params.temperatureDefault 1.0 | number | 0.0 to 2.0. Higher varies the take more. |
params.seed | integer | Fixes the take, so the same body returns the same music. |
Example
curl https://api.pascalai.co/v1/music \
-H "Authorization: Bearer $PASCAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "lyria-3-pro-preview",
"text": "An upbeat lo-fi hip hop beat with smooth electric piano and ambient vinyl crackle.",
"params": {
"bpm": 90
}
}'
curl https://api.pascalai.co/v1/music/$JOB_ID \
-H "Authorization: Bearer $PASCAL_API_KEY"