WebAI2API
WebAI2API: 基于 Camoufox 的网页 AI 转 API 工具,支持 LMArena/Gemini等,多窗口并发与账号隔离。 | Web AI to OpenAI API via Camoufox. Supports LMArena/Gemini and m
What is WebAI2API?
WebAI2API: 基于 Camoufox 的网页 AI 转 API 工具,支持 LMArena/Gemini等,多窗口并发与账号隔离。 | Web AI to OpenAI API via Camoufox. Supports LMArena/Gemini and more, multi-window concurrency & account isolation.
Overview of WebAI2API
What it is
WebAI2API is an open-source tool that converts web-based AI services into an OpenAI-compatible API. It uses Camoufox (Playwright) to simulate human interactions with websites such as LMArena and Gemini. The tool supports multi-window concurrency, account isolation through browser instance separation, and provides a web-based management interface. It runs on Node.js (v20.0.0+) and can be deployed manually or via Docker on Windows, Linux, or macOS systems.
Key features
- Human-like interaction: Simulates human typing and mouse movements to avoid automation detection.
- API compatibility: Provides an interface matching the OpenAI format, supporting streaming responses and keep-alive heartbeats.
- Concurrent isolation: Allows multiple browser windows to run concurrently, each with its own proxy and browser instance for per-account data isolation.
- Stability protections: Includes built-in task queue, load balancing, failover, and error retry mechanisms.
- Web management interface: Offers a visual management page with real-time logs, VNC connection, and adapter management.
Use cases
This tool is designed for scenarios where users want to programmatically access web-based AI services that do not provide official APIs. It can be used to automate interactions with supported websites like LMArena, Gemini, ChatGPT, DeepSeek, and others for text generation, image generation, or video generation tasks. The multi-account isolation makes it suitable for managing multiple accounts or profiles simultaneously.
Getting started
See the repository README for detailed deployment instructions. The project supports manual deployment with Node.js and Docker deployment. Quick-start commands from the README include:bash# Manual deploymentpnpm installnpm run initnpm start``````bash# Docker deploymentdocker run -d --name webai-2api -p 3000:3000 -v $(pwd)/data:/app/data --shm-size=2gb foxhui/webai-2api:latest
License and pricing
The project is licensed under MIT. It is an open-source tool with no stated pricing. The README also contains a disclaimer stating that it is for educational purposes only and that the authors assume no responsibility for any consequences of its use.
Based on the project's public README and repository metadata.