v3.0.0

Image Generation Service & Advanced Model Capabilities

Sree
SreeAuthor

This update introduces a comprehensive image generation service while enhancing platform capabilities with performance metrics, expanded provider integrations, and improved configuration management for better reliability and user experience.

New Features

4
  • Image Generation API: Introduced /v1/images/generations endpoint for AI image creation with support for multiple providers and models.
  • Image Serving System: Added /v1/images/serve/{image_id} endpoint to securely serve cached images with public URL generation.
  • Performance Metrics: Enhanced /v1/models API with performance_metrics including latency, uptime, and throughput data.
  • Cost Tracking: Implemented cost tracking for image generation with price_per_image attribute for accurate billing.

Image Service Architecture

3
  • Redis Caching: Implemented Redis caching for generated images with configurable TTL to enhance performance and reduce redundant generation.
  • Secure Serving: High-performance, secure URL serving system for cached images with proper access controls.
  • Provider Integration: Integrated image generation capabilities across multiple providers with consistent API interface.

Platform Enhancements

4
  • Middleware Refactoring: Refactored authentication and rate limiting middleware for improved logic flow and reliability.
  • Modular Rate Limiting: Modularized rate limiting components into organized and maintainable structure.
  • API Key Standardization: Updated standard API key prefix to ddc-a4f- for better branding and consistency.
  • Model Blacklisting: Implemented model_blacklist functionality for granular control over model access per API key.

Provider Updates

3
  • Provider 1: Enhanced image generation support with improved model configurations and availability.
  • Provider 3: Expanded image capabilities with new models and improved response handling.
  • Provider 4: Integrated new image generation provider with comprehensive model support.

Performance Improvements

3
  • Backend Data Handling: Enhanced robustness of JSON field parsing from database to gracefully handle different data formats.
  • Improved Logging: Enhanced logging and data handling in user operations, validation middleware, and image generation handlers.
  • Plan Configuration: Updated API configurations with increased Requests Per Day (RPD) limits for paid plans (Basic: 300→500, Pro: 500→600).

Model Catalog Expansion

3
  • Expanded Availability: Updated models.json files across multiple providers to expand model availability for different subscription tiers.
  • Enhanced Features: Added support for new model capabilities including advanced image generation parameters.
  • System Fingerprint: Chat completion responses now include system_fingerprint field where available from providers.

Infrastructure Stability

2
  • Database Operations: Improved database operation reliability with better error handling and recovery mechanisms.
  • Request Validation: Enhanced request validation across all endpoints for improved platform stability.