titlestring
Optional title displayed in the lyrics video.
mureka/lyrics-videoMureka Lyrics Video turns a Mureka song or uploaded audio into a lyrics video with selectable layout, aspect ratio, title, background and cover.
Coba model ini
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Mureka Lyrics Video renders a lyrics video for a Mureka song_id or an uploaded audio ID, for a time range or a range of lyric rows.
| Field | Type | Default | Notes |
|---|---|---|---|
song_id | string | — | From a Mureka song or instrumental model (mureka/9.5/song, mureka/9/song or mureka/8/song, or an instrumental model). One of song_id / upload_audio_id. |
upload_audio_id | string | — | From mureka/files/upload (purpose audio). One of song_id / upload_audio_id. |
selection_start | integer (ms) | — | Range start in ms. Pair with selection_end; not with lyric rows. |
selection_end | integer (ms) | — | Range end in ms. Pair with selection_start. |
lyrics_start_row | integer ≥ 1 | — | First lyric row. Pair with lyrics_end_row; not with a time range. |
lyrics_end_row | integer ≥ 1 | — | Last lyric row. Pair with lyrics_start_row. |
aspect_ratio | 16:9 / 9:16 / 3:4 / 4:3 | 9:16 | Video aspect ratio. |
layout | layout_1 … layout_7 | layout_1 | Layout template; layout_1 does not show a cover. |
title | string | — | Title shown in the video. |
background_id | string | — | From mureka/files/upload (purpose lyrics-video). |
cover_image | image file or URL | — | JPG/PNG/WebP cover; not with layout_1. |
$0.10 per lyrics video.
| Request | Price |
|---|---|
| One video | $0.10 |
| 10 videos | $1.00 |
Failed runs are not charged.
song_id or upload_audio_id) and one range: selection_start + selection_end, or lyrics_start_row + lyrics_end_row.Related: mureka/9.5/song, mureka/files/upload.
Mulai membangun
Kirim model ini melalui SandBase Unified Run API.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "mureka/lyrics-video",
"layout": "layout_1",
"aspect_ratio": "9:16"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
status=$(printf '%s' "$result" | jq -r .status)
case "$status" in completed|failed|timeout) break ;; esac
sleep 2
result=$(curl --fail-with-body --silent \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
"https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
titlestringOptional title displayed in the lyrics video.
layoutstringVisual layout template for the lyrics video.
Default: "layout_1"
Nilai yang mungkin: "layout_1", "layout_2", "layout_3", "layout_4", "layout_5", "layout_6", "layout_7"
song_idstring`song_id` returned by a Mureka song or instrumental model (`mureka/9.5/song`, `mureka/9/song` or `mureka/8/song`, or an instrumental model). Provide exactly one of `song_id` or `upload_audio_id`.
cover_imagestringOptional JPG, PNG or WebP cover image file or URL. Not supported with `layout_1`.
aspect_ratiostringOutput video aspect ratio.
Default: "9:16"
Nilai yang mungkin: "16:9", "9:16", "3:4", "4:3"
background_idstringBackground image ID returned by `mureka/files/upload` with purpose `lyrics-video`.
selection_endintegerEnd of the audio range in milliseconds. Use together with `selection_start`; cannot be combined with `lyrics_start_row` / `lyrics_end_row`.
Minimum: 0
lyrics_end_rowintegerLast lyric row to include. Use together with `lyrics_start_row`; cannot be combined with `selection_start` / `selection_end`.
Minimum: 1
selection_startintegerStart of the audio range in milliseconds. Use together with `selection_end`; cannot be combined with `lyrics_start_row` / `lyrics_end_row`. One complete pair (time range or lyric rows) is required.
Minimum: 0
upload_audio_idstringID returned by `mureka/files/upload` with purpose `audio`. Provide exactly one of `song_id` or `upload_audio_id`.
lyrics_start_rowintegerFirst lyric row to include, starting at 1. Use together with `lyrics_end_row`; cannot be combined with `selection_start` / `selection_end`.
Minimum: 1
{
"model": "mureka/lyrics-video",
"layout": "layout_1",
"aspect_ratio": "9:16"
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
Belum ada contoh output yang dipublikasikan. Gunakan Playground → Result → JSON setelah run selesai untuk melihat respons Anda.