Black Forest Labs AI 模型
Flux Kontext and Flux 2 — open-weight image generation and editing with strong prompt adherence.
Black Forest Labs develops the Flux family of open-weight image models. Flux Kontext handles in-context editing, style transfer, and character consistency; Flux 2 delivers high-fidelity text-to-image and image editing generation.
- 跨 provider 共用單一 API 金鑰
- Model skill 將文件與 schema 帶入你的 workspace
- 按次計費,無需承諾
- 失敗的生成不收費
特色亮點
Black Forest Labs 的所有模型
Flux 圖像 API:Dev、Pro 與 2 Klein 支援文生圖,Dev 與 Pro 支援單圖編輯。
Text-to-image and remix-image with strong prompt adherence from Black Forest Labs.
In-context image editing — local edits, style transfer, and character-consistent generation.
安裝 Black Forest Labs model skill。
選一個模型並加入其 skill,讓 coding tool 取得文件、schema、價格備註與 setup 步驟。
curl -X POST https://runapi.ai/api/v1/flux/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-dev",
"prompt": "生成一張 4K 產品主視覺圖:啞黑色水瓶置於米色石材表面,柔和側光。"
}'
import { FluxClient } from "@runapi.ai/flux";
const client = new FluxClient();
const result = await client.textToImage.run({
model: "flux-dev",
prompt: "生成一張 4K 產品主視覺圖:啞黑色水瓶置於米色石材表面,柔和側光。",
});
require "runapi/flux"
client = RunApi::Flux::Client.new
result = client.text_to_image.run(
model: "flux-dev",
prompt: "生成一張 4K 產品主視覺圖:啞黑色水瓶置於米色石材表面,柔和側光。"
)
npx skills add runapi-ai/flux -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
# Codex
codex plugin install runapi-mcp@agents
# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
Black Forest Labs 的所有變體
| Model | Variant | Billing | From | |
|---|---|---|---|---|
|
Flux
|
flux-2-klein | call | $0.030 | 查看 → |
| flux-dev | call | $0.070 | 查看 → | |
| flux-pro | call | $0.100 | 查看 → | |
|
Flux 2
|
flux-2-flex-remix-image | call | $0.140 | 查看 → |
| flux-2-flex-text-to-image | call | $0.140 | 查看 → | |
| flux-2-pro-remix-image | call | $0.050 | 查看 → | |
| flux-2-pro-text-to-image | call | $0.050 | 查看 → | |
|
Flux Kontext
|
flux-kontext-max | call | $0.100 | 查看 → |
| flux-kontext-pro | call | $0.050 | 查看 → |
關於 Black Forest Labs 的常見問題
這是 Black Forest Labs 的官方整合嗎?
RunAPI 提供受管理的 API 介面,具備透明的定價、能力與錯誤行為。
我需要 Black Forest Labs 帳戶嗎?
不需要 — 你的 RunAPI 金鑰就足以使用受管理的存取。
透過代理轉送的延遲額外開銷是多少?
通常低於 20 ms。RunAPI 會讓代理層盡量靠近模型執行區域。
圖片/影片會被快取嗎?
生成結果會依任務 ID 儲存並可取回。輸入內容不會快取。
我可以使用自己的金鑰嗎?
目前還不行 — 呼叫會使用 RunAPI 受管理的存取。