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

Sonilo 1.1 Video to Music

sonilo/1.1/video-to-music

Sonilo 1.1 Video to Music scores a video with a matching music track that follows its pacing and scene changes, optionally steered by a style prompt.

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

ลองใช้โมเดล

Playground

เปิด Playground
อินพุต
Source video file or URL to score.
Optional music style. If omitted, a prompt is generated from the video.
1600
Optional length in seconds (1–600) of the segment to score, starting at start_offset. Defaults to the rest of the video. ช่วง: 1 ถึง 600.
0600
Optional offset in seconds (0–600) to start scoring from. start_offset + duration must not exceed the video length. ช่วง: 0 ถึง 600.
01
How closely the music follows the prompt (0–1). ช่วง: 0 ถึง 1.
เอาต์พุตพร้อมใช้งาน

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

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

การ์ดโมเดล

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

ราคา

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

บริบทและ modalities

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

ความสามารถ

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

การเข้าถึง

ผู้ให้บริการ
Sonilo
รหัสโมเดล
sonilo/1.1/video-to-music
การทำงาน
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

API README

Sonilo 1.1 Video to Music

Sonilo 1.1 Video to Music writes a soundtrack that follows a video's pacing and scene changes.

Fields

FieldTypeDefaultNotes
videovideo file or URL, required—Video to score.
promptstring—Optional style; generated from the video when empty.
durationnumber 1–600—Length of the segment to score; defaults to the rest of the video.
start_offsetnumber 0–600—Where scoring starts, in seconds.
prompt_influencenumber 0–10.5Higher follows the prompt more.

Billing

$0.009 per started second of generated music, with a 10-second minimum. The quote uses duration, or the video length minus start_offset; the final charge uses the output length.

Music lengthPrice
5 s$0.09
30 s$0.27
120 s$1.08

Failed runs are not charged.

Prompting

  • Name genre and mood; leave prompt empty to let Sonilo read the video.

Also on SandBase

Related: sonilo/1.1/text-to-music, sonilo/1.1/text-to-sound-effects, sonilo/1.1/video-to-sound-effects.

เริ่มสร้าง

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

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

Production API
เอ็นด์พอยต์ Unified Run API
https://api.sandbase.ai/v1/run
รหัสโมเดล
sonilo/1.1/video-to-music
# 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": "sonilo/1.1/video-to-music",
  "video": "https://v3b.fal.media/files/b/0a9ddd00/2QssaYyFxstvVlmIraSns_Sonilo_Demo_Original_1.mp4",
  "prompt_influence": 0.5
}
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

สคีมาขาเข้า

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

พารามิเตอร์ประเภทจำเป็นคำอธิบาย
videostringจำเป็นSource video file or URL to score.
promptstringไม่บังคับOptional music style. If omitted, a prompt is generated from the video.
durationnumberไม่บังคับOptional length in seconds (1–600) of the segment to score, starting at start_offset. Defaults to the rest of the video. · ต่ำสุด: 1 · สูงสุด: 600
start_offsetnumberไม่บังคับOptional offset in seconds (0–600) to start scoring from. start_offset + duration must not exceed the video length. · ต่ำสุด: 0 · สูงสุด: 600
prompt_influencenumberไม่บังคับHow closely the music follows the prompt (0–1). · ต่ำสุด: 0 · สูงสุด: 1 · ค่าเริ่มต้น: 0.5
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 จากการตอบกลับที่เสร็จสมบูรณ์

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

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

โมเดลภาพและวิดีโอทั้งหมด
โมเดลประเภทราคามาตรฐานเปิดตัว
Sonilo 1.1 Video to Musicโมเดลนี้
Sonilo
เสียง$0.27 / ครั้ง3 มิ.ย. 2569
Soniloเสียง$0.27 / ครั้ง21 ก.ค. 2569
Soniloเสียง$0.01 / ครั้ง21 ก.ค. 2569
Soniloเสียง$0.23 / ครั้ง3 มิ.ย. 2569

คำถาม

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

ฉันจะเรียก Sonilo 1.1 Video to Music ผ่าน SandBase ได้อย่างไร?

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

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

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