freeGPT

freeGPT

freeGPT provides free access to text and image generation models.

Stars: 361

Visit
 screenshot

freeGPT provides free access to text and image generation models. It supports various models, including gpt3, gpt4, alpaca_7b, falcon_40b, prodia, and pollinations. The tool offers both asynchronous and non-asynchronous interfaces for text completion and image generation. It also features an interactive Discord bot that provides access to all the models in the repository. The tool is easy to use and can be integrated into various applications.

README:

PyPI Downloads Status

freeGPT

freeGPT provides free access to text and image generation models.

Getting Started:

python -m pip install -U freeGPT

Join my Discord server for live chat, support, or if you have any issues with this package.

Sources:

Model Website
gpt3 chat9.yqcloud.top
gpt4 you.com
alpaca_7b chatllama.baseten.co
falcon_40b gpt-gm.h2o.ai
prodia prodia.com
pollinations pollinations.ai

Support this repository:

DiscordWidget

Discord bot:

  • This bot has all the models in this repository available.
  • It's interactive, overall fast, and easy to use.
  • And lastly, it's open-sourced.

Examples:

Text Completion:

Async:

from freeGPT import AsyncClient
from asyncio import run


async def main():
    while True:
        prompt = input("👦: ")
        try:
            resp = await AsyncClient.create_completion("MODEL", prompt)
            print(f"🤖: {resp}")
        except Exception as e:
            print(f"🤖: {e}")


run(main())

Non-Async:

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:

Async:

from freeGPT import AsyncClient
from PIL import Image
from io import BytesIO
from asyncio import run


async def main():
    while True:
        prompt = input("👦: ")
        try:
            resp = await AsyncClient.create_generation("MODEL", prompt)
            Image.open(BytesIO(resp)).show()
            print(f"🤖: Image shown.")
        except Exception as e:
            print(f"🤖: {e}")


run(main())

Non-Async:

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

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for freeGPT

Similar Open Source Tools

For similar tasks

For similar jobs