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

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

> 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:
  /replicate/v1/predictions/{id}:
    get:
      summary: Các tác vụ truy vấn
      deprecated: false
      description: Truy vấn trạng thái và kết quả tác vụ dựa trên ID dự đoán.
      operationId: replicate_replicate_v1_predictions_2
      tags:
        - >-
          OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/FLUX/Vui lòng cung cấp nội
          dung tài liệu kỹ thuật cần dịch.
        - Tái tạo
      parameters:
        - name: id
          in: path
          description: ID tài nguyên / tác vụ trong đường dẫn
          required: true
          example: ''
          schema:
            type: string
      responses:
        '200':
          description: thành công
          content:
            application/json:
              schema:
                type: object
                x-apidog-orders: []
              examples:
                example:
                  summary: example
                  value:
                    request_id: req_example
                    status: OK
          headers: {}
          x-apidog-name: thành công
        '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/Hình ảnh/FLUX/Vui lòng cung cấp nội dung
        tài liệu kỹ thuật cần dịch.
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208893-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.openaihub.net
    description: Prod Env
security: []

```
