๐ธ 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 - beautifully simple.
๐ Quick Start โข ๐ Documentation โข ๐ก Examples โข ๐ Changelog
โจ Features
|
๐ผ๏ธ Image Generation
|
๐ Text Generation
|
๐๏ธ Audio Generation
|
|
๐ Unified API
|
๐งน Clean Code
|
โก Fast & Reliable
|
๐ 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)
๐ Why Blossom AI?
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ Unified API for image, text, and audio generation โ
โ โ Both sync and async support out of the box โ
โ โ Clean, modern Python with type hints โ
โ โ Active development and community support โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Documentation
| Resource | Description |
|---|---|
| ๐ Getting Started | Complete guide to using Blossom AI |
| โ๏ธ Installation | Setup and configuration instructions |
| ๐ก Examples | Practical code examples and use cases |
| ๐ V2 API Guide | Migrate to V2 API with new features |
| ๐ Changelog | Version history and updates |
๐ Showcase
๐จ Image Generation Examples
# Generate artistic images
ai.image.save("a cyberpunk city at night", "cyberpunk.jpg")
ai.image.save("watercolor painting of mountains", "mountains.jpg")
๐ฌ Text Generation Examples
# Creative writing
story = ai.text.generate("Write a short sci-fi story")
# Code generation
code = ai.text.generate("Create a Python function to sort a list")
๐ Audio Generation Examples
# Text-to-speech
ai.audio.save("Hello, world!", "greeting.mp3")
๐ค Contributing
Contributions are what make the open-source community amazing! Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
๐ License
Distributed under the MIT License. See LICENSE for more information.
๐ Support
If you find this project helpful, please consider:
- โญ Starring the repository
- ๐ Reporting bugs
- ๐ก Suggesting new features
- ๐ข Sharing with others
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.4.4.tar.gz.
File metadata
- Download URL: eclips_blossom_ai-0.4.4.tar.gz
- Upload date:
- Size: 119.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae8358c4a47f9ff165aba41e83ebdeb51578b116e981b9185b3df56c18d966e6
|
|
| MD5 |
b73ddbe8e62216ba2a37eac0869ad711
|
|
| BLAKE2b-256 |
92e97368e6fa149c220506cb57cbd13dec314ff56f572dde1cce39474d16da58
|
File details
Details for the file eclips_blossom_ai-0.4.4-py3-none-any.whl.
File metadata
- Download URL: eclips_blossom_ai-0.4.4-py3-none-any.whl
- Upload date:
- Size: 124.0 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 |
8d5a0c6a6398eb516f4932fca70320fdc3099946702529ef3f31fb95daa80885
|
|
| MD5 |
99858775071038b5b7e169e7b6ed9a97
|
|
| BLAKE2b-256 |
7ad71ca04753341fbd8c3a9c5c25b1456a15f97d922c74d2a8b482c696ca9241
|