Discover and explore top open-source AI tools and projects—updated daily.
cita-777AI API proxy aggregation and intelligent routing gateway
Top 21.9% on SourcePulse
Metapi addresses the complexity of managing multiple AI API gateways (like New API, One API, etc.) by aggregating them into a single, unified gateway. It targets developers and users who leverage various AI services, offering a simplified API key management, automatic model discovery, intelligent cost-optimized routing, and enhanced availability through a meta-aggregation layer.
How It Works
Metapi functions as a meta-aggregation layer, providing a unified proxy gateway compatible with OpenAI and Claude API formats. It automatically discovers available models across configured upstream platforms, creating a unified model list. Its core is an intelligent routing engine that dynamically selects the optimal upstream API based on a weighted combination of real-time cost, account balance, and usage metrics. The system also incorporates automatic failover and retry mechanisms to ensure request resilience.
Quick Start & Requirements
docker run -d --name metapi -p 4000:4000 \
-e AUTH_TOKEN=your-admin-token \
-e PROXY_TOKEN=your-proxy-sk-token \
-v ./data:/app/data --restart unless-stopped \
1467078763/metapi:latest
AUTH_TOKEN and PROXY_TOKEN environment variables must be changed from their default values.Highlighted Details
Maintenance & Community
The project is built by the "AI community" and provides contribution guidelines (CONTRIBUTING.md), a code of conduct (CODE_OF_CONDUCT.md), and security reporting procedures (SECURITY.md). Specific community channels like Discord or Slack are not explicitly mentioned.
Licensing & Compatibility
Metapi is released under the MIT License, permitting commercial use and integration into closed-source projects. It is designed for self-hosting with all data stored locally in an SQLite database, ensuring no third-party data transmission.
Limitations & Caveats
As a self-hosted solution, users are responsible for managing server uptime, resource allocation, and security. The system relies on the stability and availability of the configured upstream API providers. Detailed performance benchmarks or known bugs are not explicitly listed in the README.
1 day ago
Inactive
Portkey-AI