API Documentation
Complete CoffeeRouter API documentation
Overview
CoffeeRouter provides a complete set of RESTful API interfaces, categorized into AI Model APIs and Management APIs. You can use these interfaces to invoke AI capabilities and perform system management functions.
AI Model APIs
AI Model APIs provide access to various AI capabilities and are compatible with the OpenAI API format.
Model ListRetrieve a list of available models.ChatConversation completion APIs that support multi-turn conversations, streaming output, function calling, and more.ImagesAI image generation and editing APIs.EmbeddingsConvert text into vector embeddings for semantic search and RAG scenarios.VideoAI video generation APIs.
Management APIs
Management APIs are used for backend operations such as system configuration, user management, and business management.
Authentication System (Auth)Understand the security levels and authentication request header requirements for management APIs.Token Management (Tokens)Create, edit, allocate quota for, and delete API keys through APIs.Log Query (Logs)Retrieve historical billing records, streaming statistics, and self-service log queries.User Management (User)Query the current user's basic configuration and quota attributes.