Skip to main content

๐ŸŒธ Beautiful and simple AI generation library for images, text, and audio

Project description

๐ŸŒธ Blossom AI

A beautiful Python SDK for Pollinations.AI

Python 3.9+ License: MIT Version

Downloads Stars

Generate images, text, and audio with AI - beautifully simple.

๐Ÿš€ Quick Start โ€ข ๐Ÿ“š Documentation โ€ข ๐Ÿ’ก Examples โ€ข ๐Ÿ“ Changelog


โœจ Features

๐Ÿ–ผ๏ธ Image Generation

  • Create stunning images from text
  • Direct URL generation (no downloads!)
  • Save to file or get raw bytes

๐Ÿ“ Text Generation

  • Multiple AI models support
  • Real-time streaming
  • Timeout protection

๐ŸŽ™๏ธ Audio Generation

  • Text-to-speech conversion
  • Multiple voice options
  • High-quality output

๐Ÿš€ Unified API

  • Sync & async support
  • Consistent interface
  • Easy to learn

๐Ÿงน Clean Code

  • Proper resource management
  • Automatic cleanup
  • Type hints included

โšก Fast & Reliable

  • Optimized performance
  • Error handling
  • Production-ready

๐Ÿš€ 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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. 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

Made with ๐ŸŒธ and โค๏ธ by Eclips Team

Made with Python Powered by Pollinations.AI

โฌ† Back to top

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.4.tar.gz (119.9 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.4-py3-none-any.whl (124.0 kB view details)

Uploaded Python 3

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

Hashes for eclips_blossom_ai-0.4.4.tar.gz
Algorithm Hash digest
SHA256 ae8358c4a47f9ff165aba41e83ebdeb51578b116e981b9185b3df56c18d966e6
MD5 b73ddbe8e62216ba2a37eac0869ad711
BLAKE2b-256 92e97368e6fa149c220506cb57cbd13dec314ff56f572dde1cce39474d16da58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eclips_blossom_ai-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8d5a0c6a6398eb516f4932fca70320fdc3099946702529ef3f31fb95daa80885
MD5 99858775071038b5b7e169e7b6ed9a97
BLAKE2b-256 7ad71ca04753341fbd8c3a9c5c25b1456a15f97d922c74d2a8b482c696ca9241

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