Skip to content

PhotoAI lets you turn your words into beautiful images with the help of AI. Just type what you imagine, and watch it come to life in a few seconds.

Notifications You must be signed in to change notification settings

AyushShivhare79/PhotoAI

Repository files navigation

PhotoAI

PhotoAI is a modern web application that leverages AI technology to generate images based on text prompts. Built with Next.js and integrated with OpenAI's image generation capabilities, PhotoAI provides an intuitive interface for creating AI-generated artwork.

Features

  • AI Image Generation: Transform text prompts into high-quality images using advanced AI models
  • User Authentication: Secure login system powered by NextAuth.js
  • Image History: View and manage your previously generated images
  • Cloud Storage: All generated images are stored securely using ImageKit
  • Responsive Design: Seamless experience across desktop and mobile devices

Tech Stack

Frontend

Backend

Getting Started

Prerequisites

  • Node.js (v18 or later recommended)
  • pnpm
  • Database (compatible with Prisma)

Installation

  1. Clone the repository
git clone https://github.com/yourusername/PhotoAI.git
cd PhotoAI
  1. Install dependencies
pnpm install
  1. Set up environment variables
# Copy the example environment variables file
cp .env.example .env

# Then edit .env with your actual configuration values
  1. Initialize the database
pnpm prisma db push
  1. Start the development server
pnpm dev
  1. Open http://localhost:3000 in your browser

Usage

  1. Sign in to your account
  2. Navigate to the Create page
  3. Enter a detailed text prompt describing the image you want to generate
  4. Click "Generate" and wait for the AI to create your image
  5. View, download, or share your generated images

Project Structure

app/                 # Next.js application routes
  api/               # API routes for authentication, generation, etc.
  create/            # Image creation page
components/          # Reusable UI components
lib/                 # Utility functions and configuration
prisma/              # Database schema and client
public/              # Static assets

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • OpenAI for providing the image generation technology
  • Next.js team for the amazing framework
  • ImageKit for image storage solutions

About

PhotoAI lets you turn your words into beautiful images with the help of AI. Just type what you imagine, and watch it come to life in a few seconds.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages