
ข้อความเป็นรูปภาพ
สร้างรูปภาพ AI จากพรอมต์ข้อความ
สร้างวิดีโออ้างอิงด้วย Seedance 2.0 Mini จากรูปภาพ วิดีโอ และเสียง ผสานหลายอินพุตในเวิร์กโฟลว์ เลือกเสียงได้ ปรับระยะเวลาได้ยืดหยุ่น พร้อมเอาต์พุต ByteDance ราคาคุ้มค่า
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model_name: 'seedance-v2.0-mini-reference-to-video',
prompt:
'Use <<<image_1>>> as the character and visual reference, follow the camera movement in <<<video_1>>>, and synchronize the scene with <<<audio_1>>>.',
images: ['https://example.com/character-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/audio-reference.mp3'],
resolution: '720p',
duration: 8,
aspect_ratio: '16:9',
sound: true,
}),
});
const { data } = await response.json();
const taskId = data.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));
}
import requests
response = requests.post(
'https://api.flaq.ai/api/v1/video/task',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={
'model_name': 'seedance-v2.0-mini-reference-to-video',
'prompt': 'Use <<<image_1>>> as the character and visual reference, follow the camera movement in <<<video_1>>>, and synchronize the scene with <<<audio_1>>>.',
'images': ['https://example.com/character-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/audio-reference.mp3'],
'resolution': '720p',
'duration': 8,
'aspect_ratio': '16:9',
'sound': True,
},
)
result = response.json()
task_id = 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)
curl -X POST 'https://api.flaq.ai/api/v1/video/task' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model_name": "seedance-v2.0-mini-reference-to-video",
"prompt": "Use <<<image_1>>> as the character and visual reference, follow the camera movement in <<<video_1>>>, and synchronize the scene with <<<audio_1>>>.",
"images": ["https://example.com/character-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/audio-reference.mp3"],
"resolution": "720p",
"duration": 8,
"aspect_ratio": "16:9",
"sound": true
}'
# 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"
| พารามิเตอร์ | ราคา | ราคาเดิม | ส่วนลด |
|---|
Seedance V2.0 Mini Reference-to-Video คือโมเดลที่คุ้มค่าจาก ByteDance สำหรับสร้างวิดีโอจากรูปภาพ วิดีโอ และเสียงอ้างอิง โดยผสานการกำกับแบบมัลติโหมดเข้ากับการควบคุมเอาต์พุตที่ยืดหยุ่น จึงเหมาะสำหรับครีเอเตอร์และนักพัฒนาที่ต้องการทิศทางภาพที่สอดคล้องกันโดยไม่จำเป็นต้องใช้เอาต์พุตความละเอียดสูงกว่าของโมเดล Seedance V2.0 รุ่นมาตรฐาน
เมื่ออัปโหลดวิดีโออ้างอิงอย่างน้อยหนึ่งรายการ ค่าบริการสร้างจะเพิ่มเป็นสองเท่าหนึ่งครั้ง ตัวคูณนี้เท่ากันไม่ว่าวิดีโออ้างอิงที่อัปโหลดจะมีจำนวนหรือความยาวเท่าใด
หมายเหตุ: ทุกคำขอต้องมีรูปภาพหรือวิดีโออ้างอิงอย่างน้อยหนึ่งรายการ วิดีโอและคลิปเสียงแต่ละรายการที่อัปโหลดต้องมีความยาวระหว่าง 2 ถึง 15 วินาที ไม่รองรับคำขอที่มีเฉพาะเสียง
สำรวจเครื่องมือสร้างสรรค์ AI หลายรายการสำหรับเวิร์กโฟลว์รูปภาพและวิดีโอที่รวดเร็วในเบราว์เซอร์ จากนั้นขยายไอเดียที่สำเร็จไปยัง model APIs ของ Flaq AI ที่พร้อมสำหรับการผลิต Flaq AI ให้ชั้น API แบบรวมศูนย์สำหรับทุกโมเดล ทำให้ใช้งานและขยายเวิร์กโฟลว์ได้ง่าย

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

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

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

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

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

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