{"repo":"nestchao/ai-studio-bridge","free":true,"listed":false,"github":"https://github.com/nestchao/ai-studio-bridge","clone":"git clone https://github.com/nestchao/ai-studio-bridge.git","description":"An unofficial, thread-safe Python wrapper for Google AI Studio. Automate Gemini prompting, file extraction, and model management using Playwright. Turn the web UI into a programmable, free API.","language":"Python","stars":12,"topics":["api-wrapper","api-wrappers","automation","browser-automation","free-api","gemini","gemini-ai","gemini-api","google-ai-studio","google-ai-studio-scraper"],"license":"MIT","category":"workflow-automation","readme_excerpt":"AI Studio Bridge An unofficial, thread-safe Python bridge for automating Google AI Studio using Playwright. This library turns the Google AI Studio web interface into a programmable API. It is designed for developers who want to interact with Gemini models, extract text from files, and manage conversation flow programmatically. Features Thread-Safe: Uses a dedicated worker thread with a command queue, making it perfect for integration into web backends (FastAPI, Flask) or larger applications. Browser Stealth: Configured with stealth arguments to prevent common bot-detection triggers. File Handling: Automatically handles file uploads, progress bars, and verbatim text extraction. Control: Switch between Gemini models, set \"Thinking\" levels (High/Low), and retrieve responses as either Plain Text or Markdown. Optimized: Blocks heavy media/assets for faster loading and includes CSS optimizations to disable animations. --- Installation 1. Requirements Ensure you have Python installed. Then, install the required packages: 2. Browser Binaries Playwright requires the browser engines to be installed separately: --- The \"First Run\" Experience (Crucial) This library uses Persistent Contexts . 1. The first time you run your code, it will open a browser window and navigate to the AI Studio URL. 2. You must manually log in to your Google account within that browser window. 3. The library will save your cookies and session state in a folder named chrome stealth profile . 4. On every subseque","default_branch":null,"files":null,"tree":[],"storefront":"/r/nestchao","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nestchao/ai-studio-bridge/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}