> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 列出视频

> 列出已认证团队的异步视频生成任务。

需要工作区的预览功能访问权限。有关设置、Webhook 和结果处理，请参阅[视频与批处理任务](../../guides/async-video-and-batch.mdx)。


## OpenAPI

````yaml zh-Hans/openapi/v1/openapi.localized.yaml GET /videos
openapi: 3.0.3
info:
  title: Phaseo Gateway API
  description: 通过兼容 OpenAI 的端点访问各种 AI 模型的网关 API。
  version: 1.0.0
  contact:
    name: Phaseo
    url: https://phaseo.app
    email: danielbutler500@gmail.com
servers:
  - url: https://api.phaseo.app/v1
    description: 全球路由
security:
  - BearerAuth: []
tags:
  - name: Gateway
    description: Core Phaseo Gateway operations.
paths:
  /videos:
    get:
      tags:
        - Gateway
      summary: 列出视频
      description: 列出已认证团队的异步视频生成任务。
      operationId: listVideos
      parameters:
        - name: limit
          in: query
          description: 返回的视频任务最大数量。默认值为50，上限为200。
          schema:
            type: integer
            minimum: 1
            maximum: 200
        - name: status
          in: query
          description: 视频生命周期状态筛选器。可重复该参数或提供逗号分隔的值。
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
        - name: offset
          in: query
          description: 返回该页前要跳过的视频任务数量。
          schema:
            type: integer
            minimum: 0
            maximum: 10000
        - name: after
          in: query
          description: 按所选顺序返回此视频ID之后的视频任务。
          schema:
            type: string
        - name: order
          in: query
          description: 按创建时间排序视频任务。
          schema:
            type: string
            enum:
              - asc
              - desc
      responses:
        '200':
          description: 视频列表响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoListResponse'
components:
  schemas:
    VideoListResponse:
      type: object
      properties:
        object:
          type: string
          example: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/VideoGenerationResponse'
        first_id:
          type: string
          nullable: true
        last_id:
          type: string
          nullable: true
        has_more:
          type: boolean
    VideoGenerationResponse:
      type: object
      properties:
        id:
          type: string
        polling_url:
          type: string
        websocket_url:
          type: string
          format: uri
          description: 用于订阅标准化异步任务生命周期更新的WebSocket URL。
        model:
          type: string
        request_id:
          type: string
        session_id:
          type: string
        status:
          type: string
          enum:
            - queued
            - processing
            - completed
            - failed
            - cancelled
            - expired
        lifecycle_status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
            - cancelled
            - expired
          description: 供轮询、WebSocket和Webhook使用方使用的标准化异步生命周期状态。
        cancel_url:
          type: string
          format: uri
          nullable: true
          description: 为兼容性保留；目前始终为null。
        output_access:
          type: string
          enum:
            - bytes
            - signed_url
            - both
        generation_id:
          type: string
          nullable: true
        native_video_id:
          type: string
          nullable: true
          description: 与网关自有ID不同时的提供商原生视频／任务ID。
        created_at:
          oneOf:
            - type: integer
            - type: string
        started_at:
          nullable: true
          oneOf:
            - type: integer
            - type: string
        completed_at:
          nullable: true
          oneOf:
            - type: integer
            - type: string
        object:
          type: string
          example: video
        poll_after_seconds:
          type: integer
          example: 20
        provider:
          type: string
        seconds:
          type: number
        size:
          type: string
        audio:
          type: boolean
        content_url:
          type: string
          description: 当output_access包含bytes时存在（需认证的端点）。
        download_url:
          type: string
          nullable: true
          description: 状态为completed时用于直接下载的第一方签名URL。
        expires_at:
          type: integer
          nullable: true
          description: 签名download_url过期的Unix时间戳（秒）。
        progress:
          type: integer
          nullable: true
        progress_source:
          type: string
        asset:
          type: object
          nullable: true
          properties:
            id:
              type: string
            mime_type:
              type: string
            bytes:
              type: integer
            sha256:
              type: string
            width:
              type: integer
            height:
              type: integer
            duration_seconds:
              type: number
        outputs:
          type: array
          items:
            $ref: '#/components/schemas/VideoOutput'
        billing:
          $ref: '#/components/schemas/VideoBillingSummary'
        webhook:
          $ref: '#/components/schemas/AsyncWebhookPublicState'
        next_webhook_retry_at:
          type: string
          nullable: true
          description: 下一次计划用户Webhook重试的ISO时间戳（如已排队）。
        last_webhook_progress:
          type: number
          nullable: true
          description: 最近向Webhook使用方发送的粗略进度区间。
        last_webhook_progress_at:
          type: string
          nullable: true
          description: 最近一次Webhook进度区间发送的ISO时间戳。
        last_webhook_dispatched_at:
          type: string
          nullable: true
          description: 最近一次Webhook发送尝试的ISO时间戳。
        usage:
          type: object
          properties:
            cost:
              type: number
            is_byok:
              type: boolean
          additionalProperties: true
        error:
          nullable: true
    VideoOutput:
      type: object
      properties:
        index:
          type: integer
        mime_type:
          type: string
        bytes_available:
          type: boolean
        content_url:
          type: string
          description: 当output_access包含bytes时存在。
        download_url:
          type: string
          description: 此输出的第一方签名URL。
        expires_at:
          type: integer
          description: 此输出URL过期的Unix时间戳（秒）。
    VideoBillingSummary:
      type: object
      properties:
        currency:
          type: string
        estimated_provider_cost:
          type: string
          nullable: true
        estimated_user_cost:
          type: string
          nullable: true
        settled_provider_cost:
          type: string
          nullable: true
        settled_user_cost:
          type: string
          nullable: true
        state:
          type: string
          enum:
            - pending
            - estimated
            - settled
            - void
        billable:
          type: boolean
        total_nanos:
          type: integer
          nullable: true
        estimated_nanos:
          type: integer
          nullable: true
        reserved_nanos:
          type: integer
          nullable: true
        reservation_id:
          type: string
          nullable: true
        reservation_status:
          type: string
          nullable: true
        charge_reason:
          type: string
          nullable: true
        charged:
          type: boolean
          nullable: true
        billed_at:
          type: string
      additionalProperties: true
    AsyncWebhookPublicState:
      type: object
      description: >-
        已清理的异步Webhook配置及投递状态。绝不返回密钥；`has_secret`表示是否启用签名投递。签名投递包含x-phaseo-signature、x-phaseo-timestamp、x-phaseo-event-id、x-phaseo-event-type、x-phaseo-delivery-key、x-phaseo-attempt和x-phaseo-max-attempts请求头。
      properties:
        url:
          type: string
          format: uri
          nullable: true
        events:
          type: array
          items:
            type: string
        has_secret:
          type: boolean
        delivery:
          $ref: '#/components/schemas/AsyncWebhookDeliverySummary'
        attempts:
          type: array
          items:
            $ref: '#/components/schemas/AsyncWebhookDeliveryAttempt'
    AsyncWebhookDeliverySummary:
      type: object
      description: 网关管理的异步Webhook公开投递摘要。用于区分任务执行状态和Webhook投递健康状况。
      properties:
        total_attempts:
          type: integer
          description: 此任务记录的投递尝试总次数。
        delivered_events:
          type: integer
          description: 达到已投递状态的投递键数量。
        delivered_event_types:
          type: array
          description: 至少成功投递一次的投递键。
          items:
            type: string
          example:
            - video.completed
        pending_retries:
          type: integer
          description: 当前安排重试的投递键数量。
        next_retry_at:
          type: string
          nullable: true
          description: 下一次计划重试的ISO时间戳（如有）。
        last_attempt_at:
          type: string
          nullable: true
          description: 最近一次投递尝试的ISO时间戳。
        last_attempt_status:
          type: string
          nullable: true
          enum:
            - delivered
            - scheduled_retry
            - failed_permanently
          description: 最近一次投递尝试的结果。
        last_response_status:
          type: integer
          nullable: true
          description: Webhook目标返回的HTTP状态（如可用）。
        last_delivered_at:
          type: string
          nullable: true
          description: 最近一次成功投递的ISO时间戳。
        last_failure_at:
          type: string
          nullable: true
          description: 最近一次失败或正在重试的尝试的ISO时间戳。
        last_error_message:
          type: string
          nullable: true
          description: 最近一次投递错误消息（如可用）。
    AsyncWebhookDeliveryAttempt:
      type: object
      description: 最近一次网关管理的异步Webhook投递尝试。
      properties:
        id:
          type: string
          description: 用于审计和调试的稳定尝试标识符。
        delivery_key:
          type: string
          description: 此事件投递的幂等键。
          example: video.completed
        event_type:
          type: string
          description: 投递到Webhook目标的事件类型。
          example: video.completed
        status:
          type: string
          enum:
            - delivered
            - scheduled_retry
            - failed_permanently
        attempt_number:
          type: integer
          description: 此投递键从1开始的尝试编号。
        max_attempts:
          type: integer
          description: 将投递标记为永久失败之前的最大尝试次数。
        tried_at:
          type: string
          description: 进行此次尝试的ISO时间戳。
        delivered_at:
          type: string
          nullable: true
          description: 此次尝试成功投递的ISO时间戳。
        next_retry_at:
          type: string
          nullable: true
          description: 此次尝试后下一次重试的ISO时间戳（如已安排）。
        response_status:
          type: integer
          nullable: true
          description: Webhook目标返回的HTTP状态（如可用）。
        error_message:
          type: string
          nullable: true
          description: 投递错误消息（如可用）。
        response_body_preview:
          type: string
          nullable: true
          description: Webhook目标响应正文的已脱敏预览。
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer 令牌身份验证

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.