
من النص إلى صورة
أنشئ صور AI من مطالبات نصية
جرّب Seedance 2.5 API لـ Reference-to-Video من ByteDance مع مراجع اختيارية من الصور والفيديو والصوت، ومدة من 4 إلى 30 ثانية، وصوت، ومخرجات بدقة 720p.
// 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: 'seedance-v2.5-reference-to-video',
prompt: 'Use image one for the subject, video one for the movement, and audio one for the atmosphere',
resolution: '720p',
duration: 8,
aspect_ratio: '16:9',
sound: true,
images: ['https://example.com/subject-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/atmosphere-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: 'seedance-v2.5-reference-to-video',
prompt: 'Place the explorer from <<<image_1>>> in the environment from <<<image_2>>>, following the camera movement in <<<video_1>>> and speaking with the reference voice from <<<audio_1>>>',
resolution: '720p',
duration: 10,
aspect_ratio: '16:9',
sound: true,
images: [
'https://example.com/explorer-reference.jpg',
'https://example.com/environment-reference.png'
],
videos: ['https://example.com/camera-movement-reference.mp4'],
audios: ['https://example.com/voice-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': 'seedance-v2.5-reference-to-video',
'prompt': 'Use image one for the subject, video one for the movement, and audio one for the atmosphere',
'resolution': '720p',
'duration': 8,
'aspect_ratio': '16:9',
'sound': True,
'images': ['https://example.com/subject-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/atmosphere-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': 'seedance-v2.5-reference-to-video',
'prompt': 'Place the explorer from <<<image_1>>> in the environment from <<<image_2>>>, following the camera movement in <<<video_1>>> and speaking with the reference voice from <<<audio_1>>>',
'resolution': '720p',
'duration': 10,
'aspect_ratio': '16:9',
'sound': True,
'images': [
'https://example.com/explorer-reference.jpg',
'https://example.com/environment-reference.png'
],
'videos': ['https://example.com/camera-movement-reference.mp4'],
'audios': ['https://example.com/voice-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": "seedance-v2.5-reference-to-video",
"prompt": "Use image one for the subject, video one for the movement, and audio one for the atmosphere",
"resolution": "720p",
"duration": 8,
"aspect_ratio": "16:9",
"sound": true,
"images": ["https://example.com/subject-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/atmosphere-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": "seedance-v2.5-reference-to-video",
"prompt": "Place the explorer from <<<image_1>>> in the environment from <<<image_2>>>, following the camera movement in <<<video_1>>> and speaking with the reference voice from <<<audio_1>>>",
"resolution": "720p",
"duration": 10,
"aspect_ratio": "16:9",
"sound": true,
"images": [
"https://example.com/explorer-reference.jpg",
"https://example.com/environment-reference.png"
],
"videos": ["https://example.com/camera-movement-reference.mp4"],
"audios": ["https://example.com/voice-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"
| المعلمات | السعر | السعر الأصلي | الخصم |
|---|
تدعم واجهة ByteDance Seedance 2.5 Reference-to-Video صورًا ومقاطع صوتية وفيديوهات اختيارية لتوجيه توليد فيديوهات جديدة على Flaq AI. ويمكن للمطورين والفرق الإبداعية استخدام مراجع متعددة الوسائط لتوضيح مظهر العناصر والمنتجات والبيئات والحركة والتوقيت والصوت والتوجه البصري بدقة أكبر من النص وحده. وتتيح أدوات التحكم المرنة في الجودة والمدة ونسبة العرض إلى الارتفاع والصوت المولّد استخدام الواجهة لمحتوى العلامات التجارية وسير عمل الشخصيات وسرد قصص المنتجات والأنظمة الإبداعية القابلة للتوسع.
ملاحظة تُدعَم الطلبات التي تحتوي على صور فقط أو فيديو فقط أو صوت فقط، وكذلك الطلبات دون وسائط مرجعية. يُنصَح باستخدام Text-to-Video للتوليد دون مراجع. يُرجى التأكد من امتثال جميع النصوص التوجيهية والوسائط لإرشادات أمان المحتوى لدى ByteDance.
Seedance 2.5 Reference-to-Video مقابل Seedance 2.5 Text-to-Video
يولّد Text-to-Video من التوجيهات المكتوبة
وحدها. ويضيف Reference-to-Video توجيهًا اختياريًا بالصور والفيديو والصوت لسير العمل الذي يحتاج إلى
تحكم أكثر تحديدًا في الحركة أو المظهر أو التوقيت أو الأسلوب.
Seedance 2.5 Reference-to-Video مقابل Seedance 2.5 Image-to-Video
يحرّك Image-to-Video إطارًا أول مطلوبًا، ويمكنه
استخدام إطار أخير اختياري. أما Reference-to-Video فيمكنه الجمع بين مواد فيديو
وصور وصوت اختيارية لتوجيه متعدد الوسائط أوسع.
Seedance 2.5 Reference-to-Video مقابل Wan Reference-to-Video
يستخدم النهجان الوسائط المرفوعة لتوجيه توليد
فيديوهات جديدة. ويوفر Seedance 2.5 سير عمل مرنًا بمراجع صور وفيديو وصوت اختيارية، إلى جانب
أدوات تحكم مرنة في المخرجات عبر Flaq AI.
Seedance 2.5 Reference-to-Video مقابل Vidu Reference-to-Video
يوفر Vidu إنشاء فيديو موجّهًا بالمراجع لتحقيق اتساق
بصري. ويدعم Seedance 2.5 توجيهًا اختياريًا بالفيديو وإمكانية الجمع بين مراجع الصور
والصوت في طلب واحد.
Seedance 2.5 Reference-to-Video مقابل أدوات فيديو Runway
يوفر Runway مجموعة واسعة من أدوات الإبداع التفاعلية.
وتوفر واجهة Seedance 2.5 Reference-to-Video سير عمل برمجيًا مركّزًا لمدخلات الوسائط المتعددة وتوجيه
المراجع بالنص والتوليد القابل للتوسع.
استكشف عدة أدوات إنشاء AI لسير عمل سريع للصور والفيديو داخل متصفحك، ثم وسّع الأفكار الناجحة باستخدام واجهات API لنماذج Flaq AI الجاهزة للإنتاج. يوفر Flaq AI طبقة API موحدة لكل النماذج، مما يسهل استخدام سير العمل وتوسيعه.

أنشئ صور AI من مطالبات نصية

أنشئ صور AI من الصور والمطالبات النصية

أنشئ فيديوهات AI من مطالبات نصية

حوّل الصور إلى فيديوهات AI متحركة

أنشئ صورًا وفيديوهات بالذكاء الاصطناعي في مساحة عمل موحدة

أنشئ فيديوهات متناسقة من الوسائط المرجعية

أنشئ سير عمل مرئيًا للصور والفيديو بالذكاء الاصطناعي على لوحة لا نهائية