Skip to content

Image Models

Pegasus includes an optional example app for generating images with multiple different models, including Gemini/Nano Banana Pro, Dall-E-2 and Dall-E-3 and Stability AI (Stable Diffusion 3).

You will need to set the following environment/.env variables to use the different models:

ModelEnvironment Variable
Gemini / Nano BananaAI_IMAGES_GEMINI_API_KEY
Dall-EAI_IMAGES_OPENAI_API_KEY
Stability AIAI_IMAGES_STABILITY_AI_API_KEY

You can choose which model you want to use from the dropdown on the image generation page.