
Text to Image
Create AI images from text prompts
High-quality video generation via Alibaba Wan 2.7 API with complex physical coherency and smooth transitions. Reliable and budget-friendly for production. Built for free testing and stable API workflows.
// 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-text-to-video',
prompt: 'A cat playing with a ball of yarn on a sunny windowsill',
duration: 6,
resolution: '720p',
aspect_ratio: '16:9',
negative_prompt: 'blur, low quality',
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-2.7-text-to-video',
'prompt': 'A cat playing with a ball of yarn on a sunny windowsill',
'duration': 6,
'resolution': '720p',
'aspect_ratio': '16:9',
'negative_prompt': 'blur, low quality',
'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-2.7-text-to-video",
"prompt": "A cat playing with a ball of yarn on a sunny windowsill",
"duration": 6,
"resolution": "720p",
"aspect_ratio": "16:9",
"negative_prompt": "blur, low quality",
"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 |
|---|
Alibaba Wan 2.7 Text-to-Video API delivers production-grade AI video generation for developers and creative teams. This advanced text-to-video API integration enables you to transform complex narrative visions into high-quality cinematic video at 720p and 1080p resolutions across 2–15 second durations. Built on Alibaba's 14B-parameter Wan 2.7 architecture with more than 5x faster inference than previous versions, the Wan 2.7 model combines superior prompt adherence with physics-aware motion synthesis, while the API provides stable integration with optional audio support for professional-grade output on Flaq AI.
Note Please ensure your prompts comply with platform content guidelines. If an error occurs, review your prompt for restricted content, adjust it, and try again.
Wan 2.7 vs. Wan 2.6 Text-to-Video Wan 2.6 delivers strong cinematic quality with optional audio support. Wan 2.7 Text-to-Video API advances with more than 5x faster inference, significantly improved visual quality and consistency, better prompt adherence, and longer duration support—making it the superior choice for production workflows requiring both quality and throughput.
Wan 2.7 vs. Sora (OpenAI) Sora is known for world-simulation capabilities and extended duration. Wan 2.7 Text-to-Video API focuses on accessible, high-fidelity video synthesis with superior temporal stability, 5x faster inference, physics-aware motion, and flexible resolution-based pricing—delivering production-ready outputs optimized for immediate use.
Wan 2.7 vs. Runway Gen-3 Alpha Runway Gen-3 Alpha excels in creative artistic control and rapid iteration. Wan 2.7 Text-to-Video API distinguishes itself with 14B-parameter architecture, physics-aware motion synthesis, 1080p output, optional audio integration, and more than 5x faster inference—offering higher cinematic realism for professional production.
Wan 2.7 vs. Kling 3.0 Text-to-Video Kling 3.0 is strong in realistic human motion and character animation. Wan 2.7 Text-to-Video API counters with broader environmental rendering capabilities, 1080p resolution support, superior performance in architectural and sci-fi world-building, and flexible resolution-based pricing—making it versatile for diverse genres and production budgets.
Wan 2.7 vs. Veo 3.1 Fast Text-to-Video Veo 3.1 Fast leverages Google DeepMind's architecture for rapid generation. Wan 2.7 Text-to-Video API offers 1080p resolution output, physics-aware motion synthesis, optional audio integration, broader aspect ratio support (5 formats), and extended duration up to 15 seconds—making it the preferred choice for high-fidelity, long-form video production.
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
Happy Horse 1.0 is shaking up AI video news, while Wan 2.7 and Wan 2.6 give creators new ways to compare emerging video workflows.
Explore Wan 2.7 API on Flaq AI, how it handles text-to-video, and what to know about access, workflow, and open-source questions.
Compare Flaq AI video models for text-to-video, image-to-video, editing, product ads, UGC clips, speed, cinematic quality, and API workflows.