
Text to Image
Create AI images from text prompts
Free to try Alibaba Wan 3.0 API for Video Editing and reshape existing footage through natural-language direction for creative revisions on Flaq AI.
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-video-edit',
prompt: 'Turn the daytime scene into a rainy evening while preserving the subject and camera movement',
video_url: 'https://example.com/source-video.mp4',
duration: 10,
resolution: '1080p',
aspect_ratio: '16:9',
sound: true,
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-video-edit',
'prompt': 'Turn the daytime scene into a rainy evening while preserving the subject and camera movement',
'video_url': 'https://example.com/source-video.mp4',
'duration': 10,
'resolution': '1080p',
'aspect_ratio': '16:9',
'sound': True,
'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-video-edit",
"prompt": "Turn the daytime scene into a rainy evening while preserving the subject and camera movement",
"video_url": "https://example.com/source-video.mp4",
"duration": 10,
"resolution": "1080p",
"aspect_ratio": "16:9",
"sound": true,
"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 Video Editing applies natural-language instructions to an existing video. Developers can describe scene, style, atmosphere, subject, or environmental changes while controlling the requested output duration, resolution, aspect ratio, sound, and seed. Flaq AI provides a task-based API workflow for submitting source footage, tracking the edit, and retrieving the transformed video.
Note The source video must meet the supported format, duration, and dimension limits. Its duration plus the requested output duration cannot exceed the combined limit, so validate timing before submission.
Wan 3.0 vs. Wan 2.7 Video Edit
Wan 2.7 provides prompt-guided source video editing with its own reference controls. Wan 3.0 uses a focused source-video workflow with explicit duration, resolution, ratio, sound, and seed settings.
Wan 3.0 vs. Kling Video O3 Video Edit
Kling Video O3 spans editing and additional video generation modes. Wan 3.0 is suited to teams that need a direct Wan-family route for transforming uploaded footage.
Wan 3.0 vs. Runway Aleph
Runway Aleph is part of a broader creative editing environment. Wan 3.0 supports developers who want to orchestrate source-video transformations through their own application and task flow.
Wan 3.0 vs. Adobe Firefly Video
Adobe Firefly Video connects video generation and editing with Adobe's creative ecosystem. Wan 3.0 provides an Alibaba-oriented API option for prompt-guided editing inside custom products.
Wan 3.0 vs. Pika
Pika emphasizes accessible creative effects and transformations. Wan 3.0 is designed for structured requests, configurable output settings, and programmatic task handling.
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