
เครื่องมือสร้างสื่อ AI
สร้างรูปภาพและวิดีโอ AI ในพื้นที่ทำงานเดียวที่ครบวงจร
สร้างวิดีโอจากสื่ออ้างอิงด้วย Magi 2 API จาก Sand AI บน Flaq AI ภาพกำกับรูปลักษณ์ คลิปกำกับการเคลื่อนไหว เสียงกำกับเสียงฉาก
// Step 1: Submit generation request
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
model_name: 'magi-2-reference-to-video',
prompt: 'Use the reference image for the subject, the reference video for the camera movement, and the reference audio for the ambience',
duration: 8,
aspect_ratio: '16:9',
sound: true,
images: ['https://example.com/subject-reference.jpg'],
videos: ['https://example.com/camera-movement-reference.mp4'],
audios: ['https://example.com/ambience-reference.mp3']
})
});
const { data } = await response.json();
const taskId = data.task_id;
// Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
// Placeholder numbering is 1-based for each media array:
// <<<image_1>>> = images[0], <<<image_2>>> = images[1]
// <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
const mediaReferenceResponse = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
model_name: 'magi-2-reference-to-video',
prompt: 'Show the cyclist from <<<image_1>>> on the trail in <<<image_2>>>. Follow the camera movement in <<<video_1>>> and use <<<audio_1>>> as a reference for the forest ambience',
duration: 10,
aspect_ratio: '16:9',
sound: true,
images: [
'https://example.com/cyclist-reference.jpg',
'https://example.com/forest-trail-reference.png'
],
videos: ['https://example.com/camera-movement-reference.mp4'],
audios: ['https://example.com/forest-ambience-reference.mp3']
})
});
const { data: mediaReferenceData } = await mediaReferenceResponse.json();
const mediaReferenceTaskId = mediaReferenceData.task_id;
// Step 2: Poll for results
const taskId = data.task_id;
const pollResult = async (taskId) => {
const res = await fetch(`https://api.flaq.ai/api/v1/video/${taskId}`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
return res.json();
};
while (true) {
const pollResultData = await pollResult(taskId);
const status = pollResultData.data.task_status;
if (status === 'succeed') {
console.log(pollResultData.data.task_result.videos[0].url);
break;
}
if (status === 'failed') {
console.error(pollResultData.data.task_status_msg);
break;
}
await new Promise(resolve => setTimeout(resolve, 10000));
}
# Step 1: Submit generation request
import requests
response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'model_name': 'magi-2-reference-to-video',
'prompt': 'Use the reference image for the subject, the reference video for the camera movement, and the reference audio for the ambience',
'duration': 8,
'aspect_ratio': '16:9',
'sound': True,
'images': ['https://example.com/subject-reference.jpg'],
'videos': ['https://example.com/camera-movement-reference.mp4'],
'audios': ['https://example.com/ambience-reference.mp3']
}
)
result = response.json()
task_id = result['data']['task_id']
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1]
# <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
media_reference_response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'model_name': 'magi-2-reference-to-video',
'prompt': 'Show the cyclist from <<<image_1>>> on the trail in <<<image_2>>>. Follow the camera movement in <<<video_1>>> and use <<<audio_1>>> as a reference for the forest ambience',
'duration': 10,
'aspect_ratio': '16:9',
'sound': True,
'images': [
'https://example.com/cyclist-reference.jpg',
'https://example.com/forest-trail-reference.png'
],
'videos': ['https://example.com/camera-movement-reference.mp4'],
'audios': ['https://example.com/forest-ambience-reference.mp3']
}
)
media_reference_result = media_reference_response.json()
media_reference_task_id = media_reference_result['data']['task_id']
# Step 2: Poll for results
task_id = response.json()['data']['task_id']
poll_url = f"https://api.flaq.ai/api/v1/video/{task_id}"
while True:
poll_result = requests.get(poll_url, headers={'Authorization': 'Bearer YOUR_API_KEY'}).json()
status = poll_result['data']['task_status']
if status == 'succeed':
print(poll_result['data']['task_result']['videos'][0]['url'])
break
if status == 'failed':
print(poll_result['data']['task_status_msg'])
break
time.sleep(10)
# Step 1: Submit generation request
curl -X POST https://api.flaq.ai/api/v1/video/task \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model_name": "magi-2-reference-to-video",
"prompt": "Use the reference image for the subject, the reference video for the camera movement, and the reference audio for the ambience",
"duration": 8,
"aspect_ratio": "16:9",
"sound": true,
"images": ["https://example.com/subject-reference.jpg"],
"videos": ["https://example.com/camera-movement-reference.mp4"],
"audios": ["https://example.com/ambience-reference.mp3"]
}'
# Use the @ (AT) reference feature in prompt through <<<...>>> placeholders.
# Placeholder numbering is 1-based for each media array:
# <<<image_1>>> = images[0], <<<image_2>>> = images[1]
# <<<video_1>>> = videos[0], <<<audio_1>>> = audios[0]
curl -X POST https://api.flaq.ai/api/v1/video/task \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model_name": "magi-2-reference-to-video",
"prompt": "Show the cyclist from <<<image_1>>> on the trail in <<<image_2>>>. Follow the camera movement in <<<video_1>>> and use <<<audio_1>>> as a reference for the forest ambience",
"duration": 10,
"aspect_ratio": "16:9",
"sound": true,
"images": [
"https://example.com/cyclist-reference.jpg",
"https://example.com/forest-trail-reference.png"
],
"videos": ["https://example.com/camera-movement-reference.mp4"],
"audios": ["https://example.com/forest-ambience-reference.mp3"]
}'
# Step 2: Poll for results
# Replace {task_id} with the task_id returned from the submit response
curl -X GET "https://api.flaq.ai/api/v1/video/{task_id}" \
-H "Authorization: Bearer YOUR_API_KEY"
| พารามิเตอร์ | ราคา | ราคาเดิม | ส่วนลด |
|---|
Sand AI Magi 2 Reference-to-Video API บน Flaq AI ช่วยให้นักพัฒนาและทีมสร้างสรรค์ใช้ภาพ คลิปวิดีโอ และแทร็กเสียงอ้างอิงเพื่อกำหนดแนวทางการสร้างวิดีโอใหม่ได้ตามต้องการ คุณสามารถใช้สื่ออ้างอิงด้านภาพ การเคลื่อนไหว และเสียงร่วมกันในพรอมต์เดียว หรือเลือกใช้เพียงประเภทเดียว พร้อมกำหนดความยาวคลิป อัตราส่วนภาพ และเลือกว่าจะให้โมเดลสร้างเสียงไปพร้อมกับวิดีโอหรือไม่
หมายเหตุ ภาพ คลิปวิดีโอ และไฟล์เสียงอ้างอิงเป็นตัวเลือกทั้งหมดและใช้ร่วมกันได้อย่างอิสระ หากไม่ส่งสื่ออ้างอิงเลย Magi 2 จะสร้างวิดีโอจากพรอมต์เพียงอย่างเดียว ก่อนส่งคำขอ โปรดตรวจสอบรูปแบบไฟล์ที่รองรับ ขนาดสูงสุด และขีดจำกัดระยะเวลารวมที่กำหนดแยกสำหรับวิดีโอและเสียงอ้างอิง ค่าบริการคิดเป็นรายวินาทีตามความยาววิดีโอที่ขอ และพรอมต์กับสื่อทั้งหมดต้องเป็นไปตามแนวทางความปลอดภัยด้านเนื้อหาของ Sand AI
Magi 2 Reference-to-Video เทียบกับ Magi 2 Text-to-Video
Text-to-Video สร้างวิดีโอจากคำสั่งที่เขียนโดยตรง ส่วน Reference-to-Video เปิดให้เพิ่มภาพ วิดีโอ และเสียงได้ตามต้องการ เพื่อกำหนดภาพ การเคลื่อนไหว และเสียงให้ชัดเจนยิ่งขึ้น
Magi 2 Reference-to-Video เทียบกับ Magi 2 Image-to-Video
Image-to-Video สร้างภาพเคลื่อนไหวจากเฟรมแรกที่ต้องระบุ และเพิ่มเฟรมสุดท้ายได้ตามต้องการ ส่วน Reference-to-Video เปิดให้เลือกใช้ภาพ วิดีโอ และเสียงอ้างอิงหลายรายการเพื่อสร้างช็อตใหม่ทั้งหมด
Magi 2 Reference-to-Video เทียบกับ Seedance 2.5 Reference-to-Video
ทั้งสองโมเดลรองรับการผสมภาพ วิดีโอ และเสียงอ้างอิงตามต้องการ พร้อมกำกับฉากด้วยพรอมต์ Seedance 2.5 Reference-to-Video มีระดับความละเอียดเอาต์พุตให้เลือก ส่วน Magi 2 Reference-to-Video ใช้กระบวนการสร้างวิดีโอจากสื่ออ้างอิงของ Sand AI ซึ่งกำหนดความยาวคลิปได้โดยตรงและคิดค่าบริการตามระยะเวลาเอาต์พุตเป็นวินาที
Magi 2 Reference-to-Video เทียบกับ Wan Reference-to-Video
Wan Reference-to-Video ใช้สื่ออ้างอิงด้านภาพที่อัปโหลดเพื่อกำกับการสร้างวิดีโอ ส่วน Magi 2 Reference-to-Video บน Flaq AI รองรับการผสมภาพ คลิปวิดีโอ และแทร็กเสียงในคำขอเดียว พร้อมอัตราส่วนภาพให้เลือกหลากหลาย
พารามิเตอร์ปัจจุบัน อินพุตที่รองรับ และความสามารถของ Magi 2 Reference to Video บน Flaq AI
ลองใช้โมเดลใน Playground ก่อนส่งคำขอ API
ใช้ยอดเครดิตเดียวกันกับโมเดลวิดีโอ ภาพ LLM เสียง และ 3D เครดิตที่ซื้อไม่มีวันหมดอายุ หากงานไม่สำเร็จเพราะข้อผิดพลาดของระบบ จะไม่มีการหักยอดคงเหลือของคุณ
คัดลอก ID โมเดลด้านล่างลงในคำขอ API สำหรับ Magi 2 Reference to Video
สำรวจโมเดลอื่นจาก Sand AI และตรวจสอบอินพุตที่รองรับและราคา
ทุกเรื่องที่ควรรู้เกี่ยวกับความสามารถ ราคา งานที่ไม่สำเร็จ และการใช้ API
สร้างวิดีโอจากสื่ออ้างอิงด้วย Magi 2 API จาก Sand AI บน Flaq AI ภาพกำกับรูปลักษณ์ คลิปกำกับการเคลื่อนไหว เสียงกำกับเสียงฉาก
งานที่รองรับ: อ้างอิงเป็นวิดีโอ อินพุตและการตั้งค่าที่ใช้ได้ประกอบด้วย ระยะเวลา, อัตราส่วนภาพ, ภาพอ้างอิง, วิดีโออ้างอิง, referenceAudios, referenceSubjects ดูค่าที่รองรับในข้อมูลจำเพาะ
รูปแบบการคิดค่าบริการ: ต่อ วินาที ตารางราคาด้านบนแสดงอัตราและการตั้งค่าที่กำหนดว่าจะใช้อัตราใด
หากงานไม่สำเร็จเพราะข้อผิดพลาดของระบบ จะไม่มีการหักยอดคงเหลือของคุณ
ใช้ magi-2-reference-to-video เป็น ID โมเดลในคำขอ ดูรายละเอียดการยืนยันตัวตนและคำขอในเอกสาร API
โมเดลอื่นมี Magi 2 Text to Video, Magi 2 Image to Video เปรียบเทียบอินพุตที่รองรับ การตั้งค่าเอาต์พุต และราคาได้ในหน้าของแต่ละโมเดล
เครดิตที่ซื้อไม่มีวันหมดอายุ การใช้ผลลัพธ์เชิงพาณิชย์อยู่ภายใต้ข้อกำหนดการให้บริการของ Flaq AI และข้อกำหนดของผู้ให้บริการโมเดลที่เกี่ยวข้อง
สำรวจเครื่องมือสร้างสรรค์ AI หลายรายการสำหรับเวิร์กโฟลว์รูปภาพและวิดีโอที่รวดเร็วในเบราว์เซอร์ จากนั้นขยายไอเดียที่สำเร็จไปยัง model APIs ของ Flaq AI ที่พร้อมสำหรับการผลิต Flaq AI ให้ชั้น API แบบรวมศูนย์สำหรับทุกโมเดล ทำให้ใช้งานและขยายเวิร์กโฟลว์ได้ง่าย

สร้างรูปภาพและวิดีโอ AI ในพื้นที่ทำงานเดียวที่ครบวงจร
เปิดพื้นที่ทำงานของเอเจนต์แล้วสนทนาต่อ

สร้างเวิร์กโฟลว์ภาพและวิดีโอ AI แบบภาพบนแคนวาสไร้ขอบเขต

สร้างวิดีโอที่สม่ำเสมอจากสื่ออ้างอิง

สร้างรูปภาพ AI จากพรอมต์ข้อความ

สร้างรูปภาพ AI จากรูปภาพและพรอมต์ข้อความ

สร้างวิดีโอ AI จากพรอมต์ข้อความ

ทำให้รูปภาพเคลื่อนไหวเป็นวิดีโอ AI