# "/fal-ai/flux-lora"

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

> 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/flux-lora:
    post:
      summary: /fal-ai/flux-lora
      deprecated: false
      description: 'Tài liệu chính thức: https://fal.ai/models/fal-ai/flux-lora'
      operationId: post-fal-ai-flux-lora
      tags:
        - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai
        - fal-ai
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - prompt
              properties:
                enable_safety_checker:
                  type: boolean
                  description: 'Bật trình kiểm tra an toàn. Mặc định: true'
                guidance_scale:
                  type: number
                  description: 'Phạm vi: 0–35'
                image_size:
                  type: string
                  description: >-
                    Kiểu liệt kê kích thước hình ảnh: square、square
                    pro、landscape_4_3、landscape_16_9、portrait_3_4
                num_images:
                  type: integer
                  description: Số lượng hình ảnh, phạm vi 1–4
                num_inference_steps:
                  type: integer
                  description: >-
                    Vui lòng cung cấp nội dung tài liệu kỹ thuật trong phạm vi
                    1–50 để tôi dịch sang tiếng Việt.
                output_format:
                  type: string
                  description: 'Định dạng ảnh đầu ra: jpeg, png'
                prompt:
                  type: string
                  description: Lời nhắc
              x-apifox-orders:
                - enable_safety_checker
                - guidance_scale
                - image_size
                - num_images
                - num_inference_steps
                - output_format
                - prompt
              x-apidog-orders:
                - enable_safety_checker
                - guidance_scale
                - image_size
                - num_images
                - num_inference_steps
                - output_format
                - prompt
            examples:
              example:
                value:
                  enable_safety_checker: true
                  guidance_scale: 3.5
                  image_size: landscape_4_3
                  num_images: 1
                  num_inference_steps: 28
                  output_format: jpeg
                  prompt: >-
                    Cảnh cực cận của một mắt hổ duy nhất, nhìn thẳng từ chính
                    diện. Mống mắt và đồng tử chi tiết. Lấy nét sắc nét vào kết
                    cấu và màu sắc của mắt. Ánh sáng tự nhiên làm nổi bật độ
                    long lanh và chiều sâu chân thực của mắt. Từ "FLUX" được vẽ
                    đè lên trên bằng những nét cọ lớn màu trắng, với kết cấu
                    hiện rõ.
                summary: example
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                x-apidog-orders: []
              examples:
                example:
                  summary: example
                  value:
                    cancel_url: >-
                      https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c/cancel
                    metrics: {}
                    queue_position: 0
                    request_id: 07e0be22-3380-4699-a377-48729443435c
                    response_url: >-
                      https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c
                    status: IN_QUEUE
                    status_url: >-
                      https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c/status
          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/Hình ảnh/Fal.ai
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208917-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.openaihub.net
    description: Prod Env
security: []

```
