灵活的参数配置
可配置文档中列出的 6 个参数,包括 aspect_ratio, duration_seconds, first_frame_image_url, input_mode, last_frame_image_url。
curl -X POST https://runapi.ai/api/v1/veo_3_1/text_to_video \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "veo-3.1-lite",
"prompt": "生成一段 8 秒的海岸公路黄金时刻航拍,海浪拍打下方,带有环境风声音频。"
}'
import { Veo31Client } from "@runapi.ai/veo-3-1";
const client = new Veo31Client();
const result = await client.textToVideo.run({
model: "veo-3.1-lite",
prompt: "生成一段 8 秒的海岸公路黄金时刻航拍,海浪拍打下方,带有环境风声音频。",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/veo_3_1/text_to_video",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"veo-3.1-lite","prompt":"生成一段 8 秒的海岸公路黄金时刻航拍,海浪拍打下方,带有环境风声音频。"}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/veo_3_1/text_to_video");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'veo-3.1-lite',
'prompt' => '生成一段 8 秒的海岸公路黄金时刻航拍,海浪拍打下方,带有环境风声音频。',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.textToVideo().run({"model":"veo-3.1-lite","prompt":"生成一段 8 秒的海岸公路黄金时刻航拍,海浪拍打下方,带有环境风声音频。"});
task.waitForResult();
require "runapi/veo_3_1"
client = RunApi::Veo31::Client.new
result = client.text_to_video.run(
model: "veo-3.1-lite",
prompt: "生成一段 8 秒的海岸公路黄金时刻航拍,海浪拍打下方,带有环境风声音频。"
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.textToVideo.Run({"model":"veo-3.1-lite","prompt":"生成一段 8 秒的海岸公路黄金时刻航拍,海浪拍打下方,带有环境风声音频。"})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model veo-3.1-lite \
--endpoint text_to_video \
--wait
3 个版本可用
选择任意模型,几秒内开始生成。
| 提供商 | |
| 模型 ID | veo-3.1-lite |
| 模态 | 视频 |
| 任务类型 | Asynchronous |
| API 端点 | /api/v1/veo_3_1/text_to_video |
| 计费单位 | 次调用 |
| 输入参数 | aspect_ratio, duration_seconds, first_frame_image_url, input_mode, last_frame_image_url, reference_image_urls |
| 最大时长 | 4s, 6s, 8s |
| 宽高比 | 16:9, 9:16 |
| 目录状态 | 运行中 |
免费注册后,在控制台创建用于 veo-3.1-lite 的 API 密钥。
向 /api/v1/veo_3_1/text_to_video 发送 POST 请求,并传入 veo-3.1-lite 模型 ID 和参数。
轮询任务或按照回调获取已完成的 veo-3.1-lite 结果。
可配置文档中列出的 6 个参数,包括 aspect_ratio, duration_seconds, first_frame_image_url, input_mode, last_frame_image_url。
提供 1 个公开 endpoint:text_to_video。
按 次调用 计量,无需订阅。
input_mode暂无描述。 (text, first_and_last_frames, reference)
aspect_ratio暂无描述。 (16:9, 9:16)
duration_seconds暂无描述。 (4, 6, 8)
last_frame_image_url暂无描述。
reference_image_urls暂无描述。
first_frame_image_url暂无描述。
从文字简报生成产品发布短视频和广告片段,将制作周期从数周缩短到数小时。
将课程脚本批量转换为动画讲解视频,无需摄像设备和拍摄团队。
直接从提示词生成社交平台短视频内容。
传入 quickstart 中显示的模型 ID。
Key 级限流随使用层级伸缩。当前限制见定价页。
可以——变体只是参数,改 model 字段即可。
模型支持流式时,RunAPI 端到端流式。
在公共 GitHub 仓库提 issue 或邮件联系 support。
不需要。你的 RunAPI API key 足以访问此 variant 以及目录中的所有其他模型,无需底层提供方账户。