Skip to content

Mrmaker430/Gemini-Realtime-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


Typing SVG



Python Flask Status License Version Dev


πŸ”₯ The fastest unofficial Google Gemini API β€” no keys, no limits, just results.


🌟 About Project

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.


✨ Features

+ ⚑ 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 Use

🌍 Live API

https://mkworld.eu.org/api/ask?prompt=Hello,%20how%20are%20you

⚑ API Reference

Base URL

https://mkworld.eu.org

Endpoint

GET /api/ask

Parameters

Parameter Type Required Description
prompt string βœ… Yes Your message or question for Gemini

πŸ’  Example Request

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

πŸ“¦ Example Response

{
  "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"
}

Error Response

{
  "success": false,
  "error": "Missing required parameter: prompt",
  "api_dev": "@bizft"
}

πŸš€ Quick Deploy

🟣 Railway

Deploy on Railway


πŸ”΅ Render

Build Command pip install -r requirements.txt
Start Command gunicorn app:app

⚫ Vercel

Add a vercel.json in root β€” supports instant serverless deployment.

{
  "builds": [{ "src": "app.py", "use": "@vercel/python" }],
  "routes": [{ "src": "/(.*)", "dest": "app.py" }]
}

βš™οΈ Self Host

1. Clone

git clone https://github.com/mkhossainx/gemini-realtime-api.git
cd gemini-realtime-api

2. Install

pip install -r requirements.txt

3. Run

python app.py

4. Test

http://127.0.0.1:5000/api/ask?prompt=Hello

πŸ“ Project Structure

gemini-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

πŸ›  Tech Stack

Technology Role
Python Backend Logic
Flask API Framework
Requests HTTP Client
BeautifulSoup HTML Parsing

πŸ“Œ All Endpoints

Endpoint Method Description
/ GET API info & usage
/api/ask GET Ask Gemini AI

⚠️ Disclaimer

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.


πŸ‘¨β€πŸ’» Credits



πŸ’™ Developed By

bizft

πŸš€ Powered By

apift



⭐ Support The Project

If this helped you:

Star Fork Share


About

πŸš€ Ultra-fast unofficial Gemini Realtime AI API built with Flask. Get instant AI responses in clean JSON format with simple API integration for bots, apps, and developer projects. βš‘πŸ€–

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages