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.
モデルを試す
PNG、JPEG、WebP、GIF · 最大 20 MiB
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
開発を始める
このモデルを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"SandBaseのAPIキーを作成し、サーバー環境に設定してください。すべてのリクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開したり、リポジトリにコミットしたりしないでください。
このモデルIDと入力を使って /v1/run にPOSTしてください。上のリクエスト例には送信とポーリングが含まれています。
返されたrun IDを使って、ステータスがcompleted、failed、timeoutになるまでポーリングしてください。出力はcompleted後にのみ読み取ってください。
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"モデルのimage、video、またはaudioフィールドに、公開アクセス可能なファイルURLを指定してください。対応形式と制限は各Playground入力の横に表示されます。
Playgroundの対応する画像フィールドでアップロードまたは置換を使用してください。video URLフィールドはホストされたドライビング動画を受け付けますが、動画アップロード対応を意味するものではありません。
titlestringOptional title displayed in the lyrics video.
layoutstringVisual layout template for the lyrics video.
デフォルト: "layout_1"
指定可能な値: "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.
デフォルト: "9:16"
指定可能な値: "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`.
最小: 0
lyrics_end_rowintegerLast lyric row to include. Use together with `lyrics_start_row`; cannot be combined with `selection_start` / `selection_end`.
最小: 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.
最小: 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`.
最小: 1
{
"model": "mureka/lyrics-video",
"layout": "layout_1",
"aspect_ratio": "9:16"
}完了したrunの結果は出力に表示されます。以下はモデルに保存されたサンプルであり、新規生成ではありません。
まだ例の出力は公開されていません。完了したrunのレスポンスを確認するには、Playground → Result → JSON を使用してください。