# "Các tác vụ truy vấn"

Nguồn: https://docs.openaihub.net/api-45209080/

> API origin: `https://api.openaihub.net`. Chọn đúng nhóm API và model. Thông số dưới đây là bản tham chiếu kỹ thuật; chưa phải kết quả kiểm thử từng endpoint bằng tài khoản của bạn.


## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /vidu-native/video/generations/{task_id}:
    get:
      summary: Các tác vụ truy vấn
      deprecated: false
      description: >-
        Với một lời nhắc, mô hình trả về một hoặc nhiều phần hoàn tất được dự
        đoán và tùy chọn xác suất của token. Tạo một phần hoàn tất cho lời nhắc
        và các tham số đã cung cấp
      operationId: get-vidu-native-video-generations-task-id
      tags:
        - >-
          OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Video/Ví dụ/Định dạng hợp nhất cho
          video
        - ví dụ
      parameters:
        - name: task_id
          in: path
          description: ID tác vụ bất đồng bộ
          required: true
          example: ''
          schema:
            type: string
        - name: Content-Type
          in: header
          description: Content-Type của phần thân yêu cầu, thường là application/json
          required: true
          example: application/json
          schema:
            type: string
        - name: Accept
          in: header
          description: Content-Type dự kiến của phản hồi
          required: true
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: Khóa API Bearer
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
        - name: X-Forwarded-Host
          in: header
          description: Host gốc được chuyển tiếp (trường hợp proxy)
          required: false
          example: localhost:5173
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties: {}
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - status
                  - status_update_time
                properties:
                  enhanced_prompt:
                    type: string
                    description: Lời nhắc nâng cao
                  id:
                    type: string
                    description: ID tài nguyên hoặc tác vụ
                  status:
                    type: string
                    description: Trạng thái
                  status_update_time:
                    type: integer
                    description: Thời điểm cập nhật trạng thái
                  video_url:
                    type: string
                    description: URL video
                    nullable: true
                x-apifox-orders:
                  - enhanced_prompt
                  - id
                  - status
                  - status_update_time
                  - video_url
                x-apidog-orders:
                  - enhanced_prompt
                  - id
                  - status
                  - status_update_time
                  - video_url
              examples:
                '1':
                  summary: '1'
                  value:
                    enhanced_prompt: >-
                      ```

                      Một bức tranh kỹ thuật số siêu thực và kỳ ảo về một cô bò
                      nâu oai vệ với đôi cánh lớn phủ đầy lông vũ, đang duyên
                      dáng bay vút qua bầu trời xanh rực rỡ. Cô bò mang vẻ mặt
                      vui sướng, chiếc đuôi tung bay phía sau khi lướt giữa
                      những đám mây trắng bồng bềnh. Bên dưới, những mảng đất
                      nông nghiệp xanh tươi trải dài đến tận chân trời, điểm
                      xuyết các công trình nông trại nhỏ bé và một nhóm nông dân
                      sửng sốt đang ngước nhìn đầy kinh ngạc. Khung cảnh ngập
                      trong ánh nắng vàng ấm áp, tạo nên bầu không khí tựa giấc
                      mơ và đầy phép màu. Phong cách nghệ thuật lấy cảm hứng từ
                      tranh minh họa kỳ ảo, với những nét cọ mềm mại và màu sắc
                      phong phú, rực rỡ.

                      ```
                    id: 033fa60e-f37c-4ff6-a44d-5585ffea938d
                    status: pending
                    status_update_time: 1750323167003
                '2':
                  summary: '2'
                  value:
                    completed_at: 1764522552
                    id: 033fa60e-f37c-4ff6-a44d-5585ffea938d
                    model: viduq2
                    progress: 100
                    prompt: Một con mèo đang chạy trên đồng cỏ.
                    status: completed
                    status_update_time: 1764522552
                    thumbnail_url: https://example.com/vidu/thumb.jpg
                    video_url: https://example.com/vidu/output.mp4
          headers: {}
          x-apidog-name: ''
        '400':
          description: Yêu cầu không hợp lệ hoặc xác thực thất bại
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - message
                      - type
                    properties:
                      message:
                        type: string
                        description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
                      type:
                        type: string
                        description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
                        examples:
                          - new_api_error
                    x-apifox-orders:
                      - message
                      - type
                    x-apidog-orders:
                      - message
                      - type
                refName: NewApiError
                x-apifox-orders:
                  - error
                x-apidog-orders:
                  - error
              examples:
                example:
                  summary: example
                  value:
                    error:
                      message: >-
                        Yêu cầu không hợp lệ (mã yêu cầu:
                        20260805120000123456789AbCdEfGh)
                      type: new_api_error
          headers: {}
          x-apidog-name: Yêu cầu không hợp lệ hoặc xác thực thất bại
        '401':
          description: Khóa API bị thiếu hoặc không hợp lệ
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - message
                      - type
                    properties:
                      message:
                        type: string
                        description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
                      type:
                        type: string
                        description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
                        examples:
                          - new_api_error
                    x-apifox-orders:
                      - message
                      - type
                    x-apidog-orders:
                      - message
                      - type
                refName: NewApiError
                x-apifox-orders:
                  - error
                x-apidog-orders:
                  - error
              examples:
                example:
                  summary: example
                  value:
                    error:
                      message: >-
                        Mã thông báo không hợp lệ (request id:
                        20260805120000123456789AbCdEfGh)
                      type: new_api_error
          headers: {}
          x-apidog-name: Khóa API bị thiếu hoặc không hợp lệ
      security: []
      x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Video/Ví dụ/Định dạng hợp nhất cho video
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45209080-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.openaihub.net
    description: Prod Env
security: []

```
