Flux 2

Text-to-image and remix-image with strong prompt adherence from Black Forest Labs.

Operational · 4 variants · 최저 $0.050
# Works with Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents
npx skills add runapi-ai/flux-2 -g
The -g flag installs globally so every project picks it up.
Or paste this prompt to your AI agent:
Install the Flux 2 skill for me:

1. Clone https://github.com/runapi-ai/flux-2
2. Copy the skills/flux-2/ directory into your
   user-level skills directory (e.g. ~/.claude/skills/
   for Claude Code, ~/.codex/skills/ for Codex).
3. Verify that SKILL.md is present.
4. Confirm the install path when done.
개요

Flux 2 is Black Forest Labs' text-to-image and image remix model known for strong prompt adherence and high visual fidelity. It supports flexible and pro tiers optimized for speed and quality respectively.

  • Installable agent skill
  • Unified API key
  • SDK examples included
  • 실패한 생성은 과금되지 않습니다
변형

변형

Variant Billing From
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 보기 →
AGENT USAGE

Use this model from your agent

Prompt + SDK example
# User prompt to the agent
"Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, 8K detail."
// Code generated by the agent via @runapi.ai/flux-2
import { Flux2Client } from '@runapi.ai/flux-2';

const client = new Flux2Client();
const result = await client.remixImage.run({
  model: 'flux-2-flex-remix-image',
  prompt: 'Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, 8K detail.',
});
@runapi.ai/flux-2 npm
작동 방식

How to call this model

01

Install the skill

Add the model skill to your agent or install the SDK package.

02

Authenticate once

Use your RunAPI key for every supported model.

03

Send a request

Use the unified schema for the endpoint you need.

04

Receive output

Poll by task ID or handle the callback when the generation completes.

SDK QUICKSTART

SDK quickstart

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-remix-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-remix-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-remix-image",
    prompt: "Generate a photorealistic studio portrait of an astronaut holding a cat, dramatic rim lighting, 8K detail."
)
@runapi.ai/flux-2 v1
컨텍스트

Where Flux 2 fits

Flux 2 is Black Forest Labs' generation model, delivering high prompt adherence across text-to-image and remix-image tasks. Through RunAPI, Pro and Flex variants share the same API shape.

Provider
Black Forest Labs
Modality
Image
RUNAPI를 선택하는 이유

Why use Flux 2 through RunAPI

One API key

Use the same credentials across models and providers.

Agent-ready

Installable skills include docs and schema for tool calls.

Predictable billing

Usage-based pricing is visible before you call.

FAQ

Frequently asked questions

How do I call this model?

Use the RunAPI SDK, CLI, or REST endpoint shown on this page.

Do failed generations cost money?

실패한 생성은 과금되지 않습니다

Can agents use it directly?

Yes. Install the model skill and your agent gets the docs, schema, and examples.

지금 시작

Start building with Flux 2.