Amm1rr/WebAI-to-API
Webchat to API
What it solves
WebAI-to-API allows users to access browser-based AI services (like Google Gemini) as if they were standard API endpoints. It solves the problem of using AI web interfaces that lack official, accessible APIs by wrapping them in an OpenAI-compatible API layer.
How it works
The project uses a combination of browser-native automation (via Playwright) and WebAPI-based provider integrations. It routes requests from an OpenAI-compatible /v1/chat/completions endpoint to the underlying browser-based AI service. It handles authentication via browser login workflows or manual cookie injection, ensuring the session remains active for the AI service.
Who it’s for
Developers who want to integrate browser-based AI models into their own applications or tools without needing a official API key, or those who want to integrate multiple AI providers (including Atlas Cloud) through a single, unified API interface.
Highlights
- OpenAI-Compatible API: Provides a standard
/v1/chat/completionsendpoint for easy integration with existing AI tools. - Multi-Provider Support: Supports Gemini (via WebAPI or Playwright) and Atlas Cloud.
- Browser Automation: Includes a built-in login helper (
verify_login.py) to manage Google sessions. - Integrated Dashboard: Features a visual UI for monitoring runtime status, managing authentication, and testing requests.
- Streaming Support: Supports Server-Sent Events (SSE) for streaming responses.
- File Support: Allows file attachments via the Gemini WebAPI backend.
Related
- Project
- Project
- Project
- Project
- Project