Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Mureka File Upload

mureka/files/upload

Mureka File Upload stores an audio, image or video file with Mureka and returns a reusable ID for other Mureka models, such as reference, melody, remix, voice or soundtrack inputs.

ราคาพื้นฐาน
$0.01USD / การรัน
การทำงาน
async
ประเภโมเดล
audio
ฟิลด์อินพุต
2
เส้นทางโปรดักชัน

ลองใช้โมเดล

Playground

เปิด Playground
อินพุต
Audio file or URL to upload (also accepts video and image files or URLs for purpose `soundtrack`, and images for `lyrics-video`). Up to 10 MB; for purpose `soundtrack`, videos up to 100 MB and images up to 50 MB.
Where the returned ID will be used: `reference` → `reference_id` and `melody` → `melody_id` in `mureka/9.5/song`, `mureka/9/song`, `mureka/8/song`; `instrumental` → `instrumental_id` in the Mureka instrumental models; `voice` → `voice_id` in `mureka/speech`; `audio` → `upload_audio_id` in `mureka/song/edit`, `mureka/song/recognize`, `mureka/song/transcribe`, `mureka/lyrics-video`, `mureka/8/track`, `mureka/8/song/extend`; `remix` → `upload_audio_id` in `mureka/9.5/song/remix`, `mureka/8/song/remix`; `soundtrack` → `image_id` / `video_id` in the Mureka soundtrack models; `lyrics-video` → `background_id` in `mureka/lyrics-video`. The ID only works where its purpose is accepted.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

การ์ดโมเดล

ข้อมูลจำเพาะ

ราคา

ราคาพื้นฐาน
$0.01 / การรัน

บริบทและ modalities

อินพุต
กำหนดตามสคีมา
เอาต์พุต
audio

ความสามารถ

แชท
ไม่รองรับ
วิชัน
ไม่รองรับ
การให้เหตุผล
ไม่รองรับ
เอาต์พุตแบบมีโครงสร้าง
ไม่รองรับ
การเรียกใช้ฟังก์ชัน
ไม่รองรับ
อินพุตเสียง
ไม่รองรับ

การเข้าถึง

ผู้ให้บริการ
Mureka
รหัสโมเดล
mureka/files/upload
การทำงาน
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

API README

Mureka File Upload

Mureka File Upload uploads a file to Mureka and returns an id that other Mureka models accept as reference_id, melody_id, instrumental_id, upload_audio_id, voice_id, image_id, video_id or background_id, depending on purpose.

Fields

FieldTypeDefaultNotes
fileaudio, video or image file or URL, required—Max 10 MB (soundtrack: video 100 MB, image 50 MB).
purposereference / melody / instrumental / voice / audio / remix / soundtrack / lyrics-video, required—Decides which Mureka field accepts the returned ID.

Output

  • id: uploaded-file ID for the field matching purpose.
  • purpose, filename, bytes, created_at: upload details.

Billing

$0.01 per uploaded file.

RequestPrice
One upload$0.01
100 uploads$1.00

Failed runs are not charged.

Also on SandBase

Related: mureka/9.5/song, mureka/song/edit, mureka/9.5/song/remix.

เริ่มสร้าง

ส่งคำขอแรกของคุณ

เอ็นด์พอยต์ที่ใช้งานร่วมกับ OpenAI ได้ พร้อมการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์

Production API
เอ็นด์พอยต์ Unified Run API
https://api.sandbase.ai/v1/run
รหัสโมเดล
mureka/files/upload
# 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/files/upload"
}
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"
01

สคีมาขาเข้า

2 พารามิเตอร์ · จำเป็น 2 · ไม่บังคับ 0

