🌸 Beautiful and simple AI generation library for images, text, and audio
Project description
🌸 Blossom AI
A beautiful Python SDK for Pollinations.AI - Generate images, text, and audio with AI.
Blossom AI is a comprehensive, easy-to-use Python library that provides unified access to Pollinations.AI's powerful AI generation services. Create stunning images, generate text with various models, and convert text to speech with multiple voices - all through a beautifully designed, intuitive API.
✨ Features
- 🖼️ Image Generation - Create stunning images from text descriptions
- 🔗 Image URL Generation - Get direct links without downloading (v0.2.5!)
- 📝 Text Generation - Generate text with various AI models
- 🌊 Streaming - Real-time text generation with timeout protection
- 🎙️ Audio Generation - Text-to-speech with multiple voices
- 🚀 Unified API - Same code works in sync and async contexts
- 🧹 Clean - Proper resource management and automatic cleanup
🚀 Quick Start
📦 Installation
pip install eclips-blossom-ai
⚡ Basic Usage
from blossom_ai import Blossom
with Blossom() as ai:
# Generate image URL (Fast & Free!)
url = ai.image.generate_url("a beautiful sunset")
print(url)
# Save image directly to a file
ai.image.save("a serene lake at dawn", "lake.jpg")
# Get raw image bytes for custom processing
image_bytes = ai.image.generate("a robot painting a portrait")
# Now you can upload, display, or manipulate image_bytes as needed
# Generate text
response = ai.text.generate("Explain quantum computing")
print(response)
# Stream text
for chunk in ai.text.generate("Tell me a story", stream=True):
print(chunk, end='', flush=True)
📚 Documentation
- Documentation Index - Start here for complete guide
- Installation & Setup
- Image Generation Guide
- Text Generation Guide
- Audio Generation Guide
- Examples - Practical code examples
- Resource Management & Best Practices
- Discord Bot Tutorial
- Telegram Bot Tutorial
- Error Handling
- API Reference
- Changelog
🤝 Contributing
Contributions welcome!
📄 License
MIT License - see LICENSE
Made with 🌸 by Eclips Team
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
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 eclips_blossom_ai-0.3.0.tar.gz.
File metadata
- Download URL: eclips_blossom_ai-0.3.0.tar.gz
- Upload date:
- Size: 58.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eda34150d3c84602767f65f06a3703e61cbd6038c2604ccd8d756aed77fd083d
|
|
| MD5 |
0100b0290bb13a029e084ecc0f115337
|
|
| BLAKE2b-256 |
0db3463107a5e9d368858bcc22c5b216d772901427c85aa1037e41b4a965dbb8
|
File details
Details for the file eclips_blossom_ai-0.3.0-py3-none-any.whl.
File metadata
- Download URL: eclips_blossom_ai-0.3.0-py3-none-any.whl
- Upload date:
- Size: 55.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79ae464346aa4beba85a88a5a277c36088a572835d6041e5668b3c8a41ab76bc
|
|
| MD5 |
aa11db04e0ce121dc474c47f1240e654
|
|
| BLAKE2b-256 |
8495e9d09c8eed220a8d28b7a7e6d58a43c0a27dfea7f4df7160a6c98e5e2b5f
|