Python Project: AI Image Generator App

From the creator

Build a Tinder-style AI image generator in Python with Streamlit and Google’s Gemini API: set up the project with uv, design a clean Streamlit UI (prompt, image uploader, generate button), and transform uploaded photos using Gemini 2.5 Flash Image Preview—secure your API key, parse image outputs, handle long-running tasks with spinners, and render before/after previews in a responsive two-column layout. --- 🔗 *Links* - 💻 Code from the video: https://github.com/alejandro-ao/gemini-image-generation-app - 🔥 Use this app for FREE: https://gemini-image-generation-app.onrender.com/ - 🚀 Join my FREE community: https://learn.alejandro-ao.com - ❤️ Support me: [Buy me a coffee or beer](https://link.alejandro-ao.com/l83gNq) - ✉️ Channel & AI Engineering newsletter: https://link.alejandro-ao.com/AIIguB --- 🤓 *Topics Covered* - Setup: Python + Streamlit, uv project setup, app scaffolding - UI Components: sidebar API key input, prompt text area, file uploader, generate button, two-column preview - User Experience: loading spinner, conditional rendering, error handling, success/warning states - Image Generation: Gemini 2.5 Flash Preview, google-genai SDK, image I/O with Pillow, API response handling - Practical Use: prompt engineering examples, portfolio-ready AI app combining Streamlit + Gemini API --- ⏰ *Timestamps* 0:00:00 - Intro 0:00:53 - Project overview & demo 0:01:00 - Project setup with uv (init) 0:01:51 - Add dependencies & run Streamlit 0:02:54 - Scaffold the Streamlit app & page config 0:04:39 - Sidebar: API key input (session state/env var) 0:07:15 - Prompt text area & file uploader 0:11:07 - Layout: two-column design, show uploaded image 0:13:45 - Call Gemini 2.5 Flash Image Preview & render result 0:19:24 - Conclusion

Choose to Build with AI
Matched to Nano Banana Tutorial

AI Maker Residence 3

The third AI workshop taught by our legendary teacher, Nick Sarafa. This is a full-day hands-on training workshop for purposeful co-creation with AI using Claude Code. Imagine having access to hundreds of billions of dollars of computing power and knowing exactly how to make it work for you through the power of super intelligence.

◆ Fri 09 Oct 2026 ◆ KOKO Cafe, London ◆ With Nick Sarafa
AI Maker Residence 3
Live event
AI Maker Residence 3
Fri 09 Oct 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.