พารามิเตอร์ประเภทจำเป็นคำอธิบาย
filestringจำเป็นAudio file or URL to upload (also accepts video and image files or URLs for purpose `soundtrack`, and images for `lyrics-video`). Up to 10 MB; for purpose `soundtrack`, videos up to 100 MB and images up to 50 MB.
purposestringจำเป็นWhere the returned ID will be used: `reference` → `reference_id` and `melody` → `melody_id` in `mureka/9.5/song`, `mureka/9/song`, `mureka/8/song`; `instrumental` → `instrumental_id` in the Mureka instrumental models; `voice` → `voice_id` in `mureka/speech`; `audio` → `upload_audio_id` in `mureka/song/edit`, `mureka/song/recognize`, `mureka/song/transcribe`, `mureka/lyrics-video`, `mureka/8/track`, `mureka/8/song/extend`; `remix` → `upload_audio_id` in `mureka/9.5/song/remix`, `mureka/8/song/remix`; `soundtrack` → `image_id` / `video_id` in the Mureka soundtrack models; `lyrics-video` → `background_id` in `mureka/lyrics-video`. The ID only works where its purpose is accepted. · ตัวเลือก: reference, melody, instrumental, voice, audio, remix, soundtrack, lyrics-video
referencemelodyinstrumentalvoiceaudioremixsoundtracklyrics-video
02

สคีมาเอาต์พุต

ฟิลด์ประเภทคำอธิบาย
idstringตัวระบุเฉพาะสำหรับงาน generation
statusstringสถานะงาน: pending, running, completed, failed, timeout
modelstringโมเดลที่ใช้สำหรับ generation
outputsarrayอาร์เรย์ของรายการเอาต์พุต
outputs[].urlstringURL ของอาร์ติแฟกต์ที่สร้างขึ้น
outputs[].content_typestringประเภท MIME (เช่น image/png, video/mp4)
errorobject | nullรายละเอียดข้อผิดพลาดหากล้มเหลว, เป็น null เมื่อสำเร็จ
error.typestringรหัสประเภทข้อผิดพลาดที่เครื่องอ่านได้
error.messagestringคำอธิบายข้อผิดพลาดที่มนุษย์อ่านได้

เวิร์กโฟลว์แบบอะซิงก์

โมเดลนี้ทำงานแบบอะซิงโครนัส ส่งคำขอแล้วคอยตรวจผลลัพธ์

  1. ส่ง: POST ไปที่ /v1/run แล้วอ่าน id ที่ส่งกลับมา
  2. คอยตรวจ: GET /v1/run/{id} จนกว่าสถานะจะเป็น completed, failed หรือ timeout
  3. ดึงข้อมูล: อ่าน outputs จากการตอบกลับที่เสร็จสมบูรณ์

เลือกโมเดลของคุณ

เปรียบเทียบโมเดล

โมเดลภาพและวิดีโอทั้งหมด
โมเดลประเภทราคามาตรฐานเปิดตัว
Mureka File Uploadโมเดลนี้
Mureka
เสียง$0.01 / ครั้ง30 ต.ค. 2569
Murekaเสียง$0.75 / ครั้ง30 ต.ค. 2569
Murekaเสียง$0.50 / ครั้ง30 ต.ค. 2569
Murekaเสียง$0.10 / ครั้ง30 ต.ค. 2569
Murekaเสียง$0.23 / ครั้ง30 ต.ค. 2569
Murekaเสียง$0.10 / ครั้ง30 ต.ค. 2569

คำถาม

คำถามที่พบบ่อย

ฉันจะเรียก Mureka File Upload ผ่าน SandBase ได้อย่างไร?

สร้าง SandBase API key แล้วส่งคำขอด้วย model ID "mureka/files/upload" ไปที่ Unified Run API (/v1/run) ที่ https://api.sandbase.ai ตัวอย่างคำขอบนหน้านี้แสดง payload ที่ถูกต้องทั้งหมด

ฉันจำเป็นต้องมีบัญชี Mureka แยกต่างหากไหม?

ไม่จำเป็น SandBase API key และยอดคงเหลือหนึ่งชุดให้คุณเข้าถึง Mureka File Upload และโมเดลอื่น ๆ ในแค็ตตาล็อกได้ คุณไม่ต้องสมัครใช้งานกับ Mureka แยกต่างหาก