Flux 2
Text-to-image and remix-image with strong prompt adherence from Black Forest Labs.
# Works with Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents
npx skills add runapi-ai/flux-2 -g
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
- Gerações com falha não são cobradas
Variantes
Use this model from your agent
# 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.',
});
How to call this model
Install the skill
Add the model skill to your agent or install the SDK package.
Authenticate once
Use your RunAPI key for every supported model.
Send a request
Use the unified schema for the endpoint you need.
Receive output
Poll by task ID or handle the callback when the generation completes.
SDK quickstart
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."
)
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.
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.
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?
Gerações com falha não são cobradas
Can agents use it directly?
Yes. Install the model skill and your agent gets the docs, schema, and examples.