Skip to content

selfsff/GPT4ALL-Free-GPT-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 

Repository files navigation

GPT4All

Free GPT-4 API access

We provide free access to the GPT-3.5-Turbo, GPT-4, GPT-4-Turbo and many other models. To familiarize yourself with the API usage please follow this link

Limits

When you sign up, you will have free access to 4 dollars per month. You can spend them when using GPT 4, GPT 3.5 and other models.

But the prices for the models will be much lower than OpenAI and Anthropic. In the future there may be changes in price and starting balance, follow the news in our telegram channel.

You can also buy tariffs, with which you will have access to limited models, as well as will be increased balance per month.

Rate Limits

Limit for /v1/chat/completions:

Free plan 8 requests per minute, 80 requests per day

Tier 1 60 requests per minute

Tier 2 120 requests per minute

Tier 3 ulimited requests

Limit for /v1/image/generations:

Free plan 5 requests per minute, 50 requests per day

Tier 1 45 requests per minute

Tier 2 100 requests per minute

Tier 3 unlimited requests

These limits are also subject to change

Plans

Tier 1 (5$/month) Tier 2 (8$/month) Tier 3 (12$/month)
Balance 35$/month Balance 80$/month Infinity balance
Access to premium models Access to premium models Access to premium models
Lower limits Lower limits Lower limits

Models

OpenAI

  • gpt-4-vision-preview from tier 1 (in future)
  • gpt-4-0125-preview from tier 1
  • gpt-4-1106-preview
  • gpt-4-32k
  • gpt-4
  • gpt-3.5-turbo-16k
  • gpt-3.5-turbo-0613
  • gpt-3.5-turbo-1106
  • gpt-3.5-turbo-0125
  • gpt-3.5-turbo
  • dall-e-3

Open Source

  • gemma-7b-it
  • mixtral-8x7b
  • llama3-70b
  • llama3-8b
  • wizardlm-2-8x22B

API Endpoint

Endpoint

https://api.gpt4-all.xyz/v1

Usage

Python

Chat Completions

from openai import OpenAI

client = OpenAI(api_key="YOUR_TOKEN", base_url="https://api.gpt4-all.xyz/v1")

response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "hi"}],
    stream=False,
)

print(response.choices[0].message.content)

Images Generations

from openai import OpenAI

client = OpenAI(api_key="YOUR_TOKEN", base_url="https://api.gpt4-all.xyz/v1")

response = client.images.generate(
    model="dall-e-3",
    prompt="cat",
)

print(response)

Link

Telegram Channel

Telegram bot

Docs