Generates a new image from a text prompt.
php cli/joomla.php aitiny:image:generate <prompt> [options]
Required. The text description of the image you want to generate.
The filename to save the image as (without extension). If omitted, a filename is generated from the SHA-256 hash of the prompt.
The output image format: png, jpg, or webp. Defaults to png.
The output type. Defaults to mediauri.
mediauri – Prints the Joomla Media Manager URI of the saved image.
url – Prints the full URL to the saved image.
imagebase64 – Prints the image data as a Base64-encoded string.
image – Outputs the raw image binary data.
A style preset to apply to the image. Use the aitiny:image:styles command to list available styles.
The image size: small, medium, or large.
The aspect ratio (e.g. 16:9, 1:1, 4:3).
# Generate an image and get the media URIphp cli/joomla.php aitiny:image:generate "A tabby cat on a windowsill"# Generate with a specific style and aspect ratiophp cli/joomla.php aitiny:image:generate "A mountain landscape" -s cinematic -a 16:9# Generate as WebP with a custom filenamephp cli/joomla.php aitiny:image:generate "Company logo" -f company-logo -m webp