模型/Black Forest Labs/FLUX Klein API
上线Black Forest Labs · FLUX 3 Klein 与 FLUX.2 Klein16 个端点

FLUX 3 Klein API — FLUX Klein 图像生成与编辑

使用 FLUX 3 Klein API 根据提示词生成图像并通过参考图编辑,同时访问 FLUX.2 Klein 4B、9B、Turbo、LoRA 和风格训练端点。通过一个异步 API 选择 1K、2K 或 4K 输出。

FLUX 3 Klein

支持 1K、2K 和 4K 的文生图与图像编辑2 个模型
文生图上线Featured
FLUX 3 Klein

FLUX 3 Klein Text to Image

FLUX 3 Klein FLUX 3 Klein Text to Image is a live Muapi endpoint for text-to-image. Submit it with one API key and poll the shared result endpoint.

1K–4K
$0.009 / 1K · $0.014 / 2K · $0.036 / 4K
试用模型
图像编辑上线
FLUX 3 Klein

FLUX 3 Klein Image Edit

FLUX 3 Klein FLUX 3 Klein Image Edit is a live Muapi endpoint for image editing. Submit it with one API key and poll the shared result endpoint.

1K–4K
$0.009 / 1K · $0.014 / 2K · $0.036 / 4K
试用模型

FLUX.2 Klein 4B

紧凑型文生图与参考图编辑2 个模型
文生图上线
FLUX.2 Klein 4B

FLUX 2 Klein 4b

FLUX.2 FLUX 2 Klein 4b is a live Muapi endpoint for text-to-image. Submit it with one API key and poll the shared result endpoint.

Image
$0.0104/request
试用模型
图像编辑上线
FLUX.2 Klein 4B

FLUX 2 Klein 4b Edit

FLUX.2 FLUX 2 Klein 4b Edit is a live Muapi endpoint for image editing. Submit it with one API key and poll the shared result endpoint.

Image
$0.0156/request
试用模型

FLUX.2 Klein 9B

更大规模的 Klein 生成与编辑版本2 个模型
文生图上线
FLUX.2 Klein 9B

FLUX 2 Klein 9b

FLUX.2 FLUX 2 Klein 9b is a live Muapi endpoint for text-to-image. Submit it with one API key and poll the shared result endpoint.

Image
$0.013/request
试用模型
图像编辑上线
FLUX.2 Klein 9B

FLUX 2 Klein 9b Edit

FLUX.2 FLUX 2 Klein 9b Edit is a live Muapi endpoint for image editing. Submit it with one API key and poll the shared result endpoint.

Image
$0.0208/request
试用模型

FLUX.2 Klein 4B Turbo

快速紧凑型生成与编辑2 个模型
文生图上线
Klein 4B Turbo

FLUX 2 Klein 4b Turbo

FLUX.2 FLUX 2 Klein 4b Turbo is a live Muapi endpoint for text-to-image. Submit it with one API key and poll the shared result endpoint.

Image快速
$0.0052/request
试用模型
图像编辑上线
Klein 4B Turbo

FLUX 2 Klein 4b Turbo Edit

FLUX.2 FLUX 2 Klein 4b Turbo Edit is a live Muapi endpoint for image editing. Submit it with one API key and poll the shared result endpoint.

Image快速
$0.0078/request
试用模型

FLUX.2 Klein 9B Turbo

快速 9B 生成与编辑2 个模型
文生图上线
Klein 9B Turbo

FLUX 2 Klein 9b Turbo

FLUX.2 FLUX 2 Klein 9b Turbo is a live Muapi endpoint for text-to-image. Submit it with one API key and poll the shared result endpoint.

Image快速
$0.0065/request
试用模型
图像编辑上线
Klein 9B Turbo

FLUX 2 Klein 9b Turbo Edit

FLUX.2 FLUX 2 Klein 9b Turbo Edit is a live Muapi endpoint for image editing. Submit it with one API key and poll the shared result endpoint.

Image快速
$0.0104/request
试用模型

FLUX.2 Klein LoRA API

在生成和编辑中应用自定义 LoRA4 个模型
支持 LoRA上线
支持 LoRA

FLUX 2 Klein 4b Text To Image LoRA

FLUX.2 FLUX 2 Klein 4b Text To Image LoRA is a live Muapi endpoint for LoRA inference. Submit it with one API key and poll the shared result endpoint.

Image
$0.02/request
试用模型
支持 LoRA上线
支持 LoRA

FLUX 2 Klein 9b Text To Image LoRA

FLUX.2 FLUX 2 Klein 9b Text To Image LoRA is a live Muapi endpoint for LoRA inference. Submit it with one API key and poll the shared result endpoint.

Image
$0.025/request
试用模型
支持 LoRA上线
支持 LoRA

FLUX 2 Klein 4b Edit LoRA

FLUX.2 FLUX 2 Klein 4b Edit LoRA is a live Muapi endpoint for LoRA inference. Submit it with one API key and poll the shared result endpoint.

Image
$0.025/request
试用模型
支持 LoRA上线
支持 LoRA

FLUX 2 Klein 9b Edit LoRA

FLUX.2 FLUX 2 Klein 9b Edit LoRA is a live Muapi endpoint for LoRA inference. Submit it with one API key and poll the shared result endpoint.

