image
fal.ai (Black Forest Labs)Flux 2 Pro
Flux 2 Pro is the flagship image generation model from Black Forest Labs, served via fal.ai. It produces high-resolution images with exceptional detail, accurate text rendering, and strong prompt adherence. One of the fastest high-quality image generators available.
Quick Start with Flux 2 Pro
Generate images with Flux 2 Pro in 60 seconds.
terminal
$ npm install -g agent-media-cli
$ agent-media login
$ agent-media generate flux2-pro -p "Mountain landscape at golden hour, dramatic clouds" --sync
Capabilities
Text-to-image generation
High-resolution output
Accurate text rendering in images
Fast generation speed
Excellent prompt adherence
Flux 2 Pro Specifications
| Model | Flux 2 Pro |
| Provider | fal.ai (Black Forest Labs) |
| Type | image generation |
| CLI Slug | flux2-pro |
| Resolutions | 1024x1024, 1024x768, 768x1024 |
| Aspect Ratios | 1:1, 4:3, 3:4, 16:9, 9:16 |
| Input Types | Text prompt |
| Credit Cost | 50-100 credits per image |
CLI Examples
Real commands you can run right now with agent-media CLI.
Generate a landscape photograph
agent-media generate flux2-pro -p "Mountain landscape at golden hour, dramatic clouds" --syncGenerate a logo design with text
agent-media generate flux2-pro -p "Modern logo design for a tech startup called NovaTech" --syncGenerate a square product photo
agent-media generate flux2-pro -p "Product photo of headphones on marble surface" --aspect-ratio 1:1 --syncStrengths
- Best-in-class text rendering (logos, signs, labels)
- Extremely fast generation speed
- High detail and photorealistic quality
- Consistent style across generations
Best For
- Product photography and mockups
- Marketing materials with text
- Social media graphics
- Concept art and illustrations
Use Flux 2 Pro in Claude Code
agent-media CLI works as an MCP server for Claude Code. Add it to your config and generate images with Flux 2 Pro using natural language.
.claude/settings.json
{
"mcpServers": {
"agent-media": {
"command": "npx",
"args": ["-y", "agent-media-cli", "mcp"],
"env": {
"AGENT_MEDIA_API_KEY": "your-api-key"
}
}
}
}Then ask Claude: "Generate a image with Flux 2 Pro: your prompt here"