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()
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
Batch sample and generation:
import pollinations.ai as ai
batch: list = ai.sample_batch(size=5)
image_generator: ai.Image = ai.Image()
image_generator.generate_batch(prompts=batch, save=True) # OPTIONAL: path # OPTIONAL: naming = 'counter' | naming = 'prompt'
# image_generator.generate_batch(prompts=batch, save=True, path='somefolder', naming='promot')
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.2.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for pollinations.ai-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb246498f45c279e0b0a2965d065a46b333e02075f01498fb004bec48f507ef9 |
|
MD5 | 1829f63acc01831affe764c4cde34805 |
|
BLAKE2b-256 | 10ab71a9c39aa0613ca43033948d930c13183fcf04e5de4ff65230586025b05f |