Image generation requires an OpenRouter API key configured in Settings → CodeFire Engine. Images are saved to the project’s assets/generated/ directory.
generate_image
Generate an image from a text prompt using AI (Google Gemini 3.1 Flash). Returns the file path of the generated image.Text description of the image to generate
Aspect ratio:
1:1, 16:9, 9:16, 4:3, 3:2 (default: 1:1)Resolution:
1K, 2K, 4K (default: 1K)Project ID (auto-detected if omitted)
Absolute path to the generated image file
The prompt that was used
Database ID of the generated image
edit_image
Edit an existing image with text instructions using AI. Provide the file path of the source image and editing instructions.Absolute file path of the image to edit
Editing instructions (e.g., “make the background blue”, “add a shadow”)
Project ID (auto-detected if omitted)
Absolute path to the edited image file
ID of the source image
Database ID of the new edited image
list_images
List all generated images for a project, ordered by most recent first.Project ID (auto-detected if omitted)
Maximum number of images to return (default: 20)
Image database ID
Prompt used to generate the image
Absolute path to the image file
Aspect ratio (e.g., “16:9”)
Resolution (e.g., “2K”)
ID of parent image if this was an edit
ISO 8601 timestamp
get_image
Get detailed information about a specific generated image.Image database ID
Notes
- Images are saved to
<project-path>/assets/generated/ - Requires OpenRouter API key in Settings → CodeFire Engine
- Model used:
google/gemini-3.1-flash-image-preview - Edited images maintain a link to their parent via
parent_image_id - All image operations are project-scoped
Image Studio
Learn about the GUI image generation features
MCP Integration
See how to use images in AI workflows
