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.
๐ GitHub Repository
๐ธ 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?
Top comments (0)