DEV Community

Cover image for Google AI Studio Mythical Pet Forge
Dan
Dan

Posted on

Google AI Studio Mythical Pet Forge

Education Track: Build Apps with Google AI Studio

🌟 Your App Idea: Mythical Pet Creator — Evolved Edition
Let’s refine it into something unique, memorable, and fun to build.

šŸ‰ Refined Concept: ā€œMythicPet Forge — Adopt a Creature From Another Realmā€
Users describe a personality or magical theme (ā€œgentle healer spirit,ā€ ā€œchaotic storm tricksterā€), and the app generates:

A fully illustrated creature portrait (Imagen)

A detailed creature profile (Gemini), including:

Name

Species

Magical abilities

Habitat

Personality traits

Care instructions (fun twist!)

This makes the app feel like a mix of:

a fantasy generator

a pet adoption portal

a world‑building tool

It’s playful, visual, and perfect for the Imagen + Gemini workflow.

✨ Custom Prompt for Google AI Studio (Paste This Into ā€œBuildā€)
Code
Please create a TypeScript React web application called ā€œMythicPet Forge.ā€ The app should allow a user to enter a magical theme or personality description, send that input to Gemini to generate a detailed creature profile (including name, species, abilities, habitat, personality traits, and care instructions), and then use that profile as the prompt for the Imagen API to generate a creature portrait.

The UI should include:

  • A text input box for the user’s idea
  • A ā€œForge My Petā€ button
  • A loading state for both text and image generation
  • A results section showing the generated image and the creature profile in a clean layout

Use modern React, TypeScript, and the latest Google AI SDKs. Organize the project with components, services, and TypeScript types.
This prompt is specific, structured, and aligned with the Build system’s expectations.

🧩 UI & Workflow Plan
User Flow
User enters a magical theme
→ ā€œA mischievous ember spirit who loves shiny objects.ā€

Gemini expands it into a full creature profile
→ Name: Flickerling
→ Species: Ember Wisp
→ Abilities: Heat shimmer illusions, spark‑jump teleportation
→ Habitat: Lava caverns
→ Care Tips: Keep away from dry parchment

Imagen uses the profile to generate the portrait.

The app displays:

The creature image

The full profile

A ā€œForge Anotherā€ button

UI Layout
Top Section
App title: MythicPet Forge

Subtitle: ā€œAdopt a creature from another realm.ā€

Input Section
Text box

ā€œForge My Petā€ button

Optional style dropdown (fantasy, watercolor, pixel art)

Loading State
Animated ā€œSummoning your creatureā€¦ā€ message

Results Section
Left: Imagen‑generated creature portrait

Right: Gemini‑generated profile in a card layout

Footer
ā€œPowered by Gemini + Imagenā€

šŸ… Part 3 Submission (Ready to Use)
Here’s a polished write‑up you can paste into DEV when you submit your project.

šŸ“ My Submission for the Google AI Studio Builder Badge

  1. Prompt Used Code Please create a TypeScript React web application called ā€œMythicPet Forge.ā€ The app should allow a user to enter a magical theme or personality description, send that input to Gemini to generate a detailed creature profile (including name, species, abilities, habitat, personality traits, and care instructions), and then use that profile as the prompt for the Imagen API to generate a creature portrait.

The UI should include:

  • A text input box for the user’s idea
  • A ā€œForge My Petā€ button
  • A loading state for both text and image generation
  • A results section showing the generated image and the creature profile in a clean layout

Use modern React, TypeScript, and the latest Google AI SDKs. Organize the project with components, services, and TypeScript types.

  1. Link to My Deployed Application
    (Add your Cloud Run URL here once deployed.)

  2. Screenshots / Demo
    (Insert screenshots of your input screen, loading state, and generated creature.)

  3. What I Built
    I created MythicPet Forge, an AI‑powered app that generates a unique mythical creature based on a user’s idea. Gemini creates a detailed creature profile, and Imagen generates the creature’s portrait. The result feels like adopting a magical pet from another realm.

  4. What I Learned
    How to use natural‑language prompts to generate full applications in Google AI Studio

How Gemini and Imagen work together in a multi‑step workflow

How to explore and understand the generated TypeScript + React code

How to deploy an app to Cloud Run with secure backend API keys

How to iterate on prompts to refine app behavior

  1. Reflections This workflow completely changed how I think about app development. Instead of starting from scratch, I start with an idea and collaborate with AI to build the structure. Next, I’d like to add:

creature history / lore generation

downloadable adoption certificates

a gallery of previously forged pets.

https://codepen.io/editor/Dancodepen-io/pen/019d20e1-5eac-7ab3-8db3-13e4a04e8c06

Top comments (0)