查询任务
接口:GET /v2/videos/generations/{task_id} 归属:视频模型/sdols/统一格式 调用地址:Base URL https://api.allyang.cn(OpenAI 兼容前缀 https://api.allyang.cn/v1)+ 上述路径 鉴权:请求头 Authorization: Bearer <你的令牌>;令牌在控制台「令牌管理」创建 说明:下方为本接口契约。路径、字段名与枚举取值与线上接口一致;叙述文字已按本平台口径重写。价格、并发与限流等数值以控制台及实际返回为准,未确认处标注「待补」。
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v2/videos/generations/{task_id}:
get:
summary: 查询任务
description: "统一接口格式。status 枚举:NOT_START 未开始、IN_PROGRESS 正在执行、SUCCESS 执行完成、FAILURE 失败。"
tags:
- 视频模型/sdols/统一格式
parameters:
- name: task_id
in: path
description: ''
required: true
schema:
type: string
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
default: Bearer {{YOUR_API_KEY}}
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
example:
task_id: cgt-20250831141439-sqmgf
platform: bytedance
action: seedance-video
status: SUCCESS
fail_reason: ''
submit_time: 1756620886
start_time: 1756620932
finish_time: 1756621169
progress: 100%
data:
output: >-
https://api.allyang.cn/<外部地址已按合规要求移除>
duration: '5'
framespersecond: '24'
last_frame_url: ''
ratio: '16:9'
resolution: 480p
seed: '55335'
usage:
completion_tokens: 49005
total_tokens: 49005
search_item: ''
headers: {}
security: []
components:
schemas: {}
securitySchemes: {}
servers: []
security: []