This post is my submission for DEV Education Track: Build Apps with Google AI Studio.
🌌 What I Built
✨ DreamMix is a calming, creative bedtime app that generates personalized dreamscapes using the power of AI.
Before you sleep, you enter 2–3 imaginative keywords, and DreamMix instantly creates:
- 🎨 A surreal visual dream scene using Imagen (Google’s image generation model)
- 📖 A peaceful narrative written by Gemini, like a bedtime story composed just for you
🔮 Sample Interaction
User Input:
["floating island", "dragonfruit sky", "childhood home"]
🧠 Gemini-Generated Narrative:
Tonight, you will dream of a floating island adrift in a sky the color of ripe dragonfruit. The air hums with memory as you walk barefoot through cloudgrass toward your childhood home, glowing softly atop the cliffs. Lanterns float beside you, whispering stories only dreams can tell. Somewhere, a gentle breeze carries laughter from a time long past. Sleep, dear dreamer—the island will wait for you until morning.
🖼️ Imagen Dream Visual Prompt:
A whimsical floating island in the sky with soft neon clouds, glowing lanterns, and a cozy childhood home perched at the center. The sky is vibrant magenta and orange like dragonfruit, and the entire scene sparkles with surreal, peaceful energy. Gentle mist surrounds the island with light shimmer effects.
📸 Photos
🔧 How It Works
DreamMix combines two powerful tools from Google AI Studio:
🧠 Gemini (text generation):
Writes a peaceful, imaginative dream narrative using themes from the user’s input.🖼️ Imagen (image generation):
Takes a visual scene description (also generated by Gemini) and renders it into dreamy art.
🧭 My Experience
This was one of the most enjoyable creative AI projects I've ever worked on. Here's what I discovered:
- 🧩 Gemini is incredibly flexible — It was able to merge even unrelated dream elements into poetic prose.
- 🎨 Imagen does well with surreal prompts when you focus on lighting, color palette, and composition.
- 💡 This challenge encouraged me to think about how AI can support mental health and mindfulness, not just productivity.
🎯 Why This Project Matters
DreamMix isn't just about AI for fun — it's about AI for peace.
In a noisy world, taking a moment to slow down and visualize a beautiful place — real or imagined — can help us fall asleep calmer, happier, and inspired.
🛠️ Tech Stack
👏 Shoutout
Thanks to Google, DEV, and the Google AI Studio team for providing this platform and challenge. The creative possibilities are limitless.
Sleep well, dreamer. 🌙✨
📦 Key Prompt Used in Gemini
plaintext
You are a creative AI that helps users design magical and surreal dream experiences before bedtime. The user provides a short set of imaginative or nostalgic elements they would like to see in their dream. Your role is to transform these elements into:
1. A soothing, poetic bedtime narrative (200–300 words), starting with “Tonight, you will dream of…”. This narrative should:
- Be calm and comforting
- Use vivid, whimsical metaphors
- Blend the elements into a cohesive story
- Inspire peaceful imagination before sleep
- End with a soft closing line like “Sleep well, dreamer.”
2. A visual dream scene description that will be sent to an image-generation model (Imagen). This visual should:
- Combine the user’s elements into a dreamlike setting
- Avoid realism; embrace surrealism, fantasy, and imagination
- Use atmospheric details like fog, stars, neon skies, levitating objects, glowing landscapes
- Mention composition, color palette, lighting, and mood
- Be around 3–5 sentences long
**Example Input:**
["floating island", "dragonfruit sky", "childhood home"]
**Output:**
---
💭 Let me know in the comments:
🌀 What would your dream look like if you could design it?