AI Image Studio
AI Image Studio is a cutting-edge image generation and editing platform that harnesses the full power of Azure AI services. Built and maintained by Microsoft MVPs and AI Community Experts, this professional-grade solution delivers state-of-the-art AI capabilities through an intuitive, modern interface. Whether you're creating stunning visuals, editing professional content, or building automated image workflows, AI Image Studio provides the tools and performance you need to transform your creative vision into reality.

A community-built image editing and generation platform that leverages Azure AI services
π Table of Contents
- π Overview
- β¨ Features
- ποΈ Architecture
- π Quick Start
- βοΈ Configuration
- π¨ Usage
- π Project Structure
- πΊοΈ What's Coming Next
- π Documentation
- π€ Contributing
- π₯ Contributors
- π Support
- π License
- π¨βπ» Author
- π Acknowledgments
π Overview
AI Image Studio is a community-developed, production-ready platform that integrates with Azure AI services to provide professional-grade image generation and editing capabilities. This independent project is built with modern web technologies and offers both a simple generation interface and a full-featured studio environment for advanced image manipulation.
Note: This is not an official Microsoft or Azure product, but rather a community project that utilizes Azure's AI services.
β Production Status: AI Image Studio is currently production-ready (v1.0.3) with comprehensive features implemented and documented. The platform is stable and ready for professional use. Please see our Development Roadmap for current status and planned features.
β¨ Features
π¨ Professional AI Image Studio
- Advanced Canvas: Full-featured image editing workspace with multiple tools
- Layer Management: Professional layer-based editing system with Fabric.js
- Asset Library: Built-in asset management and organization with IndexedDB
- History Panel: Complete generation and editing history tracking
- Real-time Console: Detailed API request/response logging
- Tool System: Comprehensive set of AI-powered editing and generation tools
- Powerful AI Tools: AI-powered image generation, editing, inpainting, outpainting, and more
- Asset Store: Enjoy millions of high-quality stockimages, graphics, and design elements
- Azure AI: Enjoy the full power of Azure AI services with multiple models and features
π₯οΈ Command-Line Interface
- CLI Tool: Powerful command-line interface for automation and scripting
- Batch Processing: Generate multiple images from files or scripts
- Asset Management: Organize, export, and clean up generated images
- Project Management: Create, export, and import projects with templates and metadata
- Development Tools: Start servers, test endpoints, and manage configurations
- CI/CD Ready: Perfect for automated workflows and deployment pipelines
π€ AI Model Support
- DALL-E 3: High-quality image generation with precise instruction following
- FLUX 1.1 Pro: Advanced image generation with superior quality
- FLUX 1 Kontext Pro: Context-aware image generation and editing
- GPT-Image-1: Latest model with enhanced capabilities including image editing and inpainting (requires approval)
- Florence 2.0: Microsoft's vision-language model for advanced image understanding
- Extended AI Models: Add / Remove AI models with ease with integrated Azure AI services
π οΈ Advanced Capabilities
- Text-to-Image: Generate images from natural language descriptions
- Image Editing: Modify existing images with AI-powered tools
- Inpainting/Outpainting: Fill or extend image areas intelligently
- Image-to-Image: Transform images based on text prompts
- Background Removal: AI-powered background removal and replacement
- Batch Generation: Create multiple images simultaneously
- Quality Control: Multiple quality levels and output formats
π― User Experience
- Modern UI: Beautiful, responsive interface built with Radix UI
- Dark/Light Theme: Seamless theme switching
- Smooth Animations: Framer Motion powered interactions
- Mobile Responsive: Optimized for all device sizes
- Real-time Progress: Live generation progress tracking
- Keyboard Shortcuts: Professional keyboard shortcuts for all tools
- Easy to use UI: Intuitive UIs including settings interface for seamless configuration
ποΈ Architecture
Frontend Stack
- Next.js 15.5.2 - React framework with App Router
- React 19.1.0 - Latest React with concurrent features
- TypeScript 5.0 - Type-safe development
- Tailwind CSS 4.0 - Utility-first styling
- Radix UI - Accessible component primitives
- Framer Motion - Smooth animations and transitions
- Fabric.js - Advanced canvas manipulation
Backend Integration
- Azure OpenAI Service - AI model integration
- Azure AI Foundry - FLUX model integration
- RESTful API - Clean API architecture
- Configuration Management - Flexible model and endpoint configuration
- Error Handling - Comprehensive error management
π Quick Start
Prerequisites
- Node.js 18+
- Azure subscription with AI services access
- Azure OpenAI Service account (for DALL-E 3 and GPT-Image-1)
- Azure AI Foundry access (for FLUX models)
Installation
Note: For production deployments, please use the stable branch which contains the latest stable release, The main branch may contain experimental features and should be used for development and testing only.
-
Clone the repository
git clone https://github.com/DrHazemAli/image-studio.git cd image-studio -
Install dependencies
npm install -
Configure Azure services
- Set up your Azure API key in
.env.local - Configure endpoints in
src/app/config/azure-config.json - Set up model deployments in
src/app/config/azure-models.json
- Set up your Azure API key in
-
Run the development server
npm run dev -
Open your browser Navigate to http://localhost:3000
CLI Tool (Optional)
The project includes a powerful CLI tool for command-line image generation and automation:
-
Install CLI dependencies
npm run cli:install -
Build the CLI
npm run cli:build -
Use the CLI
# Initialize configuration npm run cli -- config init # Generate images npm run cli -- generate --prompt "a beautiful sunset" # Create a project npm run cli -- project create --name "My Project" # List available models npm run cli -- models list
For detailed CLI documentation, see CLI README.
Project Management Features
The CLI includes powerful project management capabilities:
- Project Templates: Pre-configured templates for social media, product photography, art collections, and more
- Export/Import: Portable project formats (ZIP/TAR) for sharing and backup
- Asset Organization: Automatic organization of generated images by project
- Metadata Tracking: Complete generation history and settings for each project
- Collaboration: Share projects with team members or clients
βοΈ Configuration
Azure Configuration
The platform uses a flexible configuration system located in src/app/config/:
azure-config.json: Main configuration for endpoints and deploymentsazure-models.json: Detailed model specifications and capabilities
Environment Variables
# Azure API Key (used for all models)
AZURE_API_KEY=your_azure_api_key_here
# This is optional, The backend routes will replace the <env.AZURE_API_BASE_URL> with the actual url with this value
AZURE_API_BASE_URL=your_azure_api_base_url_here
βοΈ Configuration Details: Each model requires its own endpoint configuration. See the Settings Guide for complete setup instructions.
π¨ Usage
Simple Generation
- Visit the home page
- Enter your image prompt
- Select model and parameters
- Click "Generate"
Professional Studio
- Click "Launch AI Image Studio"
- Use the toolbar to select tools
- Generate or import images
- Edit using the advanced canvas
- Save and export your work
π Detailed Usage: Check out our comprehensive Features Guide for detailed instructions on all features and workflows.
π Project Structure
image-studio/
βββ src/ # Next.js Application
β βββ app/ # Next.js App Router
β β βββ api/ # API routes
β β βββ config/ # Configuration files
β β βββ studio/ # Studio page
β β βββ globals.css # Global styles
β βββ components/ # React components
β β βββ studio/ # Studio-specific components
β β β βββ canvas/ # Canvas components
β β β βββ tools/ # Tool components
β β β βββ panels/ # Panel components
β β βββ ui/ # Reusable UI components
β βββ hooks/ # Custom React hooks
β βββ lib/ # Utility libraries
β βββ types/ # TypeScript type definitions
βββ cli/ # Command-Line Interface
β βββ src/ # CLI source code
β β βββ commands/ # CLI commands
β β βββ lib/ # CLI utilities
β β βββ types/ # CLI type definitions
β βββ docs/ # CLI documentation
β βββ package.json # CLI dependencies
βββ wiki/ # Comprehensive documentation (MDX format)
β βββ quick-start-guide.mdx # Setup and configuration guide
β βββ settings-guide.mdx # Comprehensive configuration reference
β βββ features-guide.mdx # Detailed usage instructions
β βββ api-documentation.mdx # Technical API reference
β βββ technical-architecture.mdx # System design overview
β βββ installation-guide.mdx # Installation instructions
β βββ azure-deployment-guide.mdx # Deployment guide
β βββ cli-guide.mdx # CLI guide
β βββ troubleshooting-guide.mdx # Common issues and solutions
βββ docs/ # Legacy documentation and redirects
βββ README.md # Documentation redirect
βββ legacy/ # Historical documentation
βββ contributing.md # Contribution guide
βββ roadmap.md # Development roadmap
βββ [other legacy docs] # Additional historical documentation
πΊοΈ What's Coming Next
We're actively developing exciting new features:
- Advanced Canvas Features - Enhanced editing tools and professional capabilities
- Enhanced AI Features - Style transfer, image upscaling, and advanced AI processing
- Performance Optimization - Improved caching, memory management, and database optimization
Future Plans:
- Project Sharing - Share projects with team members, clients, and the community
- Cloud Storage with Azure - Seamless cloud-based asset management and cross-device access
- User Authentication - User accounts and collaboration features
For detailed information about our development timeline and planned features, see our Development Roadmap.
π Need detailed setup instructions? Check out our comprehensive Quick Start Guide
π Documentation
π Documentation Location: All documentation has been moved to the wiki/ directory for better organization and maintenance.
User Documentation
- π Quick Start Guide - Complete setup and configuration guide
- βοΈ Settings Guide - Comprehensive configuration reference
- π Features Guide - Detailed usage instructions for all features
- π¨ AI Image Guide - AI generation workflows and best practices
- π οΈ Tools Reference - Complete tools reference and usage guide
- πͺ Asset Store Guide - Asset management and organization
Developer Documentation
- π§ Development Guide - Development setup and architecture
- π‘ API Documentation - Technical reference and examples
- ποΈ Technical Architecture - System design and technical details
- π Installation Guide - Detailed installation instructions
- βοΈ Azure Deployment Guide - Production deployment instructions
- π Security Guide - Security best practices and guidelines
- β‘ Performance Guide - Performance optimization and monitoring
Command-Line Interface
- π₯οΈ CLI Guide - Comprehensive CLI guide
- π CLI User Guide - CLI usage instructions
- π§ CLI API Documentation - CLI technical reference
Azure & Models
- π§ Azure Setup Guide - Azure service configuration
- π€ Adding Models Guide - Model configuration and management
- π Project Management Guide - Project organization and workflows
Community & Development
- π€ Contributing Guide - How to contribute to the project
- πΊοΈ Development Roadmap - Current status and planned features
- π§ͺ Code Coverage & Testing - Testing strategy and quality metrics
- π§ Troubleshooting Guide - Common issues and solutions
π€ Contributing
This is a community-driven project! We welcome contributions from developers of all skill levels. This project is not affiliated with Microsoft or Azure, but rather is an independent community effort that integrates with Azure AI services.
How to Contribute
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Development Guidelines
- Follow TypeScript best practices
- Use meaningful commit messages
- Add tests for new features
- Update documentation as needed
π₯ Contributors
π Support
- π Bug Reports: GitHub Issues
- π‘ Feature Requests: GitHub Discussions
- π§ Contact: GitHub Profile
- π Documentation: Wiki
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π¨βπ» Author
Hazem Ali - Microsoft MVP
- GitHub: @DrHazemAli
- LinkedIn: Hazem Ali
π Acknowledgments
- Microsoft Azure AI Services - For providing the AI infrastructure (this project is not affiliated with Microsoft)
- OpenAI - For the powerful AI models available through Azure
- Black Forest Labs - For the FLUX models
- Next.js team - For the amazing framework
- Radix UI - For accessible components
- The open-source community - For inspiration and contributions
β If you find this project helpful, please give it a star! It helps us grow and improve.
Made with β€οΈ by Hazem Ali and the community