API Reference
Lamafa Complete API Documentation
Overview
Lamafa 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.
Online Debugging
You can visit the Apifox Playground to test and debug API interfaces online, or browse the API documentation below.
AI Model APIs
AI Model APIs provide access to various AI capabilities and are compatible with the OpenAI API format.
Model List
Retrieve a list of available models.
Chat
Conversation completion interface.
Completions
Traditional text completion interface.
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.
Images
AI image generation interface.
Video
AI video generation interface.
Unimplemented
Placeholder interface, not yet implemented.
Management APIs
Management APIs are used for backend operations such as system configuration, user management, and business management.
System
System information and status interface.
System Settings
System configuration management interface.
User Authentication
User login, registration, password management, and other interfaces.
User Management
User information management interface.
Two-Factor Authentication
2FA Two-Factor Authentication interface.
OAuth
Third-party OAuth login interface.
Channel Management
API channel configuration management interface.
Model Management
Model configuration management interface.
Token Management
API token management interface.
Redemption Codes
Redemption code management interface.
Payment
Payment and top-up interfaces.
Logs
Usage log query interface.
Statistics
Data statistics interface.
Tasks
Asynchronous task management interface.
Groups
User group management interface.
Vendors
Vendor management interface.
Security Verification
Security verification related interfaces.
How is this guide?