Mage API · โมเดลเสียง
MiniMax Music 3 API
เพลงเต็มจากเนื้อเพลงของคุณ แบบ open weights
POST https://api.mage.space/v1/minimax_music/generateดูแบบเร็ว ๆ
MiniMax Music 3 API เรียกใช้ MiniMax Music 3 ผ่าน Mage ที่ POST https://api.mage.space/v1/minimax_music/generate คำขอที่ใช้การตั้งค่าเริ่มต้นราคา 125 Gems (ประมาณ $0.125) โดยไม่ต้องสมัครสมาชิก MiniMax Music 3 ไม่รองรับการอ้างถึงด้วย @handle
- เสียงผลลัพธ์
- 1รุ่น
- 125Gems ต่อคลิป (ค่าเริ่มต้น)
- $0.125ประมาณ (USD)
ภาพรวม
MiniMax Music 3 API ทำอะไรได้บ้าง
โมเดลเพลงแบบเปิดของ MiniMax: สร้างเพลงเต็มยาวได้สูงสุด 5 นาที พร้อมเสียงร้องที่ร้องตามเนื้อเพลงของคุณ หรือจะเป็นเพลงบรรเลงก็ได้ ปรับแต่งด้วยคำอธิบายแนวเพลง เสียงร้อง และการเรียบเรียง รองรับ LoRA
โมเดลเพลงแบบ open weights ของ MiniMax: สร้างเพลงเต็มพร้อมเสียงร้องที่ร้องตามเนื้อเพลงของคุณ หรือเพลงบรรเลง ยาวสูงสุด 5 นาที ในรูปแบบ MP3 สเตอริโอ 44.1 kHz รองรับ LoRA ใส่เนื้อร้องใน `lyrics` และใส่คำอธิบายเสียงในพรอมต์
สร้างภาพจากพรอมต์เพียงอย่างเดียว
เริ่มต้นอย่างรวดเร็ว
เรียกใช้ MiniMax Music 3 API
ตั้งค่า MAGE_API_KEY ส่งคำขอไปที่ /minimax_music/generate แล้วโพล status_url จนกว่าคำขอจะเสร็จสมบูรณ์
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/minimax_music/generate' \
--header "Authorization: Bearer $MAGE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"prompt": "Acoustic pop, 96 BPM, C major, warm and intimate, building into the chorus. Soft female lead, close and breathy, light harmonies in the chorus. Fingerpicked guitar and soft piano; brushed drums and upright bass enter in the chorus.",
"duration": "120",
"lyrics": "[verse]\nMorning light filtering through the pine\nEvery quiet street is yours and mine\n[chorus]\nSoftly the world begins to breathe",
"model_id": "minimax-music-3"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('minimax_music', {
prompt: 'Acoustic pop, 96 BPM, C major, warm and intimate, building into the chorus. Soft female lead, close and breathy, light harmonies in the chorus. Fingerpicked guitar and soft piano; brushed drums and upright bass enter in the chorus.',
duration: '120',
lyrics: '[verse]\nMorning light filtering through the pine\nEvery quiet street is yours and mine\n[chorus]\nSoftly the world begins to breathe',
model_id: 'minimax-music-3',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("minimax_music", {
"prompt": "Acoustic pop, 96 BPM, C major, warm and intimate, building into the chorus. Soft female lead, close and breathy, light harmonies in the chorus. Fingerpicked guitar and soft piano; brushed drums and upright bass enter in the chorus.",
"duration": "120",
"lyrics": "[verse]\nMorning light filtering through the pine\nEvery quiet street is yours and mine\n[chorus]\nSoftly the world begins to breathe",
"model_id": "minimax-music-3",
})
print(request["result"]["url"])โมเดล
ค่า model_id ของ MiniMax Music 3
ส่ง model_id เพื่อเลือกรุ่น หากไม่ระบุ ระบบจะใช้รุ่นเริ่มต้น
| model_id | ชื่อ | ค่าเริ่มต้น |
|---|---|---|
| minimax-music-3 | MiniMax Music 3 | ใช่ |
ตัวเลือก
พารามิเตอร์ของ MiniMax Music 3
ค่าที่ใช้ได้รวมทุกรุ่น บางรุ่นอาจมีตัวเลือกน้อยกว่า ดูตัวเลือกของแต่ละรุ่นได้ในเอกสาร
| ฟิลด์ | ค่า |
|---|---|
| duration | 30, 60, 120, 180, 240, 300 |
กฎ
ข้อกำหนดของ MiniMax Music 3 API
- พรอมต์ใช้อธิบายดนตรี ยาวไม่เกิน 4000 ตัวอักษร: แนวเพลง จังหวะและคีย์ อารมณ์และการไล่ระดับ นักร้อง (ระบุเสียงร้อง ไม่เช่นนั้นเพลงอาจออกมาเป็นเพลงบรรเลง) และเครื่องดนตรี
- `lyrics` ใช้ใส่เนื้อร้อง ยาวไม่เกิน 6000 ตัวอักษร ใส่แท็กส่วนของเพลง ([intro], [verse], [pre-chorus], [chorus], [bridge], [outro]) ไว้บรรทัดของตัวเอง: คำที่อยู่บรรทัดเดียวกับแท็กจะถูกตัดทิ้ง
- ถ้าต้องการเพลงบรรเลง ให้เว้น `lyrics` ว่างไว้ หรือตั้ง `instrumental` เป็น true
- `duration` คือความยาวสูงสุดของเพลงและเป็นตัวกำหนดราคา โมเดลจะจบเพลงเมื่อเนื้อร้องและการเรียบเรียงครบแล้ว ซึ่งมักจบเร็วกว่านั้น
โมเดลเสียงอื่น ๆ
API สร้างเสียงอื่น ๆ บน Mage
Seed Audio API
เสียงพูด เพลง และเอฟเฟกต์เสียงจากพรอมต์เดียว
Eleven Music API
เพลงจาก ElevenLabs จะมีเสียงร้องหรือไม่มีก็ได้
Eleven Speech API
ElevenLabs v4: เสียงพูดสมจริงที่คุณกำกับได้
คำถามที่พบบ่อย
คำถามที่พบบ่อย
MiniMax Music 3 API ราคาเท่าไร
เอนด์พอยต์ของ MiniMax Music 3 API คืออะไร
เรียกใช้โมเดล MiniMax Music 3 ตัวไหนได้บ้าง
MiniMax Music 3 รองรับภาพอ้างอิงหรือ Characters ไหม
ใช้ MiniMax Music 3 จาก Claude หรือ ChatGPT ได้ไหม
ผลลัพธ์ของ MiniMax Music 3 เก็บไว้นานแค่ไหน
เริ่มสร้างสรรค์ด้วย Mage
หนึ่งบัญชี หนึ่งยอด Gems ใช้ได้ทุกโมเดล จ่ายเฉพาะที่สร้างจริง