注册

/fal-ai/veo3/fast/image-to-video

POST https://api.quickrouter.ai/fal-ai/veo3/fast/image-to-video 在线调试 →
Authorization

在 Header 添加参数 Authorization,其值为 Bearer 之后拼接 Token

示例: Authorization: Bearer ********************

官方文档地址:https://fal.ai/models/fal-ai/veo3/fast/image-to-video

请求参数

Header 参数
Authorization string
必需
示例: Bearer {{YOUR_API_KEY}}
Body 参数 application/json
prompt string
必需
描述图像应如何制作动画的文本提示
image_url string
必需
要制作动画的输入图像的 URL。宽高比应为 720p 或更高分辨率,宽高比为 16:9。如果图像的纵横比不是 16:9,则会裁剪以适合。
aspect_ratio string
可选
生成视频的宽高比默认值:"auto"
duration string
可选
生成视频的时长(以秒为单位)默认值:"8s"
generate_audio boolean
可选
是否为视频生成音频。如果为 false,则将减少 33% 的积分。默认值:true
resolution string
可选
生成视频的分辨率默认值:"720p" 范围值[720p,1080p]
示例
{
    "prompt": "A woman looks into the camera, breathes in, then exclaims energetically, \"have you guys checked out Veo3 Image-to-Video on Fal? It's incredible!\"",
    "image_url": "https://storage.googleapis.com/falserverless/example_inputs/veo3-i2v-input.png",
    "aspect_ratio": "16:9",
    "duration": "8s",
    "generate_audio": true,
    "resolution": "720p"
}

请求示例代码

curl --location --request POST 'https://api.quickrouter.ai/fal-ai/veo3/fast/image-to-video' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "prompt": "A woman looks into the camera, breathes in, then exclaims energetically, \"have you guys checked out Veo3 Image-to-Video on Fal? It'''s incredible!\"",
    "image_url": "https://storage.googleapis.com/falserverless/example_inputs/veo3-i2v-input.png",
    "aspect_ratio": "16:9",
    "duration": "8s",
    "generate_audio": true,
    "resolution": "720p"
}'
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer YOUR_API_KEY");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "prompt": "A woman looks into the camera, breathes in, then exclaims energetically, \"have you guys checked out Veo3 Image-to-Video on Fal? It's incredible!\"",
  "image_url": "https://storage.googleapis.com/falserverless/example_inputs/veo3-i2v-input.png",
  "aspect_ratio": "16:9",
  "duration": "8s",
  "generate_audio": true,
  "resolution": "720p"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://api.quickrouter.ai/fal-ai/veo3/fast/image-to-video", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
import http.client
import json

conn = http.client.HTTPSConnection("api.quickrouter.ai")
payload = json.dumps({
  "prompt": "A woman looks into the camera, breathes in, then exclaims energetically, \"have you guys checked out Veo3 Image-to-Video on Fal? It's incredible!\"",
  "image_url": "https://storage.googleapis.com/falserverless/example_inputs/veo3-i2v-input.png",
  "aspect_ratio": "16:9",
  "duration": "8s",
  "generate_audio": true,
  "resolution": "720p"
})
headers = {
  'Authorization': 'Bearer YOUR_API_KEY',
  'Content-Type': 'application/json'
}
conn.request("POST", "/fal-ai/veo3/fast/image-to-video", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))

返回响应

响应参数 application/json
status string
可选
任务状态
request_id string
可选
请求ID
response_url string
可选
获取结果的URL
示例
{
    "status": "IN_QUEUE",
    "request_id": "1b24b3ae-16a2-4d19-b10d-1e323ebff061",
    "response_url": "https://queue.fal.run/fal-ai/veo3/requests/1b24b3ae-16a2-4d19-b10d-1e323ebff061",
    "status_url": "https://queue.fal.run/fal-ai/veo3/requests/1b24b3ae-16a2-4d19-b10d-1e323ebff061/status",
    "cancel_url": "https://queue.fal.run/fal-ai/veo3/requests/1b24b3ae-16a2-4d19-b10d-1e323ebff061/cancel",
    "logs": null,
    "metrics": {},
    "queue_position": 0
}