Mureka 8 Song
mureka/8/songMureka 8 Song generates a complete song with vocals from your lyrics or from a text description, with genre, vocal gender, reference music, cloned voice and melody controls.
- Giá cơ bản
- $0.30USD / lần chạy
- Thực thi
- async
- Loại model
- audio
- Các trường đầu vào
- 7
Thử model
Phòng thử nghiệm
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Thẻ model
Thông số kỹ thuật
Giá
- Giá cơ bản
- $0.30 / lần chạy
Ngữ cảnh & phương thức
- Đầu vào
- Định nghĩa theo schema
- Đầu ra
- audio
Tính năng
- Chat
- Không được hỗ trợ
- Thị giác
- Không được hỗ trợ
- Suy luận
- Không được hỗ trợ
- Đầu ra có cấu trúc
- Không được hỗ trợ
- Gọi hàm
- Không được hỗ trợ
- Đầu vào âm thanh
- Không được hỗ trợ
Truy cập
- Nhà cung cấp
- Mureka
- ID mô hình
- mureka/8/song
- Thực thi
- async
- URL cơ sở
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
Mureka 8 Song
Mureka 8 Song writes and sings a full song from lyrics or from a prompt alone, and returns a reusable song_id.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
lyrics | string, up to 5,000 chars | — | Lyrics to sing. Provide lyrics or prompt; with lyrics the song is cheaper. |
prompt | string, up to 2,000 chars | — | Required without lyrics. Style control (≤1,024 chars) with lyrics. Not with melody_id. |
styles | array of pop / rock / jazz / r&b / edm / ambient / folk / latin / k-pop / j-pop / house / gospel / lo-fi | — | Prompt-to-song only; not with lyrics. |
gender | female / male | — | Vocal gender; a cloned voice takes precedence. |
reference_id | string | — | From mureka/files/upload (purpose reference). Not with melody_id. |
vocal_id | string | — | From mureka/voice/clone. Not with melody_id. |
melody_id | string | — | From mureka/files/upload (purpose melody). Not with prompt, reference_id or vocal_id. |
Output
url: generated audio file.song_id: reusable ID for other Mureka models that acceptsong_id.lyrics_sections: timed lyric sections (times in milliseconds), when available.
Billing
$0.07 per song when lyrics is provided; $0.3 per song when only a prompt (or other inputs without lyrics) is given.
| Request | Price |
|---|---|
| Song from your lyrics | $0.07 |
| Song from a prompt only | $0.30 |
Failed runs are not charged.
Prompting
- Provide
lyricsfor direct control over the words (and a lower price); useprompt+stylesto let the model write them. melody_idworks withlyricsonly; leaveprompt,reference_idandvocal_idempty.
Also on SandBase
Related: mureka/9.5/song, mureka/9/song.
Bắt đầu xây dựng
Gửi request đầu tiên của bạn
Endpoint tương thích OpenAI với xác thực và theo dõi mức sử dụng thống nhất.
# 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/8/song",
"prompt": "A bright summer love song with a catchy chorus",
"styles": [
[
"pop",
"rock"
]
]
}
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"Schema đầu vào
7 tham số · 0 bắt buộc · 7 tùy chọn
| Tham số | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
gender | string | Tùy chọn | Preferred vocal gender for lyrics-to-song generation. A reference or cloned voice takes precedence. · Tùy chọn: female, male femalemale |
lyrics | string | Tùy chọn | Lyrics to sing, up to 5,000 characters. Provide `lyrics` for lyrics-to-song, or leave it empty and provide `prompt` for prompt-to-song. Supplying lyrics also lowers the price. · Độ dài tối thiểu: 1 · Độ dài tối đa: 5000 |
prompt | string | Tùy chọn | Describe the song, mood, instrumentation and vocals. Required when `lyrics` is empty (up to 2,000 characters). With `lyrics` it acts as a style control and supports up to 1,024 characters. Cannot be combined with `melody_id`. · Độ dài tối thiểu: 1 · Độ dài tối đa: 2000 |
styles | string[] | Tùy chọn | One or more genres for prompt-to-song generation. Cannot be used when `lyrics` is provided. |
vocal_id | string | Tùy chọn | Cloned voice ID (`vocal_id`) returned by `mureka/voice/clone`. Cannot be combined with `melody_id`. · Độ dài tối thiểu: 1 |
melody_id | string | Tùy chọn | Melody ID returned by `mureka/files/upload` with purpose `melody`. Cannot be combined with `prompt`, `reference_id` or `vocal_id`; use it with `lyrics`. · Độ dài tối thiểu: 1 |
reference_id | string | Tùy chọn | Reference-music ID returned by `mureka/files/upload` with purpose `reference`. Cannot be combined with `melody_id`. · Độ dài tối thiểu: 1 |
Schema đầu ra
| Trường | Kiểu | Mô tả |
|---|---|---|
id | string | Mã định danh duy nhất cho tác vụ tạo |
status | string | Trạng thái tác vụ: pending, running, completed, failed, timeout |
model | string | Model được dùng cho quá trình tạo |
outputs | array | Mảng các mục đầu ra |
outputs[].url | string | URL của artifact đã tạo |
outputs[].content_type | string | Kiểu MIME (ví dụ image/png, video/mp4) |
error | object | null | Chi tiết lỗi nếu thất bại, null nếu thành công |
error.type | string | Mã loại lỗi có thể đọc bằng máy |
error.message | string | Mô tả lỗi dễ đọc cho người dùng |
Quy trình không đồng bộ
Model này chạy bất đồng bộ. Gửi yêu cầu, rồi thăm dò để lấy kết quả.
- Gửi: POST tới /v1/run và đọc
idđược trả về. - Thăm dò: GET /v1/run/{id} cho đến khi trạng thái là
completed,failedhoặctimeout. - Truy xuất: đọc
outputstừ phản hồi hoàn tất.
Chọn model của bạn
So sánh model
| Mô hình | Loại | Giá mặc định | Phát hành |
|---|---|---|---|
Mureka 8 SongMô hình này Mureka | Âm thanh | $0.30 / lượt chạy | 30 thg 10, 2026 |
Mureka | Âm thanh | $0.75 / lượt chạy | 30 thg 10, 2026 |
Mureka | Âm thanh | $0.50 / lượt chạy | 30 thg 10, 2026 |
Mureka | Âm thanh | $0.10 / lượt chạy | 30 thg 10, 2026 |
Mureka | Âm thanh | $0.23 / lượt chạy | 30 thg 10, 2026 |
Mureka | Âm thanh | $0.10 / lượt chạy | 30 thg 10, 2026 |
Câu hỏi
FAQ
Làm thế nào để gọi Mureka 8 Song qua SandBase?
Tạo một API key SandBase, sau đó gửi yêu cầu với model ID "mureka/8/song" tới Unified Run API (/v1/run) tại https://api.sandbase.ai. Các ví dụ yêu cầu trên trang này cho thấy chính xác payload.
Tôi có cần tài khoản Mureka riêng không?
Không. Chỉ cần một API key và số dư SandBase là bạn có thể truy cập Mureka 8 Song và các model khác trong danh mục; bạn không cần đăng ký riêng với Mureka.
