It looks like you may prefer a different language. Switch anytime.

PROVIDER

Black Forest Labs AI 模型

Flux Kontext and Flux 2 — open-weight image generation and editing with strong prompt adherence.

2 models · 6 variants · 起價 $0.050
OVERVIEW

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
  • 按次計費,無需承諾
  • 失敗的生成不收費
FEATURES

特色亮點

MODELS

Black Forest Labs 的所有模型

QUICKSTART

安裝 Black Forest Labs model skill。

選一個模型並加入其 skill,讓 coding tool 取得文件、schema、價格備註與 setup 步驟。

runapi.ai
curl -X POST https://runapi.ai/api/v1/flux_2/remix_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-2-flex-text-to-image",
  "prompt": "Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, 8K detail."
}'
import { Flux2Client } from "@runapi.ai/flux-2";

const client = new Flux2Client();
const result = await client.remixImage.run({
    model: "flux-2-flex-text-to-image",
    prompt: "Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, 8K detail.",
});
<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\Flux2\Flux2Client;

$client = new Flux2Client();
$result = $client->remixImage->run([
        'model' => 'flux-2-flex-text-to-image',
        'prompt' => 'Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, 8K detail.',
]);
require "runapi/flux_2"

client = RunApi::Flux2::Client.new
result = client.remix_image.run(
    model: "flux-2-flex-text-to-image",
    prompt: "Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, 8K detail."
)
npx skills add runapi-ai/flux-2 -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
@runapi.ai/flux-2 v1
REFERENCE

Black Forest Labs 的所有變體

完整價格表 →
Model Variant Billing From
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 查看 →
FAQ

關於 Black Forest Labs 的常見問題

這是 Black Forest Labs 的官方整合嗎?

RunAPI 提供受管理的 API 介面,具備透明的定價、能力與錯誤行為。

我需要 Black Forest Labs 帳戶嗎?

不需要 — 你的 RunAPI 金鑰就足以使用受管理的存取。

透過代理轉送的延遲額外開銷是多少?

通常低於 20 ms。RunAPI 會讓代理層盡量靠近模型執行區域。

圖片/影片會被快取嗎?

生成結果會依任務 ID 儲存並可取回。輸入內容不會快取。

我可以使用自己的金鑰嗎?

目前還不行 — 呼叫會使用 RunAPI 受管理的存取。

立即開始

開始用 Black Forest Labs 模型開發。