PROVIDER

Black Forest Labs AI Models

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

2 models · 6 variants · from $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.

  • Single API key shared across all providers
  • No separate %{provider} account required
  • Model skills carry docs, schemas, and setup steps into your workspace
  • Per-call billing in USD, no subscription or minimum spend
  • Failed generations are never charged
  • Switch models by changing one parameter
  • Billing consolidated into one monthly invoice
FEATURES

What stands out

MODELS

All Black Forest Labs models available through RunAPI

QUICKSTART

Install a Black Forest Labs model skill for your app.

Pick a model and add its skill so your coding tool has docs, schemas, pricing notes, and setup steps. Skills work with Claude Code, Codex, Gemini CLI, Cursor, and VS Code. Install once, then switch models by changing one parameter.

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

Every Black Forest Labs variant with pricing and model IDs

Full pricing table →
Model Variant Billing From
Flux 2
flux-2-flex-remix-image call $0.140 View →
flux-2-flex-text-to-image call $0.140 View →
flux-2-pro-remix-image call $0.050 View →
flux-2-pro-text-to-image call $0.050 View →
Flux Kontext
flux-kontext-max call $0.100 View →
flux-kontext-pro call $0.050 View →
FAQ

Frequently asked questions about Black Forest Labs

Is this an official Black Forest Labs integration?

RunAPI exposes a managed API surface with transparent per-call pricing, fully documented capability and parameters, and clear error behavior. You get the same model output quality without managing a direct provider relationship or provider-side account.

Do I need a Black Forest Labs account?

No. Your RunAPI API key is enough for managed access to all Black Forest Labs models. You do not need to create a separate account, manage provider-specific credentials, or handle provider-side billing.

What's the latency overhead from proxying through RunAPI?

Typically under 20 ms. RunAPI keeps the proxy layer close to model execution regions to minimize added latency. Media generation time is dominated by the model itself, not the proxy.

Are images / videos cached?

Generated outputs are stored and retrievable by task ID. You can fetch completed results at any time using the task status endpoint or the RunAPI dashboard. Output URLs remain accessible for the retention period shown in the API docs. Inputs are not cached or stored.

Can I bring my own key?

Not currently. Calls use RunAPI-managed access, which simplifies authentication and lets RunAPI handle rate limiting, retries, and billing consolidation on your behalf.

How is billing consolidated?

All API calls across all providers appear on a single monthly USD invoice. There is no per-provider billing, no subscription, and no minimum spend. Failed generations are never charged.

What SDKs can I use with Black Forest Labs models?

Official SDKs are available for Python, Node.js, PHP, Java, Ruby, and Go. Each SDK handles authentication, async task polling, and typed responses. For LLM models, the OpenAI and Anthropic SDKs also work by pointing the base URL to RunAPI.

What are model skills and how do they work?

Model skills are installable packages that load a model's docs, typed schemas, pricing notes, and setup steps directly into your coding workspace. Install a skill with one command and your agent has the right context before you write integration code. Skills work with Claude Code, Codex, Gemini CLI, Cursor, and VS Code.

How do I switch between Black Forest Labs models?

Change the model parameter in your API request. All Black Forest Labs models share the same API key, the same request shape, and the same billing. No code changes, no re-authentication, and no separate billing setup are required when switching between models or between variants of the same model. You can also switch to models from other providers by changing the same parameter — the API surface is unified across the entire catalog.

START NOW

Start building with Black Forest Labs models.