# Mureka Song Edit API

> Mureka Song Edit rewrites a selected time region of a Mureka song or uploaded audio with replacement lyrics.

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

## Facts

- Provider: Mureka
- Type: Audio model
- Model ID: `mureka/song/edit`
- Price: From $0.10 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/song/edit"
}'
```

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 Song Edit through SandBase?

Create a SandBase API key, then send requests with the model ID "mureka/song/edit" 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 Song Edit and the other models in the catalog; you do not need to sign up with Mureka separately.

## README

### Mureka Song Edit

Mureka Song Edit replaces the vocals in one region (at least 3 seconds) of a Mureka song or uploaded audio with new lyrics.

#### 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 | — | New lyrics for the region. |
| `edit_start` | integer (ms), required | — | Region start in milliseconds. |
| `edit_end` | integer (ms), required | — | Region end in milliseconds; region ≥ 3 s. |

#### 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.10 per edited region. Each request returns one song.

| Request | Price |
|---|---|
| One edit | $0.10 |
| 10 edits | $1.00 |

Failed runs are not charged.

#### Prompting

- Match the replacement lyrics to the length of the region you rewrite.

#### Also on SandBase

Related: `mureka/9.5/song`, `mureka/8/song/extend`.
