Install this agent skill, inspect Flux 2 fields, then run jobs through the RunAPI CLI.
Model Reference · CLI · SDK
Generate images with Flux 2 Pro and Flex text-to-image and image-to-image. This skill helps Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents integrate Flux 2 through RunAPI.
The canonical agent file is skills/flux-2/SKILL.md.
npx skills add runapi-ai/flux-2 -gOr 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.
import { Flux2Client } from '@runapi.ai/flux-2';
const client = new Flux2Client();
const result = await client.textToImage.run({
model: 'flux-2-pro-text-to-image',
prompt: 'A cinematic product photo on warm paper',
aspect_ratio: '1:1',
});- Model page: https://runapi.ai/models/flux-2
- Product docs: https://runapi.ai/docs#flux-2
- SDK docs: https://runapi.ai/docs#sdk-flux-2
- SDK repository: https://github.com/runapi-ai/flux-2-sdk
- Pricing and rate limits: https://runapi.ai/models/flux-2/pro-text-to-image
- Provider comparison: https://runapi.ai/providers/black-forest-labs
- Browse all RunAPI models and skills: https://runapi.ai/models
- Flux 2 Pro text to image
- Flux 2 Pro image to image
- Flux 2 Flex text to image
- Flux 2 Flex image to image
- Keep API keys in
RUNAPI_API_KEYor RunAPI CLI config; never commit secrets. - Prefer
create,get, andrunJSON passthrough patterns instead of inventing flags for every model parameter. - For flux api pricing, rate-limit, and commercial-usage answers, link to the variant page rather than the repository README.
Licensed under the Apache License, Version 2.0.