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.
- 單一 API key 可跨 provider 共用
- 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 密鑰已足夠使用託管存取。
透過 proxy 會增加多少延遲?
通常少於 20 ms。RunAPI 會將 proxy 層維持在貼近 model 執行區域的位置。
圖片/影片會快取嗎?
生成結果會按 task ID 儲存並可供取回。輸入內容不會快取。
我可以使用自己的 key 嗎?
目前不支援 — 請使用 RunAPI 管理的存取。