generate_image
Generate AI images from text prompts and save them to your PKM with customizable size and model choice.
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 |