跳转到主要内容
GET
/
kyyReactApiServer
/
v1
/
result
/
{id}
curl --request GET \
  --url https://zcbservice.aizfw.cn/kyyReactApiServer/v1/result/proj_1234567890 \
  --header 'Authorization: Bearer {{key}}'
{
  "id": "proj_1234567890",
  "object": "video",
  "created": 1761635478,
  "model": "videos",
  "status": "processing",
  "video_url": null,
  "error": null
}

Documentation Index

Fetch the complete documentation index at: https://docs.globalaiopc.com/llms.txt

Use this file to discover all available pages before exploring further.

Videos 查询视频任务

使用任务 ID 查询 Videos 视频生成任务的状态和结果。

认证

所有请求都需要在请求头中包含 Bearer token:
Authorization: Bearer {{key}}

路径参数

id
string
必填
视频生成任务的唯一标识符,从创建任务接口返回。
创建接口返回字段名为 projectId,查询时请将该值作为这里的 id 使用。

响应参数

id
string
视频生成任务的唯一标识符。
object
string
对象类型,固定为 video
created
integer
任务创建时间戳。
model
string
使用的模型名称。
status
string
任务状态:
  • queued - 排队中
  • processing - 处理中
  • completed - 已完成
  • failed - 失败
video_url
string
生成的视频 URL,当状态为 completed 时返回。
actualDuration
number
视频实际输出时长(秒),当状态为 completed 时返回。
error
string
错误信息,当状态为 failed 时返回。

状态流程

1

queued

任务已创建并进入队列,等待处理。
2

processing

任务处理中,Videos 模型正在生成视频。
3

completed

任务完成,可通过 video_url 获取结果。

轮询建议

轮询策略:
  • 建议轮询间隔:30-60 秒
  • 一般在数分钟内可完成,复杂素材参考场景可能更久
  • 不要过于频繁轮询,避免触发限流
  • 当状态为 completedfailed 时停止轮询

结果说明

重要提示:
  • 生成结果通常为临时下载地址,请及时保存
  • 若使用较多参考素材,处理时间通常会更长
  • 若提示词或参考素材不符合平台要求,任务可能直接失败
curl --request GET \
  --url https://zcbservice.aizfw.cn/kyyReactApiServer/v1/result/proj_1234567890 \
  --header 'Authorization: Bearer {{key}}'
{
  "id": "proj_1234567890",
  "object": "video",
  "created": 1761635478,
  "model": "videos",
  "status": "processing",
  "video_url": null,
  "error": null
}