freeGPTFix
  • Welcome
  • Getting Started
    • Quickstart
  • Client
    • gpt3
    • gpt3.5
    • gpt4
    • gpt4o
    • gemini
    • prodia
    • pollinations
  • Lib
    • models
    • proxy
    • helper
    • room
      • ConnectRoles
      • ConnectModel
  • roles
    • roles
    • Undertale
      • SANS
      • PAPYRUS
      • GASTER
      • ALPHIS
    • HXH
      • GON
      • KILLUA
      • MERUEM
      • NETERO
    • KimetsuNoYaiba
      • RENGOKU
    • Other
      • FRIEND
      • HISTORIAN
      • PSYCHIATRIST
  • Change Log
    • Versions
      • 1.3.0
      • 1.2.0
  • Reference
    • Helpers
    • Contacts
Powered by GitBook
On this page
  1. Client

pollinations

PreviousprodiaNextmodels

Last updated 10 months ago

Pollinations - Also generates images like Prodia, but Pollinations is more of an acquired taste. However, it all depends on the quality of the prompt!

Example
from freeGPTFix import Client
from PIL import Image
from io import BytesIO

while True:
    prompt = input("> ")
    try:
        resp = Client.create_generation("pollinations", prompt)
        Image.open(BytesIO(resp)).show()
        print(f"🤖: Image shown.")
    except Exception as e:
        print(f"🤖: {e}")
Pollinations
def create(self, prompt):
	try:
		return get(
			url=f"https://image.pollinations.ai/prompt/{prompt}{randint(1, 10000)}",
			timeout=30,
		).content
	except RequestException as exc:
		raise RequestException("Unable to fetch the response.") from exc
Example 1
Example 2
Example 3
Example 4