A modern, multilingual AI image generation application that creates stunning images from text prompts in any language. Built with Next.js, TypeScript, and Together AI.
- 🌐 Multilingual Support: Accepts prompts in any language and automatically translates them to English
- 🎨 High-Quality Image Generation: Uses FLUX.1-schnell-Free model for fast and quality image generation
- 🎯 Smart Prompt Enhancement: AI-powered prompt enhancement for better image results
- 📱 Responsive Design: Beautiful UI that works on all devices
- 🌙 Dark Mode Support: Built-in dark mode for comfortable viewing
- 🔄 Real-time Updates: Live preview of image dimensions
- 📊 Modern UI Components: Built with Redux UI for a polished look
- 🔒 Secure API Handling: Environment-based API key management
- Framework: Next.js 14 with App Router
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: Redux UI
- AI Services: Together AI
- State Management: React Hooks
- Image Processing: Base64 encoding/decoding
- Clone the repository:
git clone https://github.com/code3-dev/dogai.git
cd dogai
- Install dependencies:
npm install
# or
yarn install
# or
pnpm install
- Create a
.env.local
or.env
file in the root directory:
TOGETHER_API_KEY=your_api_key_here
NEXT_PUBLIC_APP_URL=http://localhost:3000
- Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
- Open http://localhost:3000 in your browser.
The easiest way to deploy Dog AI is using the Vercel Platform.
TOGETHER_API_KEY
: Your Together AI API key (required)NEXT_PUBLIC_APP_URL
: Your application's public URL (required, default: http://localhost:3000)
- Default Resolution: 1024x768
- Min Resolution: 256x256
- Max Resolution: 1440x1440
- Step Size: 16 pixels (for optimal model performance)
- Enter your prompt in any language
- (Optional) Click the wand icon to enhance your prompt
- Adjust image dimensions using the sliders
- Click "Generate" to create your image
- View and download the generated image
- Header: Navigation and theme toggle with Redux UI components
- Prompt Input: Multilingual text input with enhancement using Redux UI
- Dimension Sliders: Real-time size adjustment with Redux UI controls
- Image Card: Display and download generated images with Redux UI card component
- Loading Animation: Visual feedback during generation
- Mobile Navigation: Responsive bottom navigation with Redux UI
The application supports input in any language and automatically translates to English for optimal image generation. Special support for:
- English
- Farsi
- Spanish
- French
- German
- And many more...
- API keys are stored securely in environment variables
- No client-side exposure of sensitive data
- Rate limiting and error handling
- Secure image processing
- Mobile-first approach
- Adaptive layouts
- Touch-friendly controls
- Optimized for all screen sizes
- Fast image generation
- Optimized API calls
- Efficient state management
- Smooth animations
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Together AI for providing the image generation API
- Next.js team for the amazing framework
- All contributors and users of the project
For support, please:
- Open an issue in the GitHub repository
- Contact via email: h3dev.pira@gmail.com
- Reach out on Telegram: @h3dev
- Follow us on Instagram: @h3dev.pira
Made with ❤️ by Hossein Pira