Skip to main content

🌸 Beautiful and simple AI generation library for images, text, and audio

Project description

🌸 Blossom AI

Python 3.9+ License: MIT Version

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

🤝 Contributing

Contributions welcome!

📄 License

MIT License - see LICENSE


Made with 🌸 by Eclips Team

:D

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eclips_blossom_ai-0.4.2.tar.gz (107.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eclips_blossom_ai-0.4.2-py3-none-any.whl (112.8 kB view details)

Uploaded Python 3

File details

Details for the file eclips_blossom_ai-0.4.2.tar.gz.

File metadata

  • Download URL: eclips_blossom_ai-0.4.2.tar.gz
  • Upload date:
  • Size: 107.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for eclips_blossom_ai-0.4.2.tar.gz
Algorithm Hash digest
SHA256 e23ddf15a0bca0eb9580b32db9fbf463ee8cf890de3bb166a318a0e212f13fac
MD5 3adae3d0bb4300343c4ee718d25b3421
BLAKE2b-256 78f8db8922a5f40c32d64d3c427a8a8d71ac85c4ff5cd4581011b6529796e63d

See more details on using hashes here.

File details

Details for the file eclips_blossom_ai-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for eclips_blossom_ai-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb4b0ebe4ff1a0dc017a7da1f4ff1f81ab5afbf46d0ac7abb0dafd6076a9a633
MD5 0ba4d4d83743e2c99ebc292f5b9b523d
BLAKE2b-256 96cba664bddbf95d12070d2816618016ff8c1de7a5c24985c6cc4942b8d321f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page