A fun, educational game where users guess which prompt was used to generate an AI image. Test your understanding of how prompts affect image generation!
- 🎮 Interactive prompt guessing game
- 📊 Track accuracy and statistics
- 🎨 Beautiful, modern UI
- 📈 Score tracking
- 💰 Cost-effective - uses only fal.ai API
- Install dependencies:
npm install- Create a
.env.localfile with your API key:
MODEL_ACCESS_KEY=your_model_access_key
- Run the development server:
npm run dev- Open http://localhost:3000 in your browser.
- Click "Generate New Image" to create an AI-generated image
- Look at the image carefully
- Guess which prompt was used from the multiple choice options
- See if you're correct and track your accuracy
- Challenge yourself to understand how different prompts create different images
- Go to DigitalOcean Console
- Navigate to Gradient AI Platform
- Opt in to the public preview (takes 10-15 minutes for access)
- Get your Model Access Key from the Gradient AI Platform dashboard
- Use this key as
MODEL_ACCESS_KEYin your.env.local - Reference: DigitalOcean fal.ai blog post
- Game Mechanics: Generates an image with a random prompt, then shows 4 prompt options (1 correct + 3 decoys)
- Scoring System: Tracks your accuracy and correct guesses
- Statistics Dashboard: Visual representation of your performance
- Local Storage: Your progress is saved in your browser
- Next.js 14 - React framework with App Router
- TypeScript - Type-safe development
- Tailwind CSS - Modern styling
- Local Storage - Client-side data persistence
- fal.ai - Image generation via DigitalOcean Gradient AI Platform