Bỏ qua để đến nội dung

/fal-ai/flux-1/dev/redux

Xem Markdownllms.txt

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: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/fal-ai/flux-1/dev/redux:
post:
summary: /fal-ai/flux-1/dev/redux
deprecated: false
description: >-
Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực
tiếp nội dung từ URL này: https://fal.ai/models/fal-ai/flux-1/dev/redux
operationId: fal_ai_fal_ai_flux_1_dev_redux
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:
- image_url
properties:
acceleration:
type: string
description: >-
Tốc độ tạo. Tốc độ càng cao thì quá trình dựng càng nhanh.
Giá trị mặc định: "regular"; hỗ trợ các giá trị default,
none, regular và high
enable_safety_checker:
type: boolean
description: >-
Nếu được đặt thành `true`, trình kiểm tra bảo mật sẽ được
bật. Giá trị mặc định: `true`
guidance_scale:
type: number
description: >-
Thang CFG (Classifier Free Guidance) đo mức độ bạn muốn mô
hình bám sát các gợi ý khi tìm hình ảnh phù hợp. Giá trị mặc
định: 3.5 Phạm vi giá trị: 1-20
image_size:
type: string
description: >-
Kích thước của hình ảnh được tạo. Mặc định: landscape_4_3,
phạm vi (3:4, 4:3, 16:9, 9:16)
image_url:
type: string
description: >-
Kéo và thả tệp vào đây, hoặc cung cấp URL dữ liệu được mã
hóa base64
Các loại tệp được chấp nhận: jpg, jpeg, png, webp, gif, avif
num_images:
type: integer
description: >-
Số lượng hình ảnh được tạo. Giá trị mặc định: 1 Giá trị
trong khoảng 1-4
num_inference_steps:
type: integer
description: >-
Số bước suy luận cần thực hiện. Giá trị mặc định: 28 Giá trị
trong khoảng: 1-50
output_format:
type: string
description: >-
Định dạng của hình ảnh được tạo. Giá trị mặc định: "jpeg".
Hỗ trợ: default, png, jpeg
refName: PostFalAiFlux1DevReduxRequest
x-apifox-orders:
- acceleration
- enable_safety_checker
- guidance_scale
- image_size
- image_url
- num_images
- num_inference_steps
- output_format
x-apidog-orders:
- acceleration
- enable_safety_checker
- guidance_scale
- image_size
- image_url
- num_images
- num_inference_steps
- output_format
examples:
fal_aiflux_1devredux_single:
value:
acceleration: thông thường
enable_safety_checker: true
guidance_scale: 3.5
image_size: landscape_4_3
image_url: https://fal.media/files/kangaroo/acQvq-Kmo2lajkgvcEHdv.png
num_images: 1
num_inference_steps: 28
output_format: jpeg
summary: fal_aiflux_1devredux_single
description: /fal-ai/flux-1/dev/redux
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-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/cancel
logs: []
metrics: {}
queue_position: 0
request_id: acf05732-7cb3-445b-9f39-fdaeccb1d730
response_url: >-
https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730
status: IN_QUEUE
status_url: >-
https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/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-45208902-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: https://api.openaihub.net
description: Prod Env
security: []