foxhui/WebAI2API
WebAI2API: 基于 Camoufox 的网页 AI 转 API 工具,支持 LMArena/Gemini等,多窗口并发与账号隔离。 | Web AI to OpenAI API via Camoufox. Supports LMArena/Gemini and more, multi-window concurrency & account isolation.
What it solves
WebAI2API converts web-based AI services (which typically only have a chat interface) into a standardized API. This allows users to integrate various AI platforms—such as LMArena, Gemini, ChatGPT, and DeepSeek—into their own applications or tools without needing an official API key for every service.
How it works
The tool uses Camoufox (a specialized Playwright-based browser) to simulate human interactions, including typing and mouse movements, to bypass bot detection. It manages browser instances to handle multiple accounts and provides an OpenAI-compatible API endpoint. It includes a task queue, load balancing, and a visual management interface (WebUI) with VNC support for manual account login and verification.
Who it’s for
Developers and power users who want to programmatically access web-based AI interfaces or consolidate multiple AI services into a single, standardized API format.
Highlights
- OpenAI Compatibility: Provides standard endpoints for text and multimodal requests, supporting streaming responses.
- Human-like Interaction: Employs feature masking and simulated behavior to evade automation detection.
- Concurrency & Isolation: Supports multiple browser windows and independent proxy configurations for account-level data isolation.
- Broad Support: Works with a wide range of platforms including LMArena, Gemini, ChatGPT, DeepSeek, and Doubao.
- Visual Management: Includes a WebUI for real-time logs, adapter management, and VNC connection for manual setup.