Turn a browser LLM session into a local API endpoint.
WebAI-to-API is a FastAPI-based web server for exposing browser-based LLM access, especially Gemini, through local API routes for research and personal experiments.
It helps you plug web-chat access into API-style workflows by wrapping Gemini sessions, provider routing, and response normalization behind endpoints your tools can call.
Key features:
• OpenAI-compatible chat route – POST to /v1/chat/completions with messages, system prompts, conversation history, and optional streaming
• Gemini web interface bridge – connects through browser cookies and exposes Gemini as an API endpoint
• Multiple operating modes – includes the primary WebAI server, an Atlas Cloud provider option, and a gpt4free fallback server
• Extra utility endpoints – adds /gemini, /gemini-chat, /translate, /v1/models, and Google Generative AI v1beta-style routes
• Modular FastAPI architecture – separates routing, provider logic, config loading, streaming utilities, and atomic config persistence
It’s open-source (MIT license).
Link in the reply 👇