# Mureka 9.5 Lyrics Video

> Creates a lyrics video from generated or uploaded audio, with selectable layouts, aspect ratios, backgrounds, and lyric-row or time-range selection.


## Overview

- **Endpoint**: `https://fal.run/mureka/api/generate/lyrics-video`
- **Model ID**: `mureka/api/generate/lyrics-video`
- **Category**: audio-to-video
- **Kind**: inference
**Tags**: music, lyrics, video



## Pricing

- **Price**: $0.15 per videos

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`song_id`** (`string`, _optional_):
  Generated audio ID from song_id in a song or instrumental response. Provide exactly one of song_id or upload_audio_id.

- **`upload_audio_id`** (`string`, _optional_):
  Audio ID returned by /files/upload with purpose='audio'. Provide exactly one of song_id or upload_audio_id.

- **`background_id`** (`string`, _optional_):
  Background image ID returned by /files/upload with purpose='lyrics-video'.

- **`cover_url`** (`string`, _optional_):
  Optional public HTTPS URL or data URI for a JPG, PNG, or WebP cover. Not supported with layout_1.

- **`title`** (`string`, _optional_):
  Optional title displayed in the lyrics video.

- **`aspect_ratio`** (`AspectRatioEnum`, _optional_):
  Output video aspect ratio. Default value: `"9:16"`
  - Default: `"9:16"`
  - Options: `"16:9"`, `"9:16"`, `"3:4"`, `"4:3"`

- **`layout`** (`LayoutEnum`, _optional_):
  Visual layout template for the lyrics video. Default value: `"layout_1"`
  - Default: `"layout_1"`
  - Options: `"layout_1"`, `"layout_2"`, `"layout_3"`, `"layout_4"`, `"layout_5"`, `"layout_6"`, `"layout_7"`

- **`lyrics_start_row`** (`integer`, _optional_):
  First lyric row to include, starting at 1. Must be paired with lyrics_end_row and cannot be combined with a time selection.

- **`lyrics_end_row`** (`integer`, _optional_):
  Last lyric row to include. Must be paired with lyrics_start_row and cannot be combined with a time selection.

- **`selection_start`** (`integer`, _optional_):
  Start of the included audio range in milliseconds. Must be paired with selection_end and cannot be combined with lyric-row selection.

- **`selection_end`** (`integer`, _optional_):
  End of the included audio range in milliseconds. Must be paired with selection_start and cannot be combined with lyric-row selection.



**Required Parameters Example**:

```json
{}
```

**Full Example**:

```json
{
  "aspect_ratio": "9:16",
  "layout": "layout_1"
}
```


### Output Schema

The API returns the following output format:

- **`video`** (`File`, _required_):
  The generated video file.



**Example Response**:

```json
{
  "video": {
    "url": "",
    "content_type": "image/png",
    "file_name": "z9RV14K95DvU.png",
    "file_size": 4404019
  }
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/mureka/api/generate/lyrics-video \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{}'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "mureka/api/generate/lyrics-video",
    arguments={},
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("mureka/api/generate/lyrics-video", {
  input: {},
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/mureka/api/generate/lyrics-video)
- [API Documentation](https://fal.ai/models/mureka/api/generate/lyrics-video/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=mureka/api/generate/lyrics-video)

### fal.ai Platform

- [Platform Documentation](https://fal.ai/docs/documentation)
- [Python Client](https://fal.ai/docs/api-reference/client-libraries/python)
- [JavaScript Client](https://fal.ai/docs/api-reference/client-libraries/javascript)

### Other agent-readable surfaces

This file covers one model. To find anything else:

- [Platform overview](https://fal.ai/llms.txt): Entry points and representative endpoint IDs
- [Documentation index](https://fal.ai/docs/llms.txt): Every documentation page
- [Full documentation text](https://fal.ai/docs/llms-full.txt): The whole documentation inlined
- Any other model: `https://fal.ai/models/<endpoint-id>/llms.txt`
