AI Image Generation
This action will send a text prompt to an image-generation AI model and store the URL of the resulting image in a conversation variable, ready to be displayed in the chat.

Settings
The action uses the following settings:
Prompt
The description of the image the AI should generate
✅
Use AI module settings
If enabled, the request uses the provider and API key configured in the AI module settings
⛔
AI Provider
The AI provider to use for this request. Only visible when Use AI module settings is disabled
⛔
Model Version
The image model of the selected provider to use for this request. Only visible when Use AI module settings is disabled
⛔
API Key
The API key used to authenticate with the selected provider. Only visible when Use AI module settings is disabled
⛔
Remarks
The generated image is saved in your account storage and ai_image_generated contains its public URL. Use the variable in an Image Action to display the image to the user.
The prompt can include any variable collected during the conversation, so each user can receive a personalized image. For example: A watercolor postcard of {{city}} at sunset, with the text "Greetings from {{city}}".
Only OpenAI and Gemini currently support image generation.
When Use AI module settings is enabled, Xenioo uses the provider and API key configured for your bot. Since the model configured in the AI module is a chat model, the first image model available for that provider is used automatically. If your bot uses a provider that does not support image generation, disable Use AI module settings and select a supported provider and model.
Trigger
On Image Generated. This action will trigger any child operation as soon as the image is available.
Variables
This action produces the following variables after being triggered:
ai_image_generated
The URL of the generated image. Empty if the generation failed
Availability
Channel specific availability follows the table below:
Fully Available.
Fully Available.
Telegram
Fully Available.
Web
Fully Available.
Last updated
Was this helpful?