
Text to Image
Create AI images from text prompts
Free to try Alibaba Wan 3.0 API for Reference-to-Video and guide video generation with images, clips, audio, documents, or webpages on Flaq AI. Explore flexible creation.
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-3.0-reference-to-video',
prompt: 'Use the references to create a cinematic product launch with coordinated motion and sound',
duration: 12,
resolution: '1080p',
aspect_ratio: '16:9',
sound: true,
images: ['https://example.com/product-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/sound-reference.mp3'],
files: ['https://example.com/creative-brief.pdf'],
seed: 42
})
});
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={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'model_name': 'wan-3.0-reference-to-video',
'prompt': 'Use the references to create a cinematic product launch with coordinated motion and sound',
'duration': 12,
'resolution': '1080p',
'aspect_ratio': '16:9',
'sound': True,
'images': ['https://example.com/product-reference.jpg'],
'videos': ['https://example.com/motion-reference.mp4'],
'audios': ['https://example.com/sound-reference.mp3'],
'files': ['https://example.com/creative-brief.pdf'],
'seed': 42
}
)
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 "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model_name": "wan-3.0-reference-to-video",
"prompt": "Use the references to create a cinematic product launch with coordinated motion and sound",
"duration": 12,
"resolution": "1080p",
"aspect_ratio": "16:9",
"sound": true,
"images": ["https://example.com/product-reference.jpg"],
"videos": ["https://example.com/motion-reference.mp4"],
"audios": ["https://example.com/sound-reference.mp3"],
"files": ["https://example.com/creative-brief.pdf"],
"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"
| Parameters | Price | Original Price | Discount |
|---|
Wan 3.0 API for Reference-to-Video generates video from a prompt with optional image, video, audio, document, or public webpage references. Developers can use the supported inputs to guide visual identity, motion, sound, context, and scene direction while configuring duration, resolution, aspect ratio, sound, and seed. Flaq AI provides a task-based workflow for submitting multimodal requests and retrieving completed videos.
Note Reference inputs are optional, but every supplied asset must meet its format and limit requirements. A reference file and webpage link cannot be used together in the same request. Overseas webpage URLs are supported by the overseas service but cannot be parsed by the domestic service.
Wan 3.0 vs. Wan 2.7 Reference-to-Video
Wan 2.7 focuses on image, video, and voice references with a combined visual-reference limit. Wan 3.0 expands the workflow with independent media limits plus document and public webpage context.
Wan 3.0 vs. MiniMax H3 Reference-to-Video
MiniMax H3 supports multimodal video direction with visual and audio references. Wan 3.0 adds document and webpage input options for teams working with broader creative source material.
Wan 3.0 vs. Seedance 2.5 Reference-to-Video
Seedance 2.5 uses image, video, and audio references in its audio-visual generation workflow. Wan 3.0 offers a Wan-family alternative with optional document or public link context.
Wan 3.0 vs. Kling Video O3 Reference-to-Video
Kling Video O3 spans reference generation and video editing variants. Wan 3.0 provides an Alibaba-oriented multimodal request format with flexible output and sound controls.
Wan 3.0 vs. Runway References
Runway integrates references into a broad creative workspace. Wan 3.0 is suited to developers building reference-guided generation directly into their own products and automated workflows.
Explore several AI creation tools for quick image and video workflows in your browser, then scale successful ideas with Flaq AI's production-ready model APIs. Flaq AI provides a unified API layer for all models, making it easy to use and scale your workflows.

Create AI images from text prompts

Create AI images from images and text prompts

Create AI videos from text prompts

Animate images into AI videos

Create AI images and videos in one unified workspace

Create consistent videos from reference media

Build visual AI image and video workflows on an infinite canvas