Wan Flf2v
按实际用量计费
ae_wan_flf2v
创建由提示词引导的视频,使其从起始图像平滑过渡到结束图像。
按实际用量计费
价格说明
单次费用为(较大值(((((240 × 若((若(分辨率 = 未提供),取"720p";否则取分辨率 = "480p") 且 (若(帧数 = 未提供),取81;否则取帧数 = 81)),取1;否则取0) + (300 × 若(((若(分辨率 = 未提供),取"720p";否则取分辨率 = "480p") 且 (若(帧数 = 未提供),取81;否则取帧数 ≥ 82)) 且 (若(帧数 = 未提供),取81;否则取帧数 ≤ 100)),取1;否则取0)) + (480 × 若((若(分辨率 = 未提供),取"720p";否则取分辨率 = "720p") 且 (若(帧数 = 未提供),取81;否则取帧数 = 81)),取1;否则取0)) + (600 × 若(((若(分辨率 = 未提供),取"720p";否则取分辨率 = "720p") 且 (若(帧数 = 未提供),取81;否则取帧数 ≥ 82)) 且 (若(帧数 = 未提供),取81;否则取帧数 ≤ 100)),取1;否则取0)), 0))AE积分。各项条件同时适用,按所选条件计算合计费用。
费用随所选分辨率和生成帧数变化;未提供时默认为720p和81帧。
工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
request_body | object | 是 | 暂无参数说明。 | — |
request_body.seed | integer | unknown | 否 | Random seed for reproducibility. If None, a random seed is chosen. | — |
request_body.shift | number | 否 | Shift parameter for video generation. | 5 |
request_body.prompt | string | 是 | The text prompt to guide video generation. | — |
request_body.num_frames | integer | unknown | 否 | Number of frames to generate. Must be between 81 to 100 (inclusive). If the number of frames is greater than 81, the video will be generated with 1.25x more billing units. | 81 |
request_body.resolution | enum (480p | 720p) | 否 | Resolution of the generated video (480p or 720p). 480p is 0.5 billing units, and 720p is 1 billing unit. | 720p |
request_body.guide_scale | number | 否 | Classifier-free guidance scale. Higher values give better adherence to the prompt but may decrease quality. | 5 |
request_body.acceleration | enum (none | regular) | 否 | Acceleration level to use. The more acceleration, the faster the generation, but with lower quality. The recommended value is 'regular'. | regular |
request_body.aspect_ratio | enum (auto | 16:9 | 9:16 | 1:1) | 否 | Aspect ratio of the generated video. If 'auto', the aspect ratio will be determined automatically based on the input image. | auto |
request_body.end_image_url | string | 是 | URL of the ending image. If the input image does not match the chosen aspect ratio, it is resized and center cropped. | — |
request_body.negative_prompt | string | 否 | Negative prompt for video generation. | bright colors, overexposed, static, blurred details, subtitles, style, artwork, painting, picture, still, overall gray, worst quality, low quality, JPEG compression residue, ugly, incomplete, extra fingers, poorly drawn hands, poorly drawn faces, deformed, disfigured, malformed limbs, fused fingers, still picture, cluttered background, three legs, many people in the background, walking backwards |
request_body.start_image_url | string | 是 | URL of the starting image. If the input image does not match the chosen aspect ratio, it is resized and center cropped. | — |
request_body.frames_per_second | integer | unknown | 否 | Frames per second of the generated video. Must be between 5 to 24. | 16 |
request_body.num_inference_steps | integer | 否 | Number of inference steps for sampling. Higher values give better quality but take longer. | 30 |
request_body.enable_safety_checker | boolean | 否 | If set to true, the safety checker will be enabled. | false |
request_body.enable_prompt_expansion | boolean | 否 | Whether to enable prompt expansion. | false |
调用示例
提交任务并查询完成结果
POST
/agent-api/v1/tool/executeX-Api-Key先提交任务,再用返回的 task_id 查询,直至完成。
请求代码request.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_wan_flf2v' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"acceleration": "regular",
"aspect_ratio": "9:16",
"enable_prompt_expansion": false,
"enable_safety_checker": true,
"end_image_url": "https://v3b.fal.media/files/b/0ab1c05e/e7rBDv4tPOzaMLuJ0-_wU_CZ6SVp44.jpg",
"fps": 16,
"guide_scale": 5,
"negative_prompt": "产品变形,鞋眼数量变化,毛领变色,鞋底变平,纹路消失,多出一只鞋,多出一只脚,第二个人,雪粒悬浮不落,悬浮,水珠滚落,文字,水印,字幕,影棚光,完美构图,CGI感,3D渲染感,AI绘画感,稳定器画面,过度锐化,HDR,美颜,滤镜,bright colors, overexposed, static, blurred details, subtitles, artwork, painting, still, worst quality, low quality, deformed, disfigured, malformed limbs, extra legs, walking backwards",
"num_frames": 81,
"num_inference_steps": 30,
"prompt": "iPhone后置手机随手拍质感实拍视频,照片级写实,竖屏9:16,阴天6500K冷调漫射光,细雪飘落。低角度贴地固定机位,轻微手持呼吸抖动,视频中段出现一次约0.3秒的对焦犹豫(画面先略虚再合焦),曝光轻微跳动一次,边缘极轻暗角,轻微手机压缩噪点,构图略偏。动作:一只穿蓝色牛仔裤的脚穿着棕色雪地靴从画面上方缓缓踏入,鞋底压向湿雪地面,雪面下陷并压出浅浅水痕,几粒雪粒被鞋底短暂带起后落下,灰色毛绒靴领受压凹陷后自然回弹,裤脚随步伐滞后身体半拍,冷天极轻呼气白雾从画面边缘飘过。靴子落地后镜头缓慢推近约十厘米后停住。全程只有踩一步这一个动作,不切镜,不跑动,不出现第二只脚,靴子款式颜色细节全程不变。金属鞋眼有冷色反光,橡胶哑光,牛仔布斜纹可见。",
"resolution": "720p",
"start_image_url": "https://v3b.fal.media/files/b/0ab1c00d/LbKPHM55FcRAXtlshpeQ9_i57d9brg.jpg"
}
}
}'返回示例response.json
{
"description": "task accepted; poll the result via query_tool with this task_id",
"query_tool": "ae_get_result",
"status": "created",
"task_id": "35e88f67-b5b9-4be1-85eb-089a39142158"
}





