API Reference
TokenStream Complete API Documentation
Overview
TokenStream provides a complete set of RESTful API interfaces, categorized into two main types: 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 calls for various AI capabilities, compatible with the OpenAI API format.
Model List
Get a list of available models.
Chat
Conversation completion API.
Completions
Traditional text completion API.
Embeddings
Text embedding vector generation API.
Rerank
Document reranking API.
Moderations
Content safety moderation API.
Audio
Speech recognition and speech synthesis API.
Real-time Audio
Real-time audio streaming API.
Images
AI image generation API.
Videos
AI video generation API.
Unimplemented
Placeholder API, 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 API.
System Settings
System configuration management API.
User Authentication
User login, registration, password management, and other APIs.
User Management
User information management API.
Two-Factor Authentication
2FA Two-Factor Authentication API.
OAuth
Third-party OAuth login API.
Channel Management
API channel configuration management API.
Model Management
Model configuration management API.
Token Management
API token management API.
Redemption Codes
Redemption code management API.
Payment
Payment and top-up API.
Logs
Usage log query API.
Statistics
Data statistics API.
Tasks
Asynchronous task management API.
Groups
User group management API.
Vendors
Vendor management API.
Security Verification
Security verification related APIs.
How is this guide?