Ruu3f / freeGPT

freeGPT provides free access to text and image generation models.
GNU General Public License v3.0
457 stars 55 forks source link
ai artificial-intelligence chatgpt deep-learning freegpt gpt gpt4all gpt4free llama llm machine-learning nlp python

PyPI Downloads Status

freeGPT

freeGPT provides free access to text and image generation models.

There is also an official Discord bot.

Getting Started:

python -m pip install -U freeGPT

Sources:

Model Website
gpt3 chat9.yqcloud.top
gpt4 you.com
gpt3_5 vitalentum.net
prodia prodia.com
pollinations pollinations.ai

Support this repository:

Examples:

Text Completion:

from freeGPT import Client

while True:
    prompt = input("πŸ‘¦: ")
    try:
        resp = Client.create_completion("MODEL", prompt)
        print(f"πŸ€–: {resp}")
    except Exception as e:
        print(f"πŸ€–: {e}")

Image Generation:

from freeGPT import Client
from PIL import Image
from io import BytesIO

while True:
    prompt = input("πŸ‘¦: ")
    try:
        resp = Client.create_generation("MODEL", prompt)
        Image.open(BytesIO(resp)).show()
        print(f"πŸ€–: Image shown.")
    except Exception as e:
        print(f"πŸ€–: {e}")

Star History Chart:

Star History Chart