generate_image
Generate AI images and save them to your personal knowledge management system. Supports Gemini and HuggingFace backends with multiple models.
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 |
|---|---|---|---|
| prompt | Yes | ||
| backend | No | gemini | |
| model | No | flash | |
| width | No | ||
| height | No | ||
| output_filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |