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

# Lấy trạng thái tác vụ video

> OpenAI Giao diện truy vấn trạng thái tác vụ video tương thích.

Trả về thông tin trạng thái chi tiết của tác vụ video.



## OpenAPI

````yaml api-reference/vi/openapi.json GET /v1/videos/{task_id}
openapi: 3.0.0
info:
  title: Tài liệu tham khảo API của 出海营
  version: 1.0.0
  description: Public AI Gateway API Reference
servers:
  - url: https://api.aiid.edu.kg
security:
  - BearerAuth: []
tags:
  - name: Định dạng OpenAI (Chat)
  - name: Định dạng OpenAI (Responses)
  - name: Định dạng Gemini cho tạo ảnh
  - name: Tạo hình ảnhOpenAI định dạng DALL-E
  - name: Lấy danh sách mô hình
  - name: Tạo video HappyHorse và Wan
  - name: Định dạngKling tạo video
  - name: Định dạng Video Generation Omni và Veo
  - name: Tạo video Seedance
  - name: Định dạng tương thích Sora cho tạo video
  - name: Tạo video Vidu
  - name: Định dạng tác vụ tạo nhạc
paths:
  /v1/videos/{task_id}:
    get:
      tags:
        - Định dạng tương thích Sora cho tạo video
      summary: Lấy trạng thái tác vụ video
      description: |-
        OpenAI Giao diện truy vấn trạng thái tác vụ video tương thích.

        Trả về thông tin trạng thái chi tiết của tác vụ video.
      operationId: getVideo
      parameters:
        - name: task_id
          in: path
          description: ID tác vụ video
          required: true
          example: sora-2-123456
          schema:
            type: string
      responses:
        '200':
          description: Lấy trạng thái tác vụ video thành công
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  object:
                    type: string
                  model:
                    type: string
                  status:
                    type: string
                  progress:
                    type: integer
                  created_at:
                    type: integer
                  seconds:
                    type: string
                  video_url:
                    type: string
                    format: uri
                    description: >-
                      Địa chỉ URL của video kết quả. Các mô hình khác nhau có
                      thể trả về `video_url` hoặc `url`, chọn một trong hai.
                  url:
                    type: string
                    format: uri
                    description: >-
                      Địa chỉ URL của video kết quả. Các mô hình khác nhau có
                      thể trả về `url` hoặc `video_url`, chọn một trong hai.
                  completed_at:
                    type: integer
                    description: Thời gian hoàn tất (giây Unix).
                  expires_at:
                    type: integer
                    description: Thời gian hết hạn của kết quả (Unix giây).
                  error:
                    type: object
                    description: Thông báo lỗi khi thất bại.
                  metadata:
                    type: object
                    description: Siêu dữ liệu bổ sung.
                required:
                  - id
                  - object
                  - model
                  - status
                  - progress
                  - created_at
                  - seconds
              example:
                id: sora-2-123456
                object: video
                model: sora-2
                status: queued
                progress: 0
                created_at: 1764347090922
                seconds: '8'
          headers: {}
        '404':
          description: Nhiệm vụ không tồn tại
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Thông báo lỗi
            type:
              type: string
              description: Loại lỗi
            param:
              type: string
              description: Các tham số liên quan
              nullable: true
            code:
              type: string
              description: Mã lỗi
              nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |-
        Sử dụng xác thực Bearer Token.
        Định dạng: `Authorization: Bearer sk-xxxxxx`

````