# Mureka 8 Song Extend API

> Mureka 8 Song Extend lengthens a Mureka song or uploaded audio from a chosen timestamp with new lyrics, adding to the end or the beginning.

Source: https://www.sandbase.ai/models/mureka/8/song/extend
API reference: https://www.sandbase.ai/models/mureka/8/song/extend#api

## Facts

- Provider: Mureka
- Type: Audio model
- Model ID: `mureka/8/song/extend`
- Price: From $0.15 per run
- Capabilities: audio to audio
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "mureka/8/song/extend",
  "extend_type": "tail"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Mureka 8 Song Extend through SandBase?

Create a SandBase API key, then send requests with the model ID "mureka/8/song/extend" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Mureka account?

No. One SandBase API key and balance gives you access to Mureka 8 Song Extend and the other models in the catalog; you do not need to sign up with Mureka separately.

## README

### Mureka 8 Song Extend

Mureka 8 Song Extend continues a song from `extend_at` with new lyrics, either after it (`tail`) or before it (`head`).

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `song_id` | string | — | From `mureka/9.5/song`, `mureka/9/song` or `mureka/8/song`. One of `song_id` / `upload_audio_id`. |
| `upload_audio_id` | string | — | From `mureka/files/upload` (purpose `audio`). One of `song_id` / `upload_audio_id`. |
| `lyrics` | string, required, up to 3,000 chars | — | Lyrics for the new section. |
| `extend_at` | integer (ms), required | — | Extension point in milliseconds. |
| `extend_type` | `tail` / `head` | `tail` | Append (`tail`) or prepend (`head`). |

#### Output

- `url`: generated audio file.
- `song_id`: reusable ID for other Mureka models that accept `song_id`.
- `lyrics_sections`: timed lyric sections (times in milliseconds), when available.

#### Billing

$0.15 per extension. Each request returns one result.

| Request | Price |
|---|---|
| One extension | $0.15 |
| 10 extensions | $1.50 |

Failed runs are not charged.

#### Prompting

- Write lyrics that continue naturally from the point you extend.

#### Also on SandBase

Related: `mureka/song/edit`.
