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.
Probar el modelo
PNG, JPEG, WebP o GIF · máximo 20 MiB
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Envíe este modelo a través de la API de ejecución unificada de SandBase.
# 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"Cree una clave de API de SandBase y configúrela en el entorno de su servidor. Todas las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve la clave en el servidor. No la exponga en código del navegador ni la confirme en un repositorio.
Haga un POST a /v1/run con este ID de modelo y sus entradas. El ejemplo de solicitud anterior incluye el envío y el sondeo.
Use el ID de ejecución devuelto para sondear hasta que el estado sea completed, failed o timeout. Lea la salida solo después de completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Proporcione una URL de archivo accesible públicamente en el campo de imagen, video o audio del modelo. Los formatos y límites admitidos se muestran junto a cada entrada de Playground.
Use el control de subir o reemplazar en los campos de imagen admitidos en Playground. Los campos de URL de video aceptan un video de conducción alojado; no implican compatibilidad con la subida de video.
titlestringOptional title displayed in the lyrics video.
layoutstringVisual layout template for the lyrics video.
Valor predeterminado: "layout_1"
Valores posibles: "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.
Valor predeterminado: "9:16"
Valores posibles: "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`.
Mínimo: 0
lyrics_end_rowintegerLast lyric row to include. Use together with `lyrics_start_row`; cannot be combined with `selection_start` / `selection_end`.
Mínimo: 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.
Mínimo: 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`.
Mínimo: 1
{
"model": "mureka/lyrics-video",
"layout": "layout_1",
"aspect_ratio": "9:16"
}Una ejecución completada expone su resultado en la salida. Lo siguiente es el ejemplo guardado del modelo, no una nueva generación.
Aún no se ha publicado ningún ejemplo de salida. Use Playground → Result → JSON después de una ejecución completada para inspeccionar su respuesta.