Mureka 8 Soundtrack
mureka/8/soundtrackMureka 8 Soundtrack composes a soundtrack that fits an uploaded video or image, with optional style guidance and audio range control.
- Giá cơ bản
- $0.10USD / lần chạy
- Thực thi
- async
- Loại model
- audio
- Các trường đầu vào
- 5
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.10 / 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/soundtrack
- Thực thi
- async
- URL cơ sở
- https://api.sandbase.ai
- API
- Unified Run API
- Endpoint
- /v1/run
README API
Mureka 8 Soundtrack
Mureka 8 Soundtrack scores a video or image uploaded through mureka/files/upload (purpose soundtrack), with an optional style prompt.
Fields
| Field | Type | Default | Notes |
|---|---|---|---|
video_id | string | — | From mureka/files/upload (purpose soundtrack). One of video_id / image_id. |
image_id | string | — | From mureka/files/upload (purpose soundtrack). One of video_id / image_id. |
prompt | string, up to 1,024 chars | — | Optional style and mood. |
audio_start | integer (ms) | — | Start of the audio segment in milliseconds. |
audio_end | integer (ms) | — | End of the audio segment in milliseconds (with audio_start). |
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.1 per soundtrack. Each request returns one result.
| Request | Price |
|---|---|
| One soundtrack | $0.10 |
| 10 soundtracks | $1.00 |
Failed runs are not charged.
Prompting
- Upload the video or image first with
mureka/files/upload(purposesoundtrack), then passvideo_idorimage_id.
Also on SandBase
Related: mureka/9.5/soundtrack, mureka/9/soundtrack, mureka/files/upload.
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/soundtrack",
"prompt": "Uplifting cinematic strings that build to a hopeful finale"
}
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
5 tham số · 0 bắt buộc · 5 tùy chọn
| Tham số | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
prompt | string | Tùy chọn | Optional description of the soundtrack style and mood. · Độ dài tối thiểu: 1 · Độ dài tối đa: 1024 |
image_id | string | Tùy chọn | Image ID returned by `mureka/files/upload` with purpose `soundtrack` (images up to 50 MB). Provide exactly one of `video_id` or `image_id`. · Độ dài tối thiểu: 1 |
video_id | string | Tùy chọn | Video ID returned by `mureka/files/upload` with purpose `soundtrack` (videos up to 100 MB). Provide exactly one of `video_id` or `image_id`. · Độ dài tối thiểu: 1 |
audio_end | integer | Tùy chọn | End time of the soundtrack audio in milliseconds. Used together with `audio_start`; if it exceeds the song length, generation stops at the end of the song. The segment must be at least 3 seconds; a 1-second fade-out is added. |
audio_start | integer | Tùy chọn | Start time of the soundtrack audio in milliseconds. If only `audio_start` is set, generation starts there and runs for the video duration. The segment must be at least 3 seconds; a 1-second fade-in is added. |
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 SoundtrackMô hình này Mureka | Âm thanh | $0.10 / 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 Soundtrack qua SandBase?
Tạo một API key SandBase, sau đó gửi yêu cầu với model ID "mureka/8/soundtrack" 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 Soundtrack và các model khác trong danh mục; bạn không cần đăng ký riêng với Mureka.
