# "Lấy kết quả yêu cầu"

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

> 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:
  /fal-ai/{model_name}/requests/{request_id}:
    get:
      summary: Lấy kết quả yêu cầu
      deprecated: false
      description: >-
        Truy vấn kết quả tác vụ bất đồng bộ của Fal.ai; trả về đầu ra là hình
        ảnh hoặc video.
      operationId: fal_ai_fal_ai_requests
      tags:
        - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai
        - Fal.ai
      parameters:
        - name: model_name
          in: path
          description: >-
            Tên mô hình, tự động Hệ thống của chúng tôi sẽ tự động xác định
            model_name
          required: true
          example: tự động
          schema:
            type: string
        - name: request_id
          in: path
          description: mã tác vụ
          required: true
          example: 5ed6b6bb-eaa3-4006-859b-e2f3fa748d8c
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                x-apidog-orders: []
              examples:
                example:
                  summary: example
                  value:
                    has_nsfw_concepts:
                      - false
                    images:
                      - content_type: image/jpeg
                        height: 1024
                        url: >-
                          https://fal.media/files/tiger/BwdOcvXOx0UmkCyCMZGmZ_1ee10db761e146a28fdaadafa528d239.jpg
                        width: 1024
                    prompt: >-
                      Đặt chú vịt con nhỏ lên phía trên áo thun của người phụ
                      nữ.
                    request:
                      guidance_scale: 3.5
                      image_urls:
                        - >-
                          https://v3.fal.media/files/penguin/XoW0qavfF-ahg-jX4BMyL_image.webp
                        - >-
                          Vui lòng tải hình ảnh lên trực tiếp để tôi có thể đọc
                          và dịch nội dung.
                      num_images: 1
                      output_format: jpeg
                      prompt: >-
                        Đặt chú vịt con nhỏ lên phía trên áo thun của người phụ
                        nữ.
                      safety_tolerance: '2'
                    seed: 2841475369
                    timings: {}
          headers: {}
          x-apidog-name: ''
        '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/Fal.ai
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208899-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.openaihub.net
    description: Prod Env
security: []

```
