---
title: Duration and timing — Lyria 3 Pro | Runware Docs
url: https://runware.ai/docs/models/google-lyria-3-pro/guides/duration-and-timing
description: "How to set the length of a Lyria 3 Pro track and time its sections: a length stated in the prompt, timestamped sections and an intensity for each one."
---
### [Introduction](https://runware.ai/docs/models/google-lyria-3-pro/guides/duration-and-timing#introduction)

Lyria 3 Pro has **no duration field**. A track runs up to 184 seconds, and its length comes from the prompt: a stated length such as "a 60-second track", or a timeline of sections with a start and an end time each. **Timestamped sections** also lay out what happens when, which is how a track follows the structure of a video.

[Listen to audio](https://runware.ai/docs/assets/hero.BcVAQHps.mp3)

> **Prompt**: A cinematic electronic score for a 90-second electric SUV launch film, 100 BPM, instrumental. [0:00 - 0:20] Intro: a low synth drone and distant piano notes over a quiet pulse. Intensity: 2/10 [0:20 - 0:45] Build: a deep bass line and filtered drums enter, strings rise underneath. Intensity: 5/10 [0:45 - 1:15] Reveal: full drums, soaring strings and a wide synth lead. Intensity: 9/10 [1:15 - 1:30] Outro: the drums stop and the strings resolve on one warm chord. Intensity: 3/10

This guide covers stating a length, writing timestamped sections, setting the intensity of each section and checking the timing.

### [Stating a length](https://runware.ai/docs/models/google-lyria-3-pro/guides/duration-and-timing#stating-a-length)

**Write the length into the first sentence** of the prompt, in seconds or minutes. Leave it out and the model decides how long the song runs.

[Listen to audio](https://runware.ai/docs/assets/length.D4pz4zs-.mp3)

> **Prompt**: A 60-second lo-fi hip hop instrumental for a study-with-me livestream, 80 BPM. A dusty drum loop, mellow electric piano chords, a warm upright bass and soft vinyl crackle. Calm and steady throughout, ending on a fade-out.

The track above runs 59 seconds against the 60 its prompt asks for. **The ceiling is 184 seconds**, the longest track one request returns. Describe the ending along with the length, such as "ending on a fade-out", when the track has to close under a final shot.

[Lyria 3 Clip](https://runware.ai/docs/models/google-lyria-3-clip) returns a fixed 30 seconds and shapes a track through tempo and intensity, which [Generating clips](https://runware.ai/docs/models/google-lyria-3-clip/guides/generating-clips) covers.

### [Timestamped sections](https://runware.ai/docs/models/google-lyria-3-pro/guides/duration-and-timing#timestamped-sections)

A timeline gives **each section its own line**. The line opens with a time range in `[m:ss - m:ss]` form, then a short name for the section, such as Intro, Verse, Build or Outro, and what plays in it. In the request, each line break is a `\n` inside the prompt string:

**TypeScript**:

```typescript
import { createClient } from '@runware/sdk'

const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()

const [result] = await client.run({
  model: 'google:lyria@3-pro',
  positivePrompt: 'A cinematic electronic score for a 90-second electric SUV launch film, 100 BPM, instrumental.\n[0:00 - 0:20] Intro: a low synth drone and distant piano notes over a quiet pulse. Intensity: 2/10\n[0:20 - 0:45] Build: a deep bass line and filtered drums enter, strings rise underneath. Intensity: 5/10\n[0:45 - 1:15] Reveal: full drums, soaring strings and a wide synth lead. Intensity: 9/10\n[1:15 - 1:30] Outro: the drums stop and the strings resolve on one warm chord. Intensity: 3/10'
})
```

**Python**:

```python
import asyncio
import os

from runware import Runware

async def main():
    async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
        results = await client.run({
            "model": "google:lyria@3-pro",
            "positivePrompt": "A cinematic electronic score for a 90-second electric SUV launch film, 100 BPM, instrumental.\n[0:00 - 0:20] Intro: a low synth drone and distant piano notes over a quiet pulse. Intensity: 2/10\n[0:20 - 0:45] Build: a deep bass line and filtered drums enter, strings rise underneath. Intensity: 5/10\n[0:45 - 1:15] Reveal: full drums, soaring strings and a wide synth lead. Intensity: 9/10\n[1:15 - 1:30] Outro: the drums stop and the strings resolve on one warm chord. Intensity: 3/10"
        })

asyncio.run(main())
```

**cURL**:

```bash
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "taskType": "audioInference",
      "taskUUID": "c8eb1cfe-7cda-4eff-9272-cb9804505c3a",
      "model": "google:lyria@3-pro",
      "positivePrompt": "A cinematic electronic score for a 90-second electric SUV launch film, 100 BPM, instrumental.\n[0:00 - 0:20] Intro: a low synth drone and distant piano notes over a quiet pulse. Intensity: 2/10\n[0:20 - 0:45] Build: a deep bass line and filtered drums enter, strings rise underneath. Intensity: 5/10\n[0:45 - 1:15] Reveal: full drums, soaring strings and a wide synth lead. Intensity: 9/10\n[1:15 - 1:30] Outro: the drums stop and the strings resolve on one warm chord. Intensity: 3/10"
    }
  ]'
```

**CLI**:

```bash
runware run google:lyria@3-pro \
  positivePrompt="A cinematic electronic score for a 90-second electric SUV launch film, 100 BPM, instrumental.
[0:00 - 0:20] Intro: a low synth drone and distant piano notes over a quiet pulse. Intensity: 2/10
[0:20 - 0:45] Build: a deep bass line and filtered drums enter, strings rise underneath. Intensity: 5/10
[0:45 - 1:15] Reveal: full drums, soaring strings and a wide synth lead. Intensity: 9/10
[1:15 - 1:30] Outro: the drums stop and the strings resolve on one warm chord. Intensity: 3/10"
```

**JSON**:

```json
{
  "taskType": "audioInference",
  "taskUUID": "c8eb1cfe-7cda-4eff-9272-cb9804505c3a",
  "model": "google:lyria@3-pro",
  "positivePrompt": "A cinematic electronic score for a 90-second electric SUV launch film, 100 BPM, instrumental.\n[0:00 - 0:20] Intro: a low synth drone and distant piano notes over a quiet pulse. Intensity: 2/10\n[0:20 - 0:45] Build: a deep bass line and filtered drums enter, strings rise underneath. Intensity: 5/10\n[0:45 - 1:15] Reveal: full drums, soaring strings and a wide synth lead. Intensity: 9/10\n[1:15 - 1:30] Outro: the drums stop and the strings resolve on one warm chord. Intensity: 3/10"
}
```

For an instrumental, `outputs.lyrics` lists **one marker per section**, four here, so you can check the count against the timeline you wrote.

**Take the times from the edit.** In a launch film where the vehicle appears at 0:45, the prompt starts the Reveal section at 0:45, so the full band is set to arrive with the shot. Run the ranges **back to back** from `0:00`, with no gaps or overlaps, and end the last one at the length you want.

### [Intensity](https://runware.ai/docs/models/google-lyria-3-pro/guides/duration-and-timing#intensity)

`Intensity: n/10` at the end of a section line sets **how hard that section hits**, from a near-empty 1 to a full band at 10. Set it on every section, so the curve from one section to the next is the one you wrote.

[Listen to audio](https://runware.ai/docs/assets/workout.Cvs4nxBs.mp3)

> **Prompt**: A high-energy electronic workout track for a HIIT class video, 128 BPM, instrumental. [0:00 - 0:30] Warm-up: a steady kick drum and a simple bass line. Intensity: 4/10 [0:30 - 1:00] Work: driving drums, distorted synth stabs and a rising riser. Intensity: 9/10 [1:00 - 1:20] Rest: the drums drop out, leaving a soft pad and a ticking hi-hat. Intensity: 2/10 [1:20 - 1:50] Work: the full drums and synths return, harder than before. Intensity: 10/10 [1:50 - 2:30] Cool-down: half-time drums and warm pads that slowly fade out. Intensity: 3/10

**Write the intensity curve from the plan the track serves.** For a class, each work interval gets a high value and each rest a low one, so the energy of the track follows the intervals. In the track above, the rest at 2/10 plays about 15 dB quieter than the work on either side of it. Describe what changes as well as the number: "the drums drop out" says how a section gets quieter, and the number says by how much.

### [Checking the timing](https://runware.ai/docs/models/google-lyria-3-pro/guides/duration-and-timing#checking-the-timing)

**The changes land near the times you write**, and not always on them. In the workout track, the first work interval and the rest start at 0:30 and 1:00 as written, while the cool-down comes in ten seconds late and the track ends at 2:20 rather than 2:30. Listen to the track against the edit, and trim it or move the cut where a change has to meet a shot.

### [Tips](https://runware.ai/docs/models/google-lyria-3-pro/guides/duration-and-timing#tips)

1. **State the length in the first sentence.** A length the prompt leaves out is decided by the model.
    
2. **Run the ranges back to back.** Start at `0:00` and end the last range at the length you want.
    
3. **Check the changes against the edit.** Sections land near their times, so trim the track where a change has to meet a cut.
    
4. **Pair every intensity with a change.** Say what drops out or comes in, then give the number.