- Comprehensive test script for all API endpoints
- Tests health check, API info, and validation
- Easy way to verify server functionality
- Includes JSON formatting with jq
- Consistent code formatting across the entire codebase
- Double quotes for strings, semicolons, and proper indentation
- Improved readability and code consistency
- Complete Express.js server with TypeScript, ESLint, and Prettier
- REST API for AI-powered image generation using Gemini Flash Image model
- File upload support for reference images (up to 3 files, 5MB each)
- Comprehensive error handling and validation middleware
- Health check and API info endpoints
- Professional development tools configuration
- Environment-based configuration with .env support
- Graceful server shutdown and logging
- Ready for production deployment
Endpoints:
- GET /health - Server health check
- GET /api/info - API information and limits
- POST /api/generate - Generate images from text prompts with optional reference images
Features:
- TypeScript for type safety
- ESLint for code quality
- Prettier for code formatting
- Multer for file uploads
- CORS support
- Request validation
- Error handling
- Logging