business2api  by XxxXTeam

AI API gateway with intelligent account management

Created 2 months ago
418 stars

Top 70.3% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Business2API provides a unified, OpenAI/Gemini-compatible API gateway service. It addresses the complexity of managing multiple LLM provider accounts and integrating advanced AI features by offering account pooling, automatic registration, and multimodal generation capabilities. This service benefits developers seeking a robust, scalable, and feature-rich proxy for LLM integrations.

How It Works

The system functions as a proxy, translating requests to OpenAI, Gemini, and Claude formats. Its core innovation lies in an intelligent account pool that automates account registration, refresh, and rotation, handling common errors like 401/403 responses. It supports streaming responses and integrates Flow APIs for native image and video generation. A proxy pool with health checks and telemetry monitoring further enhances reliability and observability. The architecture supports both local and distributed client-server deployments.

Quick Start & Requirements

Deployment is streamlined via Docker Compose or Docker Run. Alternatively, pre-compiled binaries or source compilation (requiring Go 1.24+) are available. Key dependencies include Docker for containerized deployment. Users can find example configurations and deployment scripts on the project's GitHub repository. A public demo is available at https://business2api.openel.top.

Highlighted Details

  • Multi-API Compatibility: Supports OpenAI (/v1/chat/completions), Gemini (/v1beta/models), and Claude (/v1/messages) API formats.
  • Intelligent Account Pool: Automates account registration, refresh, cooldown management, and handles 401/403 errors with automatic number switching.
  • Multimodal Generation: Native support for image and video generation via Flow integration, with models like Imagen and Veo.
  • Proxy Pool: Manages HTTP/SOCKS5 proxies with subscription links and health checks.
  • Telemetry & Hot Reload: Provides IP request statistics, token usage, RPM monitoring, and allows configuration hot-reloading without restarts.
  • Scalable Architecture: Supports a client-server separation for managing account pools across multiple nodes.

Maintenance & Community

No specific details regarding maintainers, community channels (e.g., Discord, Slack), or active development signals were present in the provided README content.

Licensing & Compatibility

The project is released under the MIT License. This permissive license generally allows for commercial use, modification, and distribution, including integration within closed-source applications.

Limitations & Caveats

The service does not support custom Function Calling or Tools; only built-in functionalities like image/video generation and search are available. Multi-turn conversations are simulated by concatenating messages, requiring clients to manage session state externally as the service is stateless.

Health Check
Last Commit

5 days ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
1
Star History
84 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.