
Generating Images
- Open the Image Studio tab in a project window
- Enter a prompt (e.g., “A minimalist app icon with a brain symbol, blue gradient”)
- Select aspect ratio (1:1, 16:9, 9:16, 4:3, 3:2)
- Select size (1K, 2K, 4K)
- Click Generate (or press Cmd+Enter)
Aspect Ratios
CodeFire supports five aspect ratios:- 1:1 — Square (app icons, avatars, social media)
- 16:9 — Widescreen (hero images, banners, presentations)
- 9:16 — Portrait (mobile screenshots, stories)
- 4:3 — Standard (classic photos, slides)
- 3:2 — Wide (landscapes, product photos)
Image Sizes
Three size options:- 1K — Fast, lower resolution (good for drafts)
- 2K — Balanced quality and speed
- 4K — High resolution (production-ready assets)
Editing Images
CodeFire supports iterative editing:- Generate an image
- Click Edit
- Enter edit instructions (e.g., “Make the background darker”)
- Click Apply Edit
Image editing uses the same aspect ratio and size as the original image.
History
All generated images are saved and displayed in the History panel:- Thumbnail preview
- Prompt used to generate the image
- Timestamp (when generated)
- Click an image to view full-size
Managing History
- Select an image to view it in the main panel
- Delete removes the image from disk and database
- Copy copies the image to your clipboard
- Reveal shows the file in Finder
Example Prompts
CodeFire includes example prompts to get you started:- “A minimalist app icon with a brain symbol, blue gradient”
- “Hero illustration of a developer working late, isometric style”
- “Clean dashboard mockup with charts and cards, dark mode”
Image Metadata
Each generated image stores:- Prompt — The text used to generate it
- Aspect ratio — 1:1, 16:9, etc.
- Size — 1K, 2K, 4K
- File path — Location on disk
- Project ID — Links image to a specific project
- Parent image ID — If edited, references the original
- Response text — Any text the AI included in the response
- Timestamp — When generated
OpenRouter Configuration
Image generation requires an OpenRouter API key:- Go to openrouter.ai/keys
- Create a new API key
- Open CodeFire → Settings → CodeFire Engine
- Paste the key into the “OpenRouter API Key” field
- Click Save
Best Practices
Be specific in prompts
Be specific in prompts
Instead of “app icon”, try “minimalist app icon with a brain symbol, blue gradient, flat design, white background”.
Use 1K size for drafts
Use 1K size for drafts
Generate multiple variations at 1K size first. Once you find one you like, regenerate at 4K for production.
Edit iteratively
Edit iteratively
Don’t try to get the perfect image in one shot. Generate, then edit with small adjustments (“make background darker”, “remove shadows”).
Reference style examples
Reference style examples
Include style keywords in your prompt: “isometric”, “flat design”, “3D render”, “watercolor”, etc.
Save costs with prompt refinement
Save costs with prompt refinement
Refine your prompt before generating at 4K. Small text changes can dramatically improve results without needing multiple high-res generations.
MCP Integration
When the CodeFire MCP server is installed, your AI agent can generate images programmatically:Image Actions
The Image Studio provides four actions for each image:- Copy — Copies image to clipboard (paste into Slack, Figma, etc.)
- Edit — Opens the edit panel for iterative refinement
- Reveal — Shows the file in Finder (for sharing or moving)
- Delete — Removes from disk and database (permanent)
Performance Tips
- 1K images generate in ~5 seconds
- 2K images take ~10 seconds
- 4K images can take 20+ seconds
Related Features
Project Management
Generated images are linked to specific projects
Notes
Reference image file paths in notes
Task Tracking
Attach generated images to tasks