Image
$0.03/request
试用模型

FLUX.2 Klein LoRA Training

训练自定义 Klein 风格 LoRA2 个模型
训练上线
风格训练

FLUX 2 Klein 4b Style LoRA Trainer

FLUX.2 FLUX 2 Klein 4b Style LoRA Trainer is a live Muapi endpoint for LoRA training. Submit it with one API key and poll the shared result endpoint.

LoRA weights
$4.50/request
试用模型
训练上线
风格训练

FLUX 2 Klein 9b Style LoRA Trainer

FLUX.2 FLUX 2 Klein 9b Style LoRA Trainer is a live Muapi endpoint for LoRA training. Submit it with one API key and poll the shared result endpoint.

LoRA weights
$4.00/request
试用模型

什么是 FLUX Klein API?

FLUX Klein API 将 Black Forest Labs 的紧凑型图像模型系列整合到一个开发者端点目录中。FLUX 3 Klein 支持文生图和指令式编辑,可输出 1K、2K 或 4K 图像,并提供多张结果、宽高比控制以及 PNG、JPEG 或 WebP 格式。FLUX.2 Klein 还提供 4B、9B、Turbo、LoRA 推理和风格训练版本。

如果你需要在简单的异步工作流中选择分辨率来生成或编辑图像,可使用 FLUX 3 Klein API。想比较不同一代模型,可查看 FLUX.2 Klein 4B 和 9B;也可浏览更全面的 [FLUX.2 API](/flux-2) 和 [FLUX 3 API](/flux-3) 目录。所有 Muapi 请求都使用相同的 API 密钥、请求 ID、结果查询端点和可选 Webhook 模式。

功能与能力

FLUX 3 Klein 图像生成

通过文本提示词生成 1K、2K 或 4K 图像,支持九种宽高比、三种输出格式、提示词增强,以及每次请求最多返回四张图像。

FLUX 3 Klein 图像编辑

发送 1–10 个参考图像 URL 和自然语言编辑提示词。选择自动或固定取景,并请求最多四张输出图像。

FLUX.2 Klein 版本

比较 4B、9B 和 Turbo 文生图与编辑模型,以及目录中的 LoRA 推理端点。

统一 API 工作流

提交异步请求、轮询结果 ID,或提供 Webhook URL 接收完成通知。

快速开始 — FLUX 3 Klein API

使用 FLUX 3 Klein 生成或编辑图像,然后通过标准 Muapi 结果端点获取图像 URL。

1. 使用 FLUX 3 Klein 生成图像

curl -X POST https://api.muapi.ai/api/v1/flux-3-klein-text-to-image \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"A sculptural glass perfume bottle on a warm limestone plinth, soft editorial light","resolution":"2K","aspect_ratio":"4:3","num_images":2}'

# Response: {"request_id":"REQUEST_ID"}

选择分辨率、宽高比、输出格式和图像数量。所列价格按每张输出图像计算。

2. 使用 FLUX 3 Klein 编辑参考图像

curl -X POST https://api.muapi.ai/api/v1/flux-3-klein-edit-image \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Replace the plain background with a warm limestone studio, preserving the product shape","images_list":["https://example.com/product.jpg"],"resolution":"2K","aspect_ratio":"auto"}'

提供 1–10 个可公开访问的参考图像 URL,并描述要进行的编辑。

3. 查询结果

curl https://api.muapi.ai/api/v1/predictions/REQUEST_ID/result \
  -H "x-api-key: YOUR_API_KEY"

从 outputs 数组中读取已完成的图像 URL。

FLUX 3 Klein API 常见问题

什么是 FLUX 3 Klein API?

这是一个异步 API,可使用 FLUX 3 Klein 模型根据提示词生成图像并编辑参考图像。该端点支持 1K、2K 和 4K 图像输出。

FLUX 3 Klein API 的价格是多少?

Muapi 每张 1K 输出图像收费 $0.009,每张 2K 收费 $0.014,每张 4K 收费 $0.036。请求多个输出时按图像数量计费。

可以使用 FLUX Klein 编辑图像吗?

可以。调用 `flux-3-klein-edit-image`,在 `images_list` 中提供 1–10 个公开 URL,并在 `prompt` 中描述编辑内容。目录中也包含单独的 FLUX.2 Klein 编辑端点。

一次 FLUX 3 Klein 请求可以返回多少张图像?

`num_images` 设置为 1 到 4。费用按生成的每张输出图像计算。

支持哪些图像格式和宽高比?

可选择 PNG、JPEG 或 WebP。文生图支持 1:1、4:3、3:4、3:2、2:3、16:9、9:16、21:9 和 9:21。编辑还支持 `auto` 取景。

FLUX 3 Klein 与 FLUX.2 Klein 有何不同?

此目录中的 FLUX 3 Klein 支持 1K–4K 文生图和图像编辑;FLUX.2 Klein 提供 4B/9B 和 Turbo 图像、编辑、LoRA 与训练端点。它们属于不同模型世代,提供的端点也不同。

使用 FLUX Klein API 构建

使用一个 API 密钥通过 FLUX 3 Klein 生成和编辑图像,并与 FLUX.2 Klein 版本的请求进行比较。