A modern web application that generates high-quality images using OpenAI's DALL-E 3 API. Built with Next.js 14, TypeScript, and Tailwind CSS.
- Multiple Image Generation: Generates 4 unique variations for each prompt
- Customizable Image Settings:
- Size options (1024x1024, 1792x1024, 1024x1792)
- Quality settings (standard/HD)
- Style options (vivid/natural)
- Smart Preset System:
- Art styles (Synthwave, Anime, Photorealistic, Digital Art, etc.)
- Quality presets
- Lighting options
- Perspective choices
- Modern UI/UX:
- Responsive design
- Real-time loading states
- Error handling
- Image preview
- Frontend:
- Next.js 14
- TypeScript
- Tailwind CSS
- React Hooks
- Backend:
- Next.js API Routes
- OpenAI API (DALL-E 3)
- Development:
- ESLint
- Prettier
- PostCSS
- Node.js 18+ installed
- OpenAI API key
- Clone the repository:
git clone https://github.com/christopherpturney/ai-image-generator.git
cd ai-image-generator- Install dependencies:
npm install- Create a
.env.localfile in the root directory:
OPENAI_API_KEY=your_openai_api_key_here- Start the development server:
npm run dev- Open http://localhost:3000 in your browser
- Enter your image prompt in the text field
- (Optional) Select presets to enhance your prompt:
- Choose an art style
- Select quality preset
- Pick lighting option
- Choose perspective
- Click "Generate Images"
- View and download your generated images
- API keys are securely stored in environment variables
- All API calls are made server-side
- No sensitive data is exposed to the client
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with OpenAI's DALL-E 3
- Inspired by the creative AI community
