Home
Softono
No data found
image-studio

image-studio

Open source MIT TypeScript
29
Stars
6
Forks
0
Issues
2
Watchers
8 months
Last Commit

About image-studio

AI Image Studio is a powerful platform that leverages Azure AI services to provide professional-grade image generation and editing capabilities. Built with modern web technologies, it offers both a simple generation interface and a full-featured studio environment for advanced image manipulation.

Platforms

Web Self-hosted

Languages

TypeScript

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.

AI Image Studio

AI Image Studio Next.js TypeScript React

Version Community Project Microsoft MVP Code Coverage Last Updated

GitHub stars GitHub forks GitHub issues GitHub pull requests

A community-built image editing and generation platform that leverages Azure AI services

Deploy to Azure

πŸ“‹ Table of Contents

πŸš€ 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.

  1. Clone the repository

    git clone https://github.com/DrHazemAli/image-studio.git
    cd image-studio
  2. Install dependencies

    npm install
  3. 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
  4. Run the development server

    npm run dev
  5. 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:

  1. Install CLI dependencies

    npm run cli:install
  2. Build the CLI

    npm run cli:build
  3. 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 deployments
  • azure-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

  1. Visit the home page
  2. Enter your image prompt
  3. Select model and parameters
  4. Click "Generate"

Professional Studio

  1. Click "Launch AI Image Studio"
  2. Use the toolbar to select tools
  3. Generate or import images
  4. Edit using the advanced canvas
  5. 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:

  1. Advanced Canvas Features - Enhanced editing tools and professional capabilities
  2. Enhanced AI Features - Style transfer, image upscaling, and advanced AI processing
  3. 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

Developer Documentation

Command-Line Interface

Azure & Models

Community & Development

🀝 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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow TypeScript best practices
  • Use meaningful commit messages
  • Add tests for new features
  • Update documentation as needed

πŸ‘₯ Contributors

Thank you to all our amazing contributors! πŸŽ‰

πŸ“ž Support

πŸ“„ License

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

πŸ‘¨β€πŸ’» Author

Hazem Ali - Microsoft MVP

πŸ™ 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.

Star this repo

Made with ❀️ by Hazem Ali and the community