
Generator AI Text to Image
Buat gambar halus dari prompt dengan model gambar AI terkemuka, pengaturan fleksibel, dan alur kerja berbasis browser yang cepat.
Coba gratis Wan 2.7 Reference-to-Video API dengan hingga lima gambar atau video referensi, referensi suara opsional, output 1080p, dan kontrol 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"
| Parameter | Harga | Harga asli | Diskon |
|---|
API Wan 2.7 Reference-to-Video dari Alibaba menghadirkan pembuatan video AI berstandar produksi bagi pengembang dan tim kreatif yang membutuhkan konsistensi subjek, suara, dan arahan visual di seluruh klip yang dihasilkan. Integrasi API reference-to-video canggih ini menerima referensi gambar dan video dengan panduan suara opsional, lalu mengubah instruksi bahasa alami menjadi video 720p atau 1080p yang berkualitas tinggi. Dirancang untuk produksi kreatif yang terkendali, Wan 2.7 memadukan pemahaman referensi multimodal, pengaturan keluaran yang fleksibel, dan akses API yang dapat diskalakan di Flaq AI.
Catatan Pastikan prompt dan media referensi Anda mematuhi pedoman keamanan Alibaba. Jika terjadi kesalahan, periksa masukan Anda untuk menemukan konten yang dibatasi, sesuaikan, lalu coba lagi.
Wan 2.7 Reference-to-Video vs. Wan 2.7 Image-to-Video Wan 2.7 Image-to-Video menganimasikan gambar awal. Wan 2.7 Reference-to-Video mendukung perpaduan referensi gambar dan video, panduan multisubjek, serta referensi suara opsional untuk produksi berbasis identitas yang lebih terkendali.
Wan 2.7 Reference-to-Video vs. Seedance V2.0 Reference-to-Video Seedance V2.0 menyediakan pembuatan dengan referensi multimodal yang luas melalui masukan gambar, video, dan audio. Wan 2.7 menekankan referensi subjek terstruktur, panduan identitas suara opsional, prompt negatif, serta pembuatan video Alibaba beresolusi tinggi.
Wan 2.7 Reference-to-Video vs. Vidu Q3 Reference-to-Video Vidu Q3 berfokus pada konsistensi subjek dari banyak gambar dan audio bawaan tersinkronisasi. Wan 2.7 menambahkan dukungan referensi campuran gambar dan video dengan panduan suara opsional pada tingkat subjek untuk alur kerja multimodal yang fleksibel.
Wan 2.7 Reference-to-Video vs. Kling Video O3 Reference-to-Video Kling Video O3 menawarkan pembuatan berpanduan referensi dengan penalaran gerakan yang kuat. Wan 2.7 tampil berbeda melalui media referensi campuran, panduan suara subjek, kontrol seed, dan prompt negatif untuk alur kerja produksi yang terkendali.
Wan 2.7 Reference-to-Video vs. Runway Video Tools Runway menyediakan rangkaian penyuntingan dan pembuatan yang luas bagi kreator. API Wan 2.7 Reference-to-Video dirancang untuk alur kerja referensi multimodal terprogram, penggunaan kembali subjek secara konsisten, dan integrasi aplikasi yang dapat diskalakan.
Jelajahi beberapa alat pembuatan AI untuk alur kerja gambar dan video cepat di browser Anda, lalu skalakan ide yang berhasil dengan API model siap produksi dari Flaq AI. Flaq AI menyediakan lapisan API terpadu untuk semua model, sehingga alur kerja Anda mudah digunakan dan diskalakan.

Buat gambar halus dari prompt dengan model gambar AI terkemuka, pengaturan fleksibel, dan alur kerja berbasis browser yang cepat.

Unggah gambar referensi, arahkan pengeditan dengan prompt, dan transformasikan visual untuk desain, pemasaran, serta produksi kreatif.

Ubah ide adegan tertulis menjadi video AI pendek dengan pemilihan model, prompt gerakan, dan kontrol generasi praktis.

Animasikan gambar referensi menjadi klip video AI yang mulus untuk produk, potret, posting sosial, dan konsep kreatif.