Install this agent skill, inspect Flux Kontext fields, then run jobs through the RunAPI CLI.
Model Reference · CLI · SDK
Generate and transform images with Flux Kontext Pro and Max. This skill helps Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents integrate Flux Kontext through RunAPI.
The canonical agent file is skills/flux-kontext/SKILL.md.
npx skills add runapi-ai/flux-kontext -gOr paste this prompt to your AI agent:
Install the flux-kontext skill for me:
1. Clone https://github.com/runapi-ai/flux-kontext
2. Copy the skills/flux-kontext/ 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 { FluxKontextClient } from '@runapi.ai/flux-kontext';
const client = new FluxKontextClient();
const result = await client.textToImage.run({
model: 'flux-kontext-pro',
prompt: 'A futuristic cityscape at night',
aspect_ratio: '16:9',
});
const url = result.images[0].url;- Model page: https://runapi.ai/models/flux-kontext
- Product docs: https://runapi.ai/docs#flux-kontext
- SDK docs: https://runapi.ai/docs#sdk-flux-kontext
- SDK repository: https://github.com/runapi-ai/flux-kontext-sdk
- Pricing and rate limits: https://runapi.ai/models/flux-kontext/pro
- Provider comparison: https://runapi.ai/providers/black-forest-labs
- Browse all RunAPI models and skills: https://runapi.ai/models
- 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 kontext 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.