Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Evincere/klisk/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheImageGeneration class provides image generation capabilities for agents. This builtin tool is only supported with OpenAI models and allows agents to generate images based on text descriptions.
Class Definition
src/klisk/core/builtin_tools.py:35
Parameters
The model to use for image generation. Default is
"gpt-image-1".Quality setting for generated images. Options:
"auto"- Automatic quality selection (default)"low"- Lower quality, faster generation"medium"- Balanced quality and speed"high"- Highest quality, slower generation
Size of the generated image. Options:
"auto"- Automatic size selection (default)"1024x1024"- Square image (1:1 aspect ratio)"1536x1024"- Landscape image (3:2 aspect ratio)"1024x1536"- Portrait image (2:3 aspect ratio)
Usage
Basic Usage (String Shortcut)
Object Form with Custom Configuration
High Quality Portrait Images
Multiple Builtin Tools
Custom Model
Important Notes
When using the string shortcut
"image_generation", the default settings are used:model="gpt-image-1"quality="auto"size="auto"