Gemini Realtime AI API is a fast, lightweight unofficial Google Gemini wrapper built on Flask.
It reverse-engineers Gemini's web interface to deliver real-time AI responses in clean JSON β zero API key required.
Perfect for Telegram bots, automation tools, Discord bots, web apps, and anything that needs AI responses instantly.
+ β‘ Ultra Fast Realtime AI Responses
+ π No API Key Required β Works Out of The Box
+ π€ Smart Gemini AI Integration via Web Scraping
+ π Clean & Structured JSON Output
+ π Lightweight Flask Backend β Low Resource Usage
+ π Rich Metadata β Response Time, Word Count, Timestamp
+ π» Perfect For Bots, Apps & Automation Tools
+ π Auto Session + Token Extraction Per Request
+ π‘οΈ Built-in Error Handling & Clean Error Responses
+ π Completely Free To Usehttps://mkworld.eu.org/api/ask?prompt=Hello,%20how%20are%20you
https://mkworld.eu.org
GET /api/ask| Parameter | Type | Required | Description |
|---|---|---|---|
prompt |
string |
β Yes | Your message or question for Gemini |
curl "https://mkworld.eu.org/api/ask?prompt=Tell%20me%20a%20joke"Or simply open in browser:
https://mkworld.eu.org/api/ask?prompt=Tell me a joke
{
"success": true,
"prompt": "Tell me a joke",
"response": "Why don't programmers like nature? Because it has too many bugs! π",
"metadata": {
"response_time": "2.31s",
"timestamp": "2026-05-02T12:00:00Z",
"model": "gemini",
"character_count": 68,
"word_count": 14
},
"api_dev": "@bizft"
}{
"success": false,
"error": "Missing required parameter: prompt",
"api_dev": "@bizft"
}| Build Command | pip install -r requirements.txt |
| Start Command | gunicorn app:app |
Add a vercel.json in root β supports instant serverless deployment.
{
"builds": [{ "src": "app.py", "use": "@vercel/python" }],
"routes": [{ "src": "/(.*)", "dest": "app.py" }]
}1. Clone
git clone https://github.com/mkhossainx/gemini-realtime-api.git
cd gemini-realtime-api2. Install
pip install -r requirements.txt3. Run
python app.py4. Test
http://127.0.0.1:5000/api/ask?prompt=Hellogemini-realtime-api/
β
βββ π app.py β Main Flask application
βββ π¦ requirements.txt β Python dependencies
βββ βοΈ Procfile β For Railway / Heroku
βββ π runtime.txt β Python version
βββ β² vercel.json β Vercel config
βββ π README.md β Documentation
| Technology | Role |
|---|---|
| Backend Logic | |
| API Framework | |
| HTTP Client | |
| HTML Parsing |
| Endpoint | Method | Description |
|---|---|---|
/ |
GET |
API info & usage |
/api/ask |
GET |
Ask Gemini AI |
This project is built for educational & research purposes only.
This is an unofficial implementation and is not affiliated with, endorsed by, or connected to Google in any way.
Use responsibly and at your own risk.