|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIO. - OpenRouter AI > AIO.SetImgConfig |
MiniRobotLanguage (MRL)
AIO.SetImgConfig|`JSON
Set Image Generation Configuration
Purpose
Sets the configuration parameters for AI image generation. This includes settings such as image size, quality, style, and other model-specific options for generating images.
Syntax
AIO.SetImgConfig|`JSON
Parameters
`JSON - A JSON object containing image generation configuration parameters. Available options depend on the selected model.
Common Configuration Options
- size: Image dimensions (e.g., "1024x1024", "512x512")
- quality: Image quality ("standard", "hd")
- style: Image style ("vivid", "natural")
- n: Number of images to generate
JSON Format Example
{"size":"1024x1024","quality":"hd","style":"vivid"}
Notes
- Configuration persists until changed or AIO.Init is called
- Not all models support all configuration options
- Invalid configurations may result in errors or defaults being used
Example
' Configure high-quality image generation
AIO.SetImgConfig|{"size":"1024x1024","quality":"hd"}
' Generate an image with configured settings
AIO.Chat|Create an image of a sunset|`Result
Related Commands
AIO.SetModalities - Set response modalities
AIO.Chat - Send chat/image request