Skip to main content

Image generation

The DeFAI chat supports AI-powered image generation via DALL-E and Stable Diffusion models through OpenRouter. Generate images through natural language prompts, then customize with variations, style changes, and quality upgrades.

How to use

Select any agent or type directly:
  • "Generate a cyberpunk city at night"
  • "Create an image of a futuristic trading terminal"
  • "Draw a logo concept for a crypto project"

Parameter request

Before generation, a ParamRequestPanel may appear with:

Result panel: ImageGenResultPanel

Action cards

After generation, three action cards appear for customization:

Variation

Choose variation intensity: Similar (small changes), Different (moderate changes), Extreme (major reimagining). Each triggers a new generation with payment.

Style

Pick a new style from the same 8 presets (Vibrant, Muted, Cinematic, B&W, Anime, Neon, Vintage, Auto). Applies the style to the existing image concept.

Quality

Upgrade or change the quality tier (Flash/Standard/Premium). Higher tiers produce more detailed, higher-resolution images.

Image modification

A ImageModificationPanel also supports:
  • Pre-built modification presets (Vibrant, Neon, Vintage, Anime, Cinematic, Enhance, B&W)
  • Custom prompt textarea for specific modifications
  • AI model selector
  • Payment + execution flow
Each variation/modification is a new generation that requires its own USDC payment via the X402 payment flow.
Image generation costs vary by quality tier. Flash is the cheapest (~$0.08), Premium is the most expensive but produces the highest quality. Costs are shown before you confirm.