muapiclient abstraction layer with unified api for multi-provider model access
Provides a MuapiClient class that abstracts all communication with the Muapi backend, exposing unified methods for image generation (generateImage), video generation (generateVideo), lip-sync (generateLipSync), and job polling (pollJobStatus). The client handles request formatting, response parsing, error handling, and retry logic. It supports multiple model families (Flux, DALL-E, Midjourney, Kling, Sora, etc.) through a single interface, eliminating the need for model-specific API clients. All requests include the x-api-key header from localStorage for BYOK authentication.
Unique: Abstracts all Muapi backend communication behind a unified client interface (MuapiClient) that exposes generation methods for images, videos, and lip-sync without exposing model-specific API details. This abstraction layer enables seamless switching between models and providers without changing application code.
vs alternatives: More flexible than model-specific SDKs (OpenAI, Anthropic) because it supports multiple providers through a single interface; more maintainable than direct API calls because error handling and request formatting are centralized.