Metis — Generate Image
generate_imageGenerate AI images based on a prompt and automatically save them to your personal knowledge management library.
Instructions
Generate an image using AI and save it to the PKM.
Saves to {pkm_root}/outputs/images/YYYY-MM-DD_[slug].png
Args:
prompt: Description of the image to generate.
backend: "gemini" (default) or "huggingface"
model: "flash" (gemini-3.1-flash-preview-image-generation),
"imagen" (imagen-4.0-generate-001),
"flux" (FLUX.1-schnell via HuggingFace)
width: Image width in pixels (default 1024).
height: Image height in pixels (default 1024).
output_filename: Optional custom filename (without extension).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | flash | |
| width | No | ||
| height | No | ||
| prompt | Yes | ||
| backend | No | gemini | |
| output_filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |