Specify which aspect ratio you want to use in your prompt. The choices are: "default": (1920, 1080), "square": (1080, 1080), "landscape": (1920, 1080), "landscape_large": (2560, 1440), "portrait": (1080, 1920), "portrait_large": (1440, 2560),
You can also enable enhanced image prompt, e.g. "Generate and display an enhanced image of the sun and moon together in square format."
Default format will be used if no aspect ratio is mentioned in the prompt. Image prompt will not be enhanced by default.
A seed parameter has been added. The default seed is 42 if you did not mention the value in your prompt. If you generated an image you like and want to generate it again with the exact same characteristics, you would use the same seed value that was used to create that image. If you like your prompt but want to explore different variations, you can change the seed value, e.g. "Generate a picture of a mouse eating cheese. Portrait and make it 720 x 1280. Seed is 50."
This code was adapted and updated from Kaneki's GenAI (Pollinations) at https://openwebui.com/t/kaneki/image_generation.
Open WebUI Enterprise — White-labeling, SSO, and dedicated support for your team.