跳转到正文
使用文档

搜索文档

搜索只在此浏览器中进行,关键词不发送、不保存。请勿粘贴凭据。

正在加载公开搜索索引…

Tab 或方向键选择 · Enter 打开 · Esc 关闭
浏览文档目录

共享字段与数据结构

从后端源码生成共享字段、嵌套类型、默认值、必填项与约束,避免在文档中维护第二份参数定义。

公开测试最后核实
本页目录

“—”表示没有声明默认值,不等于 null。字段在 JSON Schema 中可选,仍可能受工作流的条件必填限制。模型专属选项仍需查询实时能力。

AnimationCreateRequest

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
export ExportOptions {"frame_count":24,"output_formats":["spritesheet"],"output_height":512,"output_width":512,"transparent":{"enabled":false},"unity":{"pivot":"bottom_center","pixels_per_unit":100}} 视频生成后执行导出;带 Alpha 的格式要求 alpha_key 来源,适配格式会自动启用其透明处理。
input GenerationInput 调用方所属或本次提供的生成图片。
metadata object {} 调用方元数据,仅字符串、数字、布尔或 null;JSON 不超过 4 KiB,不存凭据。
negative_prompt string "" maxLength: 4000 可选负向提示词,仅适用于支持的模型。
prompt string "" maxLength: 8000 动作提示词;模型要求时不能为空,私有提示词不得写入日志。
selection Selection {"duration_seconds":null,"mode":"full","start_seconds":0} 生成后选取的区间,默认完整视频。
video VideoOptions {"duration_seconds":null,"input_canvas":null,"model":null,"ratio":null,"resolution":null,"seed":null,"style_preset":null,"transparency":{"key_color":null,"key_selection":"auto","mode":"standard"},"watermark":null} 符合模型能力的生成设置。

AssetResponse

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
byte_size integer 文件预期字节数。
created_at string format: date-time UTC 创建时间。
download_expires_at string format: date-time 签名 URL 的 UTC 过期时间;过期后重新查询资产。
download_url string 敏感短期签名 URL;下载及跳转时均不携带 Bearer 头,不记录此 URL。
format string 实际资产格式,不要依赖 outputs 固定顺序。
id string format: uuid 稳定公共资产 ID,用于刷新下载信息。
mime_type string 资产媒体类型。
object string "asset" const: "asset"

Base64ImageInput

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
data string minLength: 4 纯 Base64,不含 data URL 前缀;解码后单张 10 MiB、合计 20 MiB。
media_type string enum: "image/png", "image/jpeg", "image/webp" 图片实际 MIME 类型。
type string const: "base64"

CreditUsage

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
charged integer 最终净扣费积分。供应商明确审核拒绝会退分,取消本身不代表退款。
held integer 当前预占积分,不应与 charged 相加当作扣费。
quoted integer 报价总额,不一定等于最终扣费。
refunded integer 0 扣费后退回的积分,已从 charged 中扣除,不是现金退款。
released integer 0 尚未确认扣费即释放的积分。
status string / null null 积分状态:held、charged、released、refunded,内部子任务可为 managed。

ExportOptions

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
frame_count integer 24 minimum: 1; maximum: 240 在选段内采样的帧数,不是 FPS 参数。
output_formats array<string> ["spritesheet"] minItems: 1; 元素:enum: "clip_video", "webm_alpha", "prores_4444", "frames_zip", "spritesheet", "spritesheet_json", "unity_meta", "unity_pack", "godot_pack", "unreal_paper2d_pack", "cocos_creator_pack" 请求的资产格式;默认 spritesheet,重复项会去重,元数据需配套纹理。
output_height integer 512 minimum: 64; maximum: 1024 输出帧高度,单位像素。
output_width integer 512 minimum: 64; maximum: 1024 输出帧宽度,单位像素。
transparent ExportTransparency {"enabled":false} 使用 enabled 对象形式;兼容布尔值输入并规范化为此对象。
unity UnityOptions {"pivot":"bottom_center","pixels_per_unit":100} Unity 专用元数据和资源包设置。

ExportTransparency

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
enabled boolean false 为兼容输出启用透明处理;要求 alpha_key 来源,不会让 MP4 透明。

FileImageInput

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
file_id string format: uuid POST /files 或 complete_image_upload 返回的所属公共文件 ID,不是 Studio uploadId。
type string const: "file"

GenerationInput

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
first_frame FileImageInput / Base64ImageInput / UrlImageInput discriminator: type 必需首帧,用 type 选择图片传入方式。
last_frame FileImageInput / Base64ImageInput / UrlImageInput / null null discriminator: type 可选尾帧,所选模型必须支持首尾帧模式。
reference_images array<FileImageInput / Base64ImageInput / UrlImageInput> [] maxItems: 8; 元素:discriminator: type 额外参考图,不含首帧;实时模型可能有更低上限。

GenerationTransparency

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
key_color string / null null 手动选择时使用的临时键色;通常保留自动选择。
key_selection string "auto" enum: "auto", "manual" 临时键色的选择方式。
mode string "standard" enum: "standard", "alpha_key" standard 保留场景;alpha_key 要求所有参与图片有有效 Alpha,原始视频仍不透明。

InputCanvasOptions

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
aspect_ratio string "follow_output" enum: "follow_output", "source" 跟随输出比例或保持原图比例。
background string "auto" enum: "auto", "transparent", "solid" 画布扩展区域的背景策略。
background_color string / null null pattern: ^#[0-9A-Fa-f]{6}$ 纯色扩展区域的六位 RGB 颜色。
enabled boolean true 是否准备扩展输入画布。
position_x number 0.5 minimum: 0; maximum: 1 归一化水平位置。
position_y number 0.5 minimum: 0; maximum: 1 归一化垂直位置。
source_scale number 0.8 minimum: 0.5; maximum: 1 原图主体在画布中的缩放比例。

McpQuoteOutput

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
breakdown object 公开费用组成。
credits integer 报价积分,生成前需向用户展示。
expires_at string format: date-time 报价过期时间;过期或变价时重新报价并确认。
quote_id string format: uuid 属于当前用户和 OAuth 客户端的短期报价,可绑定一次逻辑生成键。

McpUploadCompleteOutput

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
byte_size integer 校验后的图片字节数。
file_id string format: uuid 用于 request.input.first_frame 的可复用所属公共文件 ID。
mime_type string 校验后的图片 MIME 类型。
sha256 string 上传图片字节的 SHA-256。

McpUploadPrepareOutput

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
expires_at string format: date-time 上传 URL 过期时间。
headers object 实际传输请求头,不额外添加 MCP Token 或 API Bearer 凭据。
max_bytes integer 允许上传的最大字节数。
method string "PUT" const: "PUT" 客户端传输字节时必须使用的 HTTP 方法。
upload_id string format: uuid 传给 complete_image_upload 的上传会话 ID,不是最终 file_id。
upload_url string 敏感短期上传 URL,需传输实际字节,不公开此地址。

ModelCapabilities

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
aspect_ratio_mode string 供应商对画幅比例的处理模式。
default_duration_seconds integer 默认生成时长,秒。
default_ratio string / null 默认比例,不适用时为 null。
default_resolution string / null 默认分辨率,不适用时为 null。
durations array<integer> 支持的生成秒数,同时检查分辨率专属限制。
durations_by_resolution object {} 各分辨率支持的时长秒数。
id string 请求使用的 provider:model 标识,以实时目录为准。
label string 人类可读模型名称。
max_reference_images integer 模型参考图容量;参考图模式中首帧占第一个参考图槽位。
model string 供应商内的模型标识。
modes array<string> 支持的输入模式,如 first_frame、first_last_frame、reference_images。
provider string 公开供应商标识。
ratios array<string> 支持的比例;存在 ratios_by_mode 时同时检查。
ratios_by_mode object {} 各输入模式支持的比例。
reference_image_duration_seconds integer / null 参考图模式有固定限制时要求的秒数。
requires_prompt boolean 是否要求提示词非空。
resolutions array<string> 支持的分辨率选项。
returns_last_frame boolean 模型是否可返回末帧资产。
supports_first_frame boolean 是否支持首帧输入。
supports_last_frame boolean 是否支持尾帧输入。
supports_negative_prompt boolean 是否支持负向提示词。
supports_reference_images boolean 是否支持参考图模式。
supports_seed boolean 是否支持 seed。
supports_watermark boolean 是否支持水印设置。

ModelsResponse

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
data array<ModelCapabilities> 当前启用的模型,客户端不要写死此清单。
object string "list" const: "list"

Selection

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
duration_seconds number / null null exclusiveMinimum: 0 mode=range 时必填,选段时长秒数必须为正。
mode string "full" enum: "full", "range" full 使用完整来源;range 必须提供 duration_seconds。
start_seconds number 0 minimum: 0 相对源视频起点的选段开始秒数。

TaskError

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
code string 供程序识别的任务错误码。
message string 人类可读说明,不应作为稳定分支条件。
retryable boolean false 重试是否可能有帮助;新建付费任务前先检查部分产物。

TaskResponse

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
created_at string format: date-time 任务被接受的 UTC 时间。
credits CreditUsage 报价、预占及已扣积分状态。
error TaskError / null null 任务失败信息,与是否存在可用产物分别判断。
finished_at string / null null format: date-time 已知时返回 UTC 终态时间。
id string format: uuid 创建后立即保存任务 ID,通过它轮询,不要再次创建。
metadata object {} 调用方提供的元数据。
normalized_input object {} 规范化公共输入,可能含私有提示词或图片引用,不要整体写入日志。
object string enum: "video_generation", "animation_export", "animation" 公共任务资源类型。
outputs array<AssetResponse> [] 可用资产,失败或取消也可能有部分产物;所有终态都应检查。
progress number minimum: 0; maximum: 1 0 至 1 的进度值,不代表精确完成时间。
stage string / null null enum: "queued", "video_generation", "animation_export", "completed" 可用时显示当前流水线阶段。
started_at string / null null format: date-time 已知时返回 UTC 生产开始时间。
status string enum: "queued", "running", "cancelling", "succeeded", "failed", "cancelled" succeeded、failed、cancelled 为终态;cancelling 不是终态。

UnityOptions

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
pivot string "bottom_center" const: "bottom_center" 支持的 Unity 精灵锚点。
pixels_per_unit integer 100 minimum: 1; maximum: 1000 Unity 每世界单位对应的纹理像素数。

UrlImageInput

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
type string const: "url"
url string minLength: 9; maxLength: 2048 公开 HTTPS 图片,443 端口,不带凭据或 fragment;禁止私网和不安全跳转,重试期间保持图片字节稳定。

VideoOptions

禁止未声明的字段。

字段 类型 必填 默认值 约束 含义
duration_seconds number / null null exclusiveMinimum: 0 秒数,需符合模型与分辨率支持范围;省略时使用模型默认值。
input_canvas InputCanvasOptions / null null 可选输入画布设置;省略时保持来源构图。
model string / null null GET /models 返回的 provider:model ID;省略时使用配置的默认模型。
ratio string / null null 当前模型与输入模式支持的画幅比例。
resolution string / null null 实时模型目录中的分辨率值。
seed integer / null null minimum: 0; maximum: 2147483647 仅适用于声明支持 seed 的模型,不保证所有输出确定性。
style_preset string / null null 所选供应商或模型支持的可选风格预设。
transparency GenerationTransparency {"key_color":null,"key_selection":"auto","mode":"standard"} 来源透明流程;透明导出要求 alpha_key。
watermark boolean / null null 可选水印设置,需检查模型能力。

这篇文档有帮助吗?

不收集搜索词、代码或自由文本。此开关只控制文档交互事件;站点通用分析仍遵循隐私政策。 隐私政策

需要帮助?联系支持