搜索 VisionStory 开发者文档

没有找到匹配的文档“”。

可以尝试功能或资源名称,例如

VisionStory开发者

列出 AI 视频模型

GET/api/v1/ai_video/models
AI 视频

列出可用的 AI 视频模型,包括每个参数的可选值与默认值,以及 first_frame 和多模态 refs 的媒体限制。不包含价格;请调用 GET /api/v1/ai_video/cost 获取准确的费用估算。

Beta:所有有效付费订阅账户均可使用,适用标准的单 API Key 请求频率限制。

请求头

X-API-Keystring必填

你的 VisionStory API Key(sk-vs-...),请仅保存在服务端。可在 API Key 管理 中创建或管理,需要 Pro 或更高方案。

响应

200请求成功

application/json

dataGetAiVideoModelsResponse | null必填可为空

当前接口的响应数据,字段定义见该接口的响应结构。仅当操作不返回数据时为 null。

modelsAiVideoModelDto[]必填

机器可读的模型能力,包括各参数的可选值与默认值,以及媒体限制。不包含价格,请调用 GET /api/v1/ai_video/cost。

capabilitiesstring[]必填

支持的生成模式,例如 text_to_video 和 image_to_video。

descriptionstring必填

模型的公开简介。

model_idstring必填

AI 视频请求使用的公开模型 ID。

paramsAiVideoModelParams必填
aspect_ratioStringChoices必填
defaultstring | null必填可为空

请求省略此参数时使用的值。

valuesstring[]必填

此模型当前接受的值。

duration_secDurationChoices必填
defaultinteger | null必填可为空

省略参数时使用的视频时长。

valuesinteger[]必填

接受的视频时长整数值,单位为秒。

first_frameMediaConstraints | null必填可为空

首帧图像限制;不支持图生视频时为 null。

aspect_ratio_range[number | integer | null, number | integer | null] | null可为空

宽高比的最小值与最大值。

dimension_px[integer | null, integer | null] | null可为空

每条边的最小与最大像素长度。

duration_sec_range[number | integer | null, number | integer | null] | null可为空

单个参考素材的最短和最长时长,单位为秒。

formatsstring[] | null可为空

此媒体输入接受的文件扩展名。

fps_range[number | integer | null, number | integer | null] | null可为空

最低与最高帧率;上限为 null 时表示没有上限。

max_mbinteger | null可为空

媒体文件的最大大小,单位为 MiB,已包含网关限制。

generate_audioAudioCapability必填
defaultboolean必填

省略参数时是否生成原生音轨;不影响价格。

promptPromptCapability必填
max_lengthinteger | null必填可为空

提示词的最大字符数;未指定时为 null。

supports_ref_syntaxboolean | null可为空

支持在提示词中使用参考素材引用语法时返回。

refsVideoReferences必填
acceptstring[]必填

接受的媒体类型:image、video 或 audio。

audioMediaConstraints必填
aspect_ratio_range[number | integer | null, number | integer | null] | null可为空

宽高比的最小值与最大值。

dimension_px[integer | null, integer | null] | null可为空

每条边的最小与最大像素长度。

duration_sec_range[number | integer | null, number | integer | null] | null可为空

单个参考素材的最短和最长时长,单位为秒。

formatsstring[] | null可为空

此媒体输入接受的文件扩展名。

fps_range[number | integer | null, number | integer | null] | null可为空

最低与最高帧率;上限为 null 时表示没有上限。

max_mbinteger | null可为空

媒体文件的最大大小,单位为 MiB,已包含网关限制。

imageMediaConstraints必填
aspect_ratio_range[number | integer | null, number | integer | null] | null可为空

宽高比的最小值与最大值。

dimension_px[integer | null, integer | null] | null可为空

每条边的最小与最大像素长度。

duration_sec_range[number | integer | null, number | integer | null] | null可为空

单个参考素材的最短和最长时长,单位为秒。

formatsstring[] | null可为空

此媒体输入接受的文件扩展名。

fps_range[number | integer | null, number | integer | null] | null可为空

最低与最高帧率;上限为 null 时表示没有上限。

max_mbinteger | null可为空

媒体文件的最大大小,单位为 MiB,已包含网关限制。

maxinteger必填

所有媒体类型的参考素材总数上限;为 0 表示不支持参考素材。

max_per_kindReferenceKindLimits | null可为空

除总数上限 max 外,可选的各媒体类型数量限制。

audiointeger | null可为空

指定时表示音频参考素材的数量上限。

imageinteger | null可为空

指定时表示参考图像的数量上限。

videointeger | null可为空

指定时表示视频参考素材的数量上限。

total_duration_sec_maxReferenceDurationLimits | null可为空

可选的按媒体类型划分的总时长限制。

audionumber | integer | null可为空

所有音频参考素材的总时长上限,单位为秒。

videonumber | integer | null可为空

所有视频参考素材的总时长上限,单位为秒。

videoMediaConstraints必填
aspect_ratio_range[number | integer | null, number | integer | null] | null可为空

宽高比的最小值与最大值。

dimension_px[integer | null, integer | null] | null可为空

每条边的最小与最大像素长度。

duration_sec_range[number | integer | null, number | integer | null] | null可为空

单个参考素材的最短和最长时长,单位为秒。

formatsstring[] | null可为空

此媒体输入接受的文件扩展名。

fps_range[number | integer | null, number | integer | null] | null可为空

最低与最高帧率;上限为 null 时表示没有上限。

max_mbinteger | null可为空

媒体文件的最大大小,单位为 MiB,已包含网关限制。

resolutionStringChoices必填
defaultstring | null必填可为空

请求省略此参数时使用的值。

valuesstring[]必填

此模型当前接受的值。

messagestring

便于阅读的状态消息;调用成功时为 "success"

默认值: success

server_timestring · date-time必填

服务端生成响应时的时间戳,使用 ISO 8601 格式(UTC)。

default错误响应。所有失败均使用统一结构:error 对象包含数字错误码 code、便于阅读的 message、可选的 details 字符串,以及提供后续处理建议的可选 hint(便于 AI Agent 使用)。

application/json

errorErrorDetail必填
codeinteger必填

机器可读的错误码。传输层失败时对应 HTTP 状态码(例如 401、404、422、500),其他情况可能使用业务专用错误码。

detailsstring | null可为空

可选的结构化错误详情,例如 422 响应中逐字段校验错误的 JSON 字符串。无补充信息时不返回。

hintstring | null可为空

供用户和 AI Agent 参考的错误处理建议,例如如何修正请求或在哪里获取 API Key。可能不返回此字段。

messagestring必填

便于阅读的错误原因说明,可安全记录到日志或展示给最终用户;此返回值未本地化。