DEV Community

Cover image for Gemini-Powered AI app in Under 2 Minutes
Nikoloz Turazashvili (@axrisi)
Nikoloz Turazashvili (@axrisi) Subscriber

Posted on • Edited on

Gemini-Powered AI app in Under 2 Minutes

Education Track: Build Apps with Google AI Studio

This post is my submission for DEV Education Track: Build Apps with Google AI Studio.

What I Built

I built an RPG Portrait Generator web app using Google AI Studio’s “Build apps with Gemini” feature.

Prompt used:

  1. please create an app that creates RPG character portrait generator using imagen based on input from user, let user choose some charecteristics and put the name of character, based on all of this info generate the portrait.
  2. can you create top 10 different universes? like lord of the rings, starwars maybe etc. whatever can be counted as rpg. and based on that show different classes, races that each universe has.
  3. can you save in local storage generated images? and let user view and download them?

Additional features:

  • Ten distinct RPG universes, each with unique races and classes
  • localStorage support to save and retrieve generated images
  • Download button for exporting portraits as PNG

Demo

App Preview

My Experience

  • Rapid Prototyping: Gemini scaffolding cut setup time from days to minutes.
  • Imagen API Integration: Gained insights on endpoint calls, handling responses, and dynamic image rendering.
  • State Persistence: Leveraged localStorage for caching portraits, improving user retention of creations.
  • Enhanced UX: Download functionality and clear UI flow significantly boosted usability and engagement.

Suggestions

  1. Auto-save Projects: Implement auto-save functionality to persist user progress immediately after AI code generation completes.
  2. Deployment Details: After deployment, display the target cloud account or project information (e.g., GCP project ID) to confirm where the app is hosted.

Top comments (2)

Collapse
 
axrisi profile image
Nikoloz Turazashvili (@axrisi)

Github repo for this project is Public

🎭 RPG Portrait Generator

Generate stunning AI-powered character portraits for your tabletop RPG campaigns across multiple fantasy and sci-fi universes!

Live Demo React TypeScript Vite

✨ Features

  • 🎨 AI-Powered Generation - Uses Google Gemini's Imagen 3.0 for high-quality character portraits
  • 🌍 10 Unique Universes - From classic D&D to cyberpunk, each with authentic art styles
  • 🎭 Diverse Character Options - Multiple races, classes, and genders per universe
  • 💾 Portrait Gallery - Save, view, and manage your generated characters
  • 📱 Responsive Design - Works seamlessly on desktop and mobile
  • Fast Generation - Optimized with Vite for quick builds and hot reloading

🎮 Supported Universes

Universe Races Classes Art Style
Forgotten Realms (D&D) Human, Elf, Dwarf, Halfling, Dragonborn, Tiefling, Gnome, Half-Orc Fighter, Wizard, Rogue, Cleric, Ranger, Barbarian, Paladin, Sorcerer, Warlock, Monk, Druid, Bard Classic high fantasy, D&D art style
Lord of the Rings Man, Elf, Dwarf, Hobbit, Orc Ranger, Elven Archer, Dwarven Warrior, Wizard (Istari), Rider
Collapse
 
alberttnt profile image
Albert Sun

That's fantastic.