
AI 文本转图像生成器
使用领先 AI 图像模型、灵活设置和快速浏览器工作流,从提示词创建精致图像。
通过阿里巴巴 Wan 2.7 API 实现高质量图像动画,具备真实的时序一致性和优越画质,系统高可用稳定。企业级定价极具竞争力,适用于大规模视频自动化、丰富内容生产等多场景需求,让创意动效轻松批量落地,显著提升投入产出比。适合开发者和团队接入图片、视频或多模态生成流程。你可以先体验核心效果,再用于创意设计、营销素材、批量内容生产和自动化工作流。
// 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-image-to-video',
prompt: 'Gentle camera push-in; leaves rustle softly in the breeze',
duration: 6,
resolution: '720p',
negative_prompt: 'blur, low quality',
seed: 42,
image_url: 'https://example.com/first-frame.jpg',
image_end_url: 'https://example.com/last-frame.jpg',
audio_url: 'https://example.com/driving-audio.mp3',
video_url: 'https://example.com/reference-continuation.mp4'
})
});
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-image-to-video',
'prompt': 'Gentle camera push-in; leaves rustle softly in the breeze',
'duration': 6,
'resolution': '720p',
'negative_prompt': 'blur, low quality',
'seed': 42,
'image_url': 'https://example.com/first-frame.jpg',
'image_end_url': 'https://example.com/last-frame.jpg',
'audio_url': 'https://example.com/driving-audio.mp3',
'video_url': 'https://example.com/reference-continuation.mp4',
}
)
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-image-to-video",
"prompt": "Gentle camera push-in; leaves rustle softly in the breeze",
"duration": 6,
"resolution": "720p",
"negative_prompt": "blur, low quality",
"seed": 42,
"image_url": "https://example.com/first-frame.jpg",
"image_end_url": "https://example.com/last-frame.jpg",
"audio_url": "https://example.com/driving-audio.mp3",
"video_url": "https://example.com/reference-continuation.mp4"
}'
# 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"
| 参数 | 价格 | 原价 | 折扣 |
|---|
阿里巴巴 Wan 2.7 图像转视频 API 为开发者和创意团队提供生产级 AI 视频动画能力。此先进的图像转视频 API 集成让您能够将静态图像转化为 720p 分辨率、时长 2 至 15 秒的高质量电影级动画视频。基于阿里巴巴 140 亿参数的 Wan 2.7 架构,推理速度比上一版本提升 5 倍以上,Wan 2.7 模型将上下文感知运动合成与卓越的时间一致性相结合,同时 API 提供稳定集成与可选音频支持,在 Flaq AI 上实现专业级动画工作流程。
注意 请确保您的输入图像和提示词符合平台内容准则。如果发生错误,请检查内容中是否含有受限材料,进行调整后重试。
Wan 2.7 vs. Wan 2.6 图像转视频 Wan 2.6 具备强大的动画质量和音频支持能力。Wan 2.7 图像转视频 API 在此基础上进一步提升:推理速度提升 5 倍以上、运动质量和时间一致性显著改善、提示词遵循能力更佳、支持更长时长——成为同时追求质量和吞吐量的生产工作流的首选。
Wan 2.7 vs. Kling 3.0 图像转视频 Kling 3.0 在人体运动合成和角色动画方面表现强劲。Wan 2.7 图像转视频 API 以更广泛的环境渲染能力、物理感知运动合成、在对象动力学和场景动画方面的卓越表现以及灵活的定价回应——使其在多样化的动画场景中具有高度通用性。
Wan 2.7 vs. Runway Gen-3 图像转视频 Runway Gen-3 提供强大的创意灵活性和艺术控制。Wan 2.7 图像转视频 API 凭借 140 亿参数架构、物理感知运动合成、可选音频集成和 5 倍以上更快的推理脱颖而出——提供更高的电影真实感和专业动画质量。
Wan 2.7 vs. Veo 3.1 Fast 图像转视频 Veo 3.1 Fast 利用 Google DeepMind 的架构实现快速动画。Wan 2.7 图像转视频 API 提供物理感知运动合成、可选音频集成、最长 15 秒的扩展时长以及灵活的基于分辨率的定价——成为高保真长动画制作的首选。
Wan 2.7 vs. Seedance V2.0 图像转视频 Seedance V2.0 提供广泛的宽高比支持和可选的摄像机控制。Wan 2.7 图像转视频 API 凭借 140 亿参数架构、物理感知运动合成、可选音频集成以及阿里巴巴先进的时空建模与其区分——提供卓越的环境渲染和自然场景动态。
在浏览器中探索多种 AI 创作工具,用于快速图像和视频工作流,然后通过 Flaq AI 可用于生产的模型 API 扩展成功创意。Flaq AI 为所有模型提供统一 API 层,让你的工作流更容易使用和扩展。