API Reference
MaasUnion AI Model API documentation
Overview
MaasUnion provides a set of RESTful APIs that are fully compatible with the OpenAI API format. You can use these interfaces to invoke various AI capabilities.
Online Debugging
Visit the Apifox Playground to test and debug API interfaces online, or browse the API documentation below.
New Channel Types
To integrate the latest generation of multimodal models, the gateway has added dedicated channel types and dedicated routes that keep the request/response format consistent with the official API and isolate routing by channel type:
Kling Gateway Overview
Kling channel onboarding: authentication, channel types, path mapping, task ID mapping, and quick start.
Kling Omni Video
Dedicated route for Kling OmniVideo (O1 / V3). Supports text/image/video/subject multimodal inputs, multi-shot, sound effects, and instruction-based transforms.
Kling Omni Image
Dedicated route for Kling OmniImage. Supports subject reference, image series, and 1K/2K/4K.
Doubao Video (Seedance)
Dedicated Volcano Engine Ark Seedance video channel. Supports the 1.0/1.5/2.0 family, including multimodal reference, audio video, and draft mode.
Doubao Image (Seedream)
Dedicated Volcano Engine Ark Seedream image channel. Supports text-to-image, series, streaming output, and web search.
AI Model APIs
AI Model APIs provide access to various AI capabilities and are compatible with the OpenAI API format.
Video
AI video generation interface. Supports native OpenAI-compatible, Kling (including Omni), Sora, Jimeng, Doubao Seedance, and more.
Images
AI image generation interface. Supports native OpenAI, Tongyi Qianwen, Gemini, Kling Omni, Doubao Seedream, and more.
Chat
Conversation completion interface.
Completions
Traditional text completion interface.
Model List
Retrieve a list of available models.
Embeddings
Text embedding vector generation interface.
Rerank
Document reranking interface.
Moderations
Content safety moderation interface. The content safety moderation interface is one of the compliance tools and does not replace the deployer's own safety governance obligations and upstream content policy requirements. Public-facing services should establish abuse reporting, log auditing, and handling mechanisms.
Audio
Speech recognition and speech synthesis interfaces.
Real-time Speech
Real-time audio streaming interface.
Unimplemented
Placeholder interface, not yet implemented.
How is this guide?