Skip to content

appedme/sopimage

Repository files navigation

🎨 AI Image Generator - Unlimited Free AI Images

A beautiful, modern web application for generating unlimited AI images using multiple powerful models including GPT-Image-1 and DALL-E-3.

AI Image Generator Next.js TypeScript Tailwind CSS

✨ Features

πŸš€ Unlimited Generation

  • Free unlimited image generation - No limits, no watermarks
  • Dual AI models running simultaneously for comparison
  • Real-time generation progress with timer and status updates

πŸ€– AI Models

  • GPT-Image-1 (Model A) - Advanced image generation
  • DALL-E-3 (Model B) - High-quality artistic images
  • πŸ”₯ More models coming soon: Midjourney, Stable Diffusion, and more!

🎯 User Experience

  • Beautiful UI built with shadcn/ui components
  • Sample prompts organized by categories (Fantasy, Nature, Portrait, etc.)
  • Generation history with local storage
  • Download & share generated images
  • Responsive design for all devices

πŸ“± Smart Features

  • Prompt suggestions with curated examples
  • Category filtering for prompt discovery
  • Image comparison side-by-side
  • Progress tracking with realistic timing
  • Error handling with user-friendly messages

πŸ” Authentication Ready

  • StackAuth integration for user management
  • Guest mode for immediate access
  • Future premium features preparation

πŸ›  Tech Stack

  • Framework: Next.js 15 with App Router
  • Language: TypeScript
  • Styling: Tailwind CSS + shadcn/ui
  • Icons: Lucide React
  • Notifications: Sonner
  • State Management: React Hooks + Local Storage
  • Authentication: StackAuth (optional)

πŸš€ Quick Start

  1. Clone the repository

    git clone <repo-url>
    cd sopimg
  2. Install dependencies

    pnpm install
    # or
    npm install
  3. Run the development server

    pnpm dev
    # or
    npm run dev
  4. Open your browser

    http://localhost:3000
    

πŸ“ Project Structure

src/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ api/generate/          # API route for image generation
β”‚   β”œβ”€β”€ globals.css           # Global styles
β”‚   β”œβ”€β”€ layout.tsx           # Root layout
β”‚   └── page.tsx             # Main page
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ui/                  # shadcn/ui components
β”‚   β”œβ”€β”€ AuthPrompt.tsx       # Authentication prompt
β”‚   β”œβ”€β”€ GenerationTimer.tsx  # Progress timer
β”‚   β”œβ”€β”€ HistoryPanel.tsx     # Generation history
β”‚   β”œβ”€β”€ ImageCard.tsx        # Image display card
β”‚   └── PromptInput.tsx      # Prompt input form
β”œβ”€β”€ data/
β”‚   └── samplePrompts.ts     # Curated prompt examples
β”œβ”€β”€ hooks/
β”‚   β”œβ”€β”€ useImageGeneration.ts # Image generation logic
β”‚   └── useLocalStorage.ts   # Local storage utilities
└── types/
    └── index.ts             # TypeScript interfaces

🎨 Sample Prompts

The application includes curated prompts across multiple categories:

  • Fantasy: Dragons, magical forests, mythical creatures
  • Nature: Landscapes, sunsets, natural phenomena
  • Portrait: Character art, anime style, realistic portraits
  • Sci-Fi: Futuristic scenes, space exploration, cyberpunk
  • Abstract: Digital art, flowing patterns, geometric designs
  • Animals: Cute pets, wildlife, fantasy creatures

πŸ”§ API Usage

Generate Images Endpoint

GET /api/generate?prompt=your%20prompt%20here

Response:
{
  "prompt": "your prompt",
  "modelAImage": {
    "image": "https://...",
    "mimeType": "image/png"
  },
  "modelBImage": {
    "image": "https://...",
    "mimeType": "image/png"
  }
}

🎯 Features in Detail

Generation Timer

  • Real-time progress tracking
  • Realistic progress curve simulation
  • Status messages for different generation phases
  • Time elapsed counter

History Management

  • Automatic saving to local storage
  • Thumbnail previews
  • Quick prompt reuse
  • Download from history
  • Clear history option

Image Cards

  • High-quality image display
  • Model identification badges
  • Download functionality
  • Open in new tab
  • Responsive design

Authentication System

  • Optional StackAuth integration
  • Guest mode for immediate access
  • Future premium features support
  • Beautiful onboarding experience

πŸš€ Deployment

This application can be deployed on:

  • Vercel (recommended for Next.js)
  • Netlify
  • Railway
  • Any Node.js hosting platform

Environment Variables

For StackAuth integration (optional):

NEXT_PUBLIC_STACK_PROJECT_ID=your_stack_project_id

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

πŸ“„ License

This project is open source and available under the MIT License.

πŸ™ Acknowledgments

πŸ“ž Support

For support, please open an issue on GitHub or contact the development team.


Made with ❀️ by the AI Image Generator team

🎨 Unlimited AI Image Generation - Forever Free

Releases

No releases published

Packages

 
 
 

Contributors