uni-api-web is the web interface for uni-api, providing a user-friendly UI to manage and configure uni-api. Through uni-api-web, you can easily manage configurations for multiple AI model providers, including API key management and model access settings.
-
Visual Configuration Management
- Manage uni-api configuration through web interface
- Real-time YAML configuration preview and editing
- Import/export configuration files
-
Multi-provider Management
- Support all providers supported by uni-api
- OpenAI, Anthropic, Gemini, Vertex AI, etc.
- API key and model configuration management
-
Advanced Settings
- Load balancing strategy configuration
- Timeout and retry mechanism settings
- Proxy configuration
- Model alias settings
-
User-friendly Design
- Responsive layout for mobile devices
- Dark theme
- Multi-language support
# Install Wrangler CLI
npm install -g wrangler
# Login to Cloudflare
wrangler login
# Deploy to Cloudflare Pages
wrangler pages deploy . --project-name uni-api-web --branch main
- Fork this repository
- Enable GitHub Pages in repository settings
- Select deployment branch and directory
- Clone the repository:
git clone https://github.com/yym68686/uni-api-web.git
cd uni-api-web
- Start local server:
python3 -m http.server 8001
- Visit
http://127.0.0.1:8001
uni-api-web generates YAML configuration files required by uni-api through its visual interface. Main configuration items include:
- Provider name and API keys
- Base URL configuration
- Model configuration and aliases
- Load balancing strategies
- Timeout and retry settings
- Proxy configuration
- Permission control
For detailed configuration instructions, please refer to uni-api documentation.
uni-api-web/
├── index.html # Main page
├── styles.css # Style definitions
├── src/
│ ├── main.js # Main program logic
│ ├── services/ # Service layer
│ └── components/ # UI components
├── README.md # English documentation
└── README_CN.md # Chinese documentation
- Modify
index.html
to add new UI elements - Add styles in
styles.css
- Implement functionality in JavaScript files
Pull Requests and Issues are welcome!
- Fork this repository
- Create your feature branch
- Submit your changes
- Create Pull Request
This project is licensed under the MIT License
- Project Issues
- Telegram Group: uni_api
Thank you for using uni-api-web!