Hermex lets you call ChatGPT and Gemini from Python without API keys or billing. It drives a real browser session — log in once, then run queries with file attachments straight from your scripts.
from hermex import ChatGPT
ChatGPT.simple_query(
"What does this receipt say?",
attachments=["receipt.jpg"]
)
Hermex is a Python library that automates ChatGPT and Gemini through browser automation, with no API keys or billing required. Use it to run queries, attach files for OCR or analysis, generate images, and pull text out of screenshots — all from a Python script, without paying for API access.
Under the hood, Hermex runs a real Chrome instance and simulates user input. Responses come back as Python objects with text and image fields, so you can use them directly in your script:
from hermex import ChatGPT
response = ChatGPT.simple_query(
"What does this receipt say?",
attachments=["receipt.jpg"]
)
print(response.text)
Key Features:
- No API Keys or Billing Required: Use ChatGPT and Gemini without paying for API access.
- Persistent Browser Sessions: Hermex reuses a Chrome profile, so you log in once and stay logged in across runs.
- File Uploads: Attach images, PDFs, and other files directly to your queries.
- Simple Query Function: Run a query in a single function call:
response = Gemini.simple_query("What is the capital of France?")
print(response.text)
Supported File Types:
Hermex supports common attachment formats including .jpg, .png, .pdf and more.
Considerations:
- Designed for Hobbyists and Research: This library is best suited for scripting and experimentation rather than production use due to its reliance on the web UI.
- Adapts to UI Changes: Users should be aware that the library may need adjustments whenever the interfaces of ChatGPT or Gemini undergo significant changes.
- Respect Platform Terms: Automated interactions must comply with each platform's Terms of Service — use Hermex responsibly.
Documentation:
For setup, methods, and additional examples, see the Hermex Documentation.
No comments yet.
Sign in to be the first to comment.