# Mureka | Region Edit Song | Music Editing Regenerates a specific time region of a song with new lyrics while keeping the surrounding audio fully intact, seamlessly blending the edited segment back into the original track. ## API Information - **Model Slug:** mureka-region-edit-song-music-editing - **Branded URL:** https://www.eachlabs.ai/mureka/mureka/mureka-region-edit-song-music-editing - **Provider:** Mureka - **Category:** Text to Voice - **Output Type:** object - **Status:** active - **Version:** 0.0.1 - **Base Cost:** $0.10 per execution - **Estimated Processing Time:** 30 seconds - **Last Updated:** 2026-08-16 - **Interactive Demo:** https://www.eachlabs.ai/ai-models/mureka-region-edit-song-music-editing ## Pricing - **Charge Type:** dynamic - **Estimate:** $0.10 per execution - **Pricing Details:** default: $0.1 ## Input Schema | Parameter | Type | Required | Default | Constraints | Description | |-----------|------|----------|---------|-------------|-------------| | lyrics | string | Yes | - | - | Lyrics to rewrite into the selected region. Use square-bracket section tags (e.g. [Bridge], [Verse 2]) for structure. Supports the same 10 languages as song generation. | | song_id | string | No | - | - | ID of an existing Mureka song returned by POST /v1/song/generate. Mutually exclusive with upload_audio_id. Only songs generated in the last month are supported. | | upload_audio_id | string | No | - | - | Upload ID returned by POST /v1/files/upload with purpose=audio. Mutually exclusive with song_id. Only last-month uploads are supported. | | edit_start | integer | Yes | - | 12000–0 | Start of the region to edit, in milliseconds. Must be ≥ 12000 (Mureka requires ≥ 12 s of audio preserved before the edit region). | | edit_end | integer | Yes | - | 15000–0 | End of the region to edit, in milliseconds. Edited region (edit_end − edit_start) must be ≥ 3000 ms, and ≥ 12 s of audio must remain after edit_end. | ## Example Request ```bash curl -X POST https://api.eachlabs.ai/v1/prediction/ \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "mureka-region-edit-song-music-editing", "input": { "lyrics": "[Bridge]\nEvery scar tells a story worth telling", "edit_start": 30000, "edit_end": 50000 } }' ``` ## Output Schema Response returned by `GET /v1/prediction/{id}` when the job completes: ```json { "status": "success", "predictionID": "string", "output": "object", "metrics": { "predict_time": "number (seconds)" } } ``` ## Polling ```bash curl https://api.eachlabs.ai/v1/prediction/{PREDICTION_ID} \ -H "Authorization: Bearer YOUR_API_KEY" ``` | Status | Meaning | |--------|---------| | `processing` | Still running — poll again | | `success` | Done — read `output` | | `error` | Failed — read `message` / `details` | ## Webhook (alternative to polling) Pass `"webhook_url": "https://your.host/path"` in the create request. Eachlabs POSTs this payload when the job ends: ```json { "exec_id": "prediction-uuid", "status": "succeeded", "output": "https://...", "error": "" } ``` `status` is `"succeeded"` or `"failed"`. `exec_id` equals the `predictionID` from create. Return 2xx within 30 seconds. ## Errors Error body: `{ "status": "error", "message": "...", "details": "..." }` | Code | Meaning | |------|---------| | `400` | Invalid input | | `401` | Missing / invalid `Authorization` bearer token | | `404` | Unknown model or prediction id | | `429` | Rate limit — 100 creates / min, 10 concurrent per key | | `5xx` | Retry with backoff | ## Overview **Mureka | Region Edit Song | Music Editing Overview** The **Mureka | Region Edit Song | Music Editing** model from the Mureka family by provider Mureka enables precise editing of specific time regions in songs. Users can rewrite a targeted segment by providing new lyrics while preserving the surrounding audio intact, solving the challenge of localized music modifications without full regeneration. This **region-specific editing** stands out as the primary differentiator, allowing seamless blends back into the original track via timestamp selection. Hosted on **each::labs** (eachlabs.ai), it supports both existing song_ids from Mureka's song-generate endpoint or upload_audio_ids from files-upload with purpose=audio. Ideal for music producers needing quick fixes to lyrics or melodies in isolated sections, it delivers professional results with typical runtimes of 20-60 seconds per edit. Access the **Mureka | Region Edit Song | Music Editing API** for integration into workflows. ## Usage Notes - API Base URL: `https://api.eachlabs.ai/v1` - Authentication: send `Authorization: Bearer YOUR_API_KEY`. Generate a key from the Eachlabs dashboard at https://www.eachlabs.ai/dashboard/api-keys. - File-typed parameters (`*_url`, `image_url`, `video_url`, `audio_url`, etc.) accept publicly-reachable HTTPS URLs only. Upload your asset first (GCS / S3 / your CDN) and pass the resulting URL. Data-URIs and localhost URLs are rejected. - For structured parameters (arrays / objects) send real JSON values, not stringified payloads. - Monetary values are reported in USD; per-token / per-megapixel rates may be billed in micro-cents internally. - Prefer `webhook_url` over polling for long-running predictions — see the Webhook Callback section.