A comprehensive AI image platform powered by Google's Gemini AI
Project description
Gemini All-for-One
A comprehensive AI image platform powered by Google's Gemini AI. Provides image generation, analysis, editing, and multimodal chat capabilities.
Features
- High-Quality Image Generation: Text-to-image generation with multiple artistic styles and aspect ratios
- Advanced Image Analysis: Intelligent image understanding and detailed descriptions
- AI-Powered Image Editing: Edit images while preserving the same object using text prompts
- Multimodal Chat: Conversations with text and image support using Gemini AI
- Free Image Generation: Alternative image generation via Pollinations.ai (no API key required)
- Serverless Ready: Base64 I/O implementation perfect for serverless deployments
Quick Start
from gemini_all_for_one import ImageGenerator, ImageAnalyzer, ImageEditor, GeminiChatClient
# Generate images
generator = ImageGenerator()
result = generator.generate_image("A beautiful sunset over mountains")
image_data = result['image_base64']
# Analyze images
analyzer = ImageAnalyzer()
analysis = analyzer.analyze_image(image_bytes)
# Edit images (preserves same object)
editor = ImageEditor()
edited = editor.edit_image(image_bytes, "add sunglasses")
# Multimodal chat
chat = GeminiChatClient()
response = chat.send_message("What's in this image?", image=image_bytes)
Requirements
- Python 3.8+
- Google Gemini API key (get one at https://aistudio.google.com/app/apikey)
- Set
GEMINI_API_KEYenvironment variable
Installation
pip install gemini-all-for-one
License
MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gemini_all_for_one-1.0.0.tar.gz
(35.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gemini_all_for_one-1.0.0.tar.gz.
File metadata
- Download URL: gemini_all_for_one-1.0.0.tar.gz
- Upload date:
- Size: 35.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
191f86938fa13e0a1547c09bdcff0c1c15d3c9c23a8a11f566b1cda3ac28cfe7
|
|
| MD5 |
1782f5ee23720c5fdab520536bf4258b
|
|
| BLAKE2b-256 |
0c5663ebe7cb02dac3b8828d7f4191cde7976bacb2069d2ad3c97c7e4da1ebd5
|
File details
Details for the file gemini_all_for_one-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gemini_all_for_one-1.0.0-py3-none-any.whl
- Upload date:
- Size: 41.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc218cbc6ecd363aec1270cf13d55bd62ca922ab1fa2becbacbf882006dda1c9
|
|
| MD5 |
124f4b061ad3256b5e4849b4b0feb58d
|
|
| BLAKE2b-256 |
62f57fc27b587dfc26f69d04f8ca25a4b2a0bb87b84c5fc551617548f00bc1c9
|