pollinations.ai | Image Generation
Project description
pollinations.ai - Image Generation
This is not the official pollinations.ai (https://pollinations.ai/)
This is a WRAPPER designed for easy text-image generation.
Installing
# Linux/macOS
python3 -m pip install -U pollinations.ai
# Windows
py -3 -m pip install -U pollinations.ai
Simple Examples
import pollinations.ai as ai
prompt: str = 'A cat with a top hat and a mustache.'
prompt_sample: str = ai.sample()
prompt_sample_batch: list = ai.sample_batch(size=10)
image_generator: ai.Image = ai.Image(save_file='pollinations.ai.jpg') # OPTIONAL: takes save_file parameter
image_generator.generate(prompt)
image_generator.save() # OPTIONAL: takes save_file parameter
Links
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
pollinations.ai-0.1.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for pollinations.ai-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b82b8e62296bd050d7a13f14e9bb1dbecb22f9724f84004d4228227d00a957a |
|
MD5 | 0210e748fb9ca4d6f920b50ad08fa2a5 |
|
BLAKE2b-256 | 4c069438cdd10b86ffa600b48022ef11376b92bd8b12f6f83350993a9049157c |