众扬汇 AI 开放平台 API 文档

查询视频任务(免费

接口:GET /sora/v1/videos/{task_id} 归属:废弃、未开放/Sora 调用地址: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:
  /sora/v1/videos/{task_id}:
    get:
      summary: 查询视频任务(免费
      description: "status 取值:NOT_START、IN_PROGRESS、FAILURE、SUCCESS。"
      tags:
        - 废弃、未开放/Sora
        - 视频生成/sora/官方格式
      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: string
          headers: {}
        '403':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  sn:
                    type: string
                required:
                  - code
                  - msg
                  - sn
          headers: {}
        x-200:成功:
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  task_responses:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        user:
                          type: string
                        created_at:
                          type: string
                        status:
                          type: string
                        progress_pct:
                          type: 'null'
                        progress_pos_in_queue:
                          type: 'null'
                        estimated_queue_wait_time:
                          type: 'null'
                        queue_status_message:
                          type: 'null'
                        type:
                          type: string
                        prompt:
                          type: string
                        actions:
                          type: 'null'
                        n_variants:
                          type: integer
                        n_frames:
                          type: integer
                        height:
                          type: integer
                        width:
                          type: integer
                        style:
                          type: string
                        seed:
                          type: 'null'
                        guidance:
                          type: 'null'
                        inpaint_items:
                          type: array
                          items:
                            type: string
                        interpolation:
                          type: 'null'
                        sdedit:
                          type: 'null'
                        model:
                          type: string
                        operation:
                          type: string
                        preset_id:
                          type: 'null'
                        paragen_config:
                          type: 'null'
                        generations:
                          type: array
                          items:
                            type: string
                        title:
                          type: string
                        moderation_result:
                          type: object
                          properties:
                            type:
                              type: string
                            results_by_frame_index:
                              type: object
                              properties: {}
                            code:
                              type: 'null'
                            is_output_rejection:
                              type: boolean
                          required:
                            - type
                            - results_by_frame_index
                            - code
                            - is_output_rejection
                        failure_reason:
                          type: 'null'
                        needs_user_review:
                          type: boolean
                  last_id:
                    type: string
                  has_more:
                    type: boolean
                required:
                  - task_responses
                  - last_id
                  - has_more
          headers: {}
      security: []
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []