
مولد AI من النص إلى صورة
أنشئ صورًا مصقولة من المطالبات باستخدام نماذج صور AI رائدة، وإعدادات مرنة، وسير عمل سريع داخل المتصفح.
جرّب Wan 2.7 Reference-to-Video API مجانًا مع ما يصل إلى خمس صور أو فيديوهات مرجعية ومرجع صوتي اختياري وإخراج بدقة 1080p والتحكم في seed. مناسب لسير عمل إبداعي مرن.
// 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: 'wan-2.7-reference-to-video',
prompt: 'Use image one for the hero and video one for the motion; keep the hero voice consistent with audio one',
resolution: '1080p',
duration: 8,
aspect_ratio: '16:9',
images: ['https://example.com/hero-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/voice-reference.mp3'],
negative_prompt: 'flicker, distorted hands, duplicate subjects',
seed: 42
})
});
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: 'wan-2.7-reference-to-video',
prompt: 'Place the presenter from <<<image_1>>> in the studio from <<<image_2>>>, follow the camera path in <<<video_1>>>, and use the reference voice from <<<audio_1>>>',
resolution: '1080p',
duration: 8,
aspect_ratio: '16:9',
images: [
'https://example.com/presenter-reference.jpg',
'https://example.com/studio-reference.jpg'
],
videos: ['https://example.com/camera-path-reference.mp4'],
audios: ['https://example.com/voice-reference.mp3'],
negative_prompt: 'flicker, distorted hands, duplicate subjects',
seed: 42
})
});
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': 'wan-2.7-reference-to-video',
'prompt': 'Use image one for the hero and video one for the motion; keep the hero voice consistent with audio one',
'resolution': '1080p',
'duration': 8,
'aspect_ratio': '16:9',
'images': ['https://example.com/hero-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/voice-reference.mp3'],
'negative_prompt': 'flicker, distorted hands, duplicate subjects',
'seed': 42
}
)
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': 'wan-2.7-reference-to-video',
'prompt': 'Place the presenter from <<<image_1>>> in the studio from <<<image_2>>>, follow the camera path in <<<video_1>>>, and use the reference voice from <<<audio_1>>>',
'resolution': '1080p',
'duration': 8,
'aspect_ratio': '16:9',
'images': [
'https://example.com/presenter-reference.jpg',
'https://example.com/studio-reference.jpg'
],
'videos': ['https://example.com/camera-path-reference.mp4'],
'audios': ['https://example.com/voice-reference.mp3'],
'negative_prompt': 'flicker, distorted hands, duplicate subjects',
'seed': 42
}
)
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": "wan-2.7-reference-to-video",
"prompt": "Use image one for the hero and video one for the motion; keep the hero voice consistent with audio one",
"resolution": "1080p",
"duration": 8,
"aspect_ratio": "16:9",
"images": ["https://example.com/hero-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/voice-reference.mp3"],
"negative_prompt": "flicker, distorted hands, duplicate subjects",
"seed": 42
}'
# 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": "wan-2.7-reference-to-video",
"prompt": "Place the presenter from <<<image_1>>> in the studio from <<<image_2>>>, follow the camera path in <<<video_1>>>, and use the reference voice from <<<audio_1>>>",
"resolution": "1080p",
"duration": 8,
"aspect_ratio": "16:9",
"images": [
"https://example.com/presenter-reference.jpg",
"https://example.com/studio-reference.jpg"
],
"videos": ["https://example.com/camera-path-reference.mp4"],
"audios": ["https://example.com/voice-reference.mp3"],
"negative_prompt": "flicker, distorted hands, duplicate subjects",
"seed": 42
}'
# 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"
| المعلمات | السعر | السعر الأصلي | الخصم |
|---|
تقدم واجهة Alibaba Wan 2.7 Reference-to-Video API إنشاء فيديو بالذكاء الاصطناعي بمستوى ملائم للإنتاج للمطورين والفرق الإبداعية التي تحتاج إلى ثبات الأشخاص والأصوات والتوجيه البصري عبر المقاطع المنشأة. تستقبل هذه الواجهة المتقدمة لتحويل المراجع إلى فيديو مراجع من الصور والفيديو مع إمكانية الاسترشاد بالصوت، ثم تحول التعليمات المكتوبة باللغة الطبيعية إلى فيديو متقن بدقة 720p أو 1080p. صُمم Wan 2.7 للإنتاج الإبداعي القابل للتحكم، ويجمع بين فهم المراجع متعددة الوسائط وإعدادات الإخراج المرنة والوصول القابل للتوسع إلى API على Flaq AI.
ملاحظة يُرجى التأكد من توافق الـ prompts والوسائط المرجعية مع إرشادات السلامة لدى Alibaba. إذا حدث خطأ، فراجع مدخلاتك بحثاً عن محتوى محظور وعدّلها ثم حاول مجدداً.
Wan 2.7 Reference-to-Video مقابل Wan 2.7 Image-to-Video يحرك Wan 2.7 Image-to-Video صورة بداية. بينما يدعم Wan 2.7 Reference-to-Video الجمع بين مراجع الصور والفيديو وتوجيه عدة أشخاص والمرجع الصوتي الاختياري لإنتاج أكثر تحكماً يحافظ على الهوية.
Wan 2.7 Reference-to-Video مقابل Seedance V2.0 Reference-to-Video يوفر Seedance V2.0 إنشاءً مرجعياً متعدد الوسائط على نطاق واسع باستخدام مدخلات الصور والفيديو والصوت. يركز Wan 2.7 على مراجع منظمة للأشخاص وتوجيه اختياري للهوية الصوتية وprompts سلبية وإنشاء فيديو Alibaba عالي الدقة.
Wan 2.7 Reference-to-Video مقابل Vidu Q3 Reference-to-Video يركز Vidu Q3 على ثبات الأشخاص استناداً إلى صور متعددة والصوت الأصلي المتزامن. يضيف Wan 2.7 دعماً للجمع بين مراجع الصور والفيديو مع توجيه صوتي اختياري على مستوى الشخص لمسارات عمل مرنة متعددة الوسائط.
Wan 2.7 Reference-to-Video مقابل Kling Video O3 Reference-to-Video يوفر Kling Video O3 إنشاءً موجهاً بالمراجع مع قدرة قوية على استيعاب الحركة. يتميز Wan 2.7 بالوسائط المرجعية المختلطة وتوجيه صوت الشخص والتحكم في seed والـ prompts السلبية لمسارات إنتاج قابلة للتحكم.
Wan 2.7 Reference-to-Video مقابل Runway Video Tools يوفر Runway مجموعة واسعة من أدوات التحرير والإنشاء الموجهة للمبدعين. صُممت واجهة Wan 2.7 Reference-to-Video API لمسارات العمل البرمجية متعددة الوسائط القائمة على المراجع وإعادة استخدام الأشخاص باتساق والتكامل القابل للتوسع مع التطبيقات.
استكشف عدة أدوات إنشاء AI لسير عمل سريع للصور والفيديو داخل متصفحك، ثم وسّع الأفكار الناجحة باستخدام واجهات API لنماذج Flaq AI الجاهزة للإنتاج. يوفر Flaq AI طبقة API موحدة لكل النماذج، مما يسهل استخدام سير العمل وتوسيعه.

أنشئ صورًا مصقولة من المطالبات باستخدام نماذج صور AI رائدة، وإعدادات مرنة، وسير عمل سريع داخل المتصفح.

حمّل صورة مرجعية، ووجّه التعديلات بالمطالبات، وحوّل المرئيات للتصميم والتسويق والإنتاج الإبداعي.

حوّل أفكار المشاهد المكتوبة إلى فيديوهات AI قصيرة مع اختيار النموذج ومطالبات الحركة وتحكمات إنشاء عملية.

حوّل الصور المرجعية إلى مقاطع فيديو AI سلسة للمنتجات والبورتريهات والمنشورات الاجتماعية والمفاهيم الإبداعية.