Status: [UNTESTED] Endpoints found: http://localhost:4000/v1/images/generations http://localhost:4000/v1/videos/generations http://localhost:4000/v1/models http://localhost:4000/v1/stats http://localhost:4000/v1/logs?page=1&per_page=50 Source: https://github.com/visgotti/litegen ๐ŸŒ **[litegen.ai](https://litegen.ai)** ยท ๐Ÿ“– **Docs, SDKs & API reference โ†’ [visgotti.github.io/litegen](https://visgotti.github.io/litegen/)** # LiteGen > The universal proxy for AI image and video generation. Like LiteLLM, but for multimedia. LiteGen provides a unified API gateway for all major image and video generation providers. Route requests across OpenAI DALL-E, Stability AI, Replicate, Google Imagen, Fal.ai, Runway, Luma, and more โ€” with automatic fallback, weighted load balancing, caching, cost tracking, and a real-time dashboard. ## Features - **Unified API** โ€” OpenAI-compatible REST endpoints for image & video generation - **10+ Providers** โ€” OpenAI, Stability, Replicate, Google, Fal, Runway, Luma (more coming) - **Smart Routing** โ€” Fallback chains, weighted round-robin, lowest-cost, lowest-latency - **Caching** โ€” In-memory cache with configurable TTL to avoid duplicate generations - **Cost Tracking** โ€” Per-request cost estimation and aggregate spend analytics - **API Key Management** โ€” Create/revoke keys, weighted key pools for rate limit distribution - **Observability** โ€” Request logging, Prometheus metrics, structured tracing - **React Dashboard** โ€” Real-time monitoring, provider health, request logs, cost charts - **Easy Config** โ€” YAML config + env vars, auto-discovers provider keys - **Self-Hosted** โ€” Single binary + Docker, SQLite or Postgres ## What's new in v0.2 - **Capability registry with per-model schemas** โ€” YAML-driven model declarations define allowed parameters, sizes, aspect ratios, and reference-image roles; unknown params are rejected (strict mode) or silently dropped (lax mode). - **`reference_images` tagged-union** โ€” Send reference images as URLs, base64 blobs, or multipart file uploads using `{type: "url"|"base64"|"blob", value: "..."}`. - **Strict validation with per-request lax opt-out** โ€” Default `strict: true` rejects unsupported parameters; set `strict: false` to drop unknowns and get