注册

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

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

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

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

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

请求参数

Header 参数
Authorization string
必需
示例: Bearer {{YOUR_API_KEY}}
Body 参数 application/json
prompt string
必需
提示词
image_url string
必需
参考图片URL
aspect_ratio string
可选
尺寸,枚举值:16:9、9:16、auto,默认值:"auto"
duration string
可选
视频时长,默认值:"8s"
generate_audio boolean
可选
生成音频,默认值:true
resolution string
可选
分辨率,枚举值:"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": "auto",
    "duration": "8s",
    "generate_audio": true,
    "resolution": "720p"
}

请求示例代码

curl --location --request POST 'https://api.quickrouter.ai/fal-ai/veo3/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": "auto",
    "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": "auto",
  "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/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": "auto",
  "duration": "8s",
  "generate_audio": true,
  "resolution": "720p"
})
headers = {
  'Authorization': 'Bearer YOUR_API_KEY',
  'Content-Type': 'application/json'
}
conn.request("POST", "/fal-ai/veo3/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_url string
必需
状态查询URL
cancel_url string
必需
取消任务URL
logs null
必需
日志
metrics object
必需
指标数据
queue_position integer
必需
队列位置
示例
{
    "status": "IN_QUEUE",
    "request_id": "bcd3b436-b7af-42f3-8649-204657bfaf10",
    "response_url": "https://queue.fal.run/fal-ai/veo3/requests/bcd3b436-b7af-42f3-8649-204657bfaf10",
    "status_url": "https://queue.fal.run/fal-ai/veo3/requests/bcd3b436-b7af-42f3-8649-204657bfaf10/status",
    "cancel_url": "https://queue.fal.run/fal-ai/veo3/requests/bcd3b436-b7af-42f3-8649-204657bfaf10/cancel",
    "logs": null,
    "metrics": {},
    "queue_position": 0
}