注册

/fal-ai/veo3

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

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

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

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

请求参数

Header 参数
Content-Type string
必需
示例: application/json
Authorization string
必需
示例: Bearer {{YOUR_API_KEY}}
Body 参数 application/json
prompt string
必需
aspect_ratio string
可选
生成视频的宽高比。如果设置为 1:1,视频将被外绘。默认值:"16:9",范围[16:9,9:16,1:1]
duration string
可选
生成视频的时长(以秒为单位)默认值:"8s"
enhance_prompt boolean
可选
是否增强视频生成默认值:true
auto_fix boolean
可选
是否通过重写来自动尝试修复未通过内容策略或其他验证检查的提示默认值:true
resolution string
可选
生成视频的分辨率默认值:"720p" 范围值[720p,1080p]
generate_audio boolean
可选
是否为视频生成音频。如果为 false,则将减少 33% 的积分。默认值:true
示例
{
    "prompt": "A casual street interview on a busy New York City sidewalk in the afternoon. The interviewer holds a plain, unbranded microphone and asks: Have you seen Google's new Veo3 model It is a super good model. Person replies: Yeah I saw it, it's already available on fal. It's crazy good.",
    "aspect_ratio": "16:9",
    "duration": "8s",
    "enhance_prompt": true,
    "auto_fix": true,
    "resolution": "720p",
    "generate_audio": true
}

请求示例代码

curl --location --request POST 'https://api.quickrouter.ai/fal-ai/veo3' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{
    "prompt": "A casual street interview on a busy New York City sidewalk in the afternoon. The interviewer holds a plain, unbranded microphone and asks: Have you seen Google'''s new Veo3 model It is a super good model. Person replies: Yeah I saw it, it'''s already available on fal. It'''s crazy good.",
    "aspect_ratio": "16:9",
    "duration": "8s",
    "enhance_prompt": true,
    "auto_fix": true,
    "resolution": "720p",
    "generate_audio": true
}'
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer YOUR_API_KEY");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "prompt": "A casual street interview on a busy New York City sidewalk in the afternoon. The interviewer holds a plain, unbranded microphone and asks: Have you seen Google's new Veo3 model It is a super good model. Person replies: Yeah I saw it, it's already available on fal. It's crazy good.",
  "aspect_ratio": "16:9",
  "duration": "8s",
  "enhance_prompt": true,
  "auto_fix": true,
  "resolution": "720p",
  "generate_audio": true
});

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

fetch("https://api.quickrouter.ai/fal-ai/veo3", 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 casual street interview on a busy New York City sidewalk in the afternoon. The interviewer holds a plain, unbranded microphone and asks: Have you seen Google's new Veo3 model It is a super good model. Person replies: Yeah I saw it, it's already available on fal. It's crazy good.",
  "aspect_ratio": "16:9",
  "duration": "8s",
  "enhance_prompt": true,
  "auto_fix": true,
  "resolution": "720p",
  "generate_audio": true
})
headers = {
  'Authorization': 'Bearer YOUR_API_KEY',
  'Content-Type': 'application/json'
}
conn.request("POST", "/fal-ai/veo3", 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": "57b19308-8d3e-4196-b8bf-5ca80fa90827",
    "response_url": "https://queue.fal.run/fal-ai/veo3/requests/57b19308-8d3e-4196-b8bf-5ca80fa90827",
    "status_url": "https://queue.fal.run/fal-ai/veo3/requests/57b19308-8d3e-4196-b8bf-5ca80fa90827/status",
    "cancel_url": "https://queue.fal.run/fal-ai/veo3/requests/57b19308-8d3e-4196-b8bf-5ca80fa90827/cancel",
    "logs": null,
    "metrics": {},
    "queue_position": 0
}