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

ModelFlux 2 Pro
Providerfal.ai (Black Forest Labs)
Typeimage generation
CLI Slugflux2-pro
Resolutions1024x1024, 1024x768, 768x1024
Aspect Ratios1:1, 4:3, 3:4, 16:9, 9:16
Input TypesText prompt
Credit Cost50-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" --sync
Generate a logo design with text
agent-media generate flux2-pro -p "Modern logo design for a tech startup called NovaTech" --sync
Generate a square product photo
agent-media generate flux2-pro -p "Product photo of headphones on marble surface" --aspect-ratio 1:1 --sync

Strengths

  • 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"

Start generating with Flux 2 Pro

Install agent-media CLI and run your first image generation in under 60 seconds.

npm install -g agent-media-cli