Use ChatGPT, Google Bard & Meta Lllama 2 for free without api key

 This post is for learning purpose only


What are Large Language Models

Large language models (LLMs) are a type of artificial intelligence (AI) that are trained on massive datasets of text and code. This allows them to generate text, translate languages, write different kinds of creative content, and answer your questions in an informative way.

LLMs are still under development, but they have the potential to revolutionize the way we interact with computers. For example, they could be used to create more natural and engaging user interfaces, or to generate more creative and informative content.

However, it is important to note that LLMs are not without their risks. For example, they could be used to generate fake news or to create deepfakes. It is important to be aware of these risks and to use LLMs responsibly.

Here are some of the benefits of LLMs:
  • They can generate text that is more human-like and engaging than traditional AI-generated text.
  • They can translate languages more accurately than traditional translation methods.
  • They can write different kinds of creative content, such as poems, code, scripts, and musical pieces.
  • They can answer your questions in an informative way, even if they are open ended, challenging, or strange.

Some Popular LLMs

In recent times, 4 LLMs - ChatGPT, Bard,  Llama2 & Cluade2 became quite popular. We will discuss about the first 3 in this post and how to use them for free using APIs.

  • Google Bard is a large language model (LLM) chatbot developed by Google AI. It is based on the LaMDA family of LLMs and is trained on a massive dataset of text and code. Bard can generate text, translate languages, write different kinds of creative content, and answer your questions in an informative way. It is still under development, but it has the potential to be a powerful tool for creativity, productivity, and learning.
  • ChatGPT is a large language model chatbot developed by OpenAI. It is trained on a massive dataset of text and code, and it can generate human-like text in response to a wide range of prompts and questions. For example, ChatGPT can be used to write creative content, translate languages, or answer your questions in an informative way.
  • Meta Llama2 is a large language model (LLM) developed by Meta. It is a successor to the original Meta Llama model, and it is trained on a dataset of over 2 trillion tokens. This makes it one of the most powerful LLMs available today. Meta Llama2 can be used for a variety of tasks, including: Generating text, Translating languages, Answering questions, Writing different kinds of creative content, Solving coding problems.


  • Anthropic Claude2 is a large language model (LLM) developed by Anthropic. It is a successor to Claude1, and it has been trained on a dataset of text and code that is 100x larger. This makes Claude2 more capable of generating text, translating languages, and answering questions in an informative way. Claude2 has also been improved in terms of its safety and reliability. It is less likely to produce harmful or offensive output, and it is more transparent about its reasoning.

How to use ChatGPT, Bard, Llama2 API for free

To use these api's for free without any subscription or authorization token, you can use our very own API which supports these 3 large language models.

The Endpoint of these 3 models are:
  • https://tg-api-zehr.onrender.com/api/v1/llmodels/bard
  • https://tg-api-zehr.onrender.com/api/v1/llmodels/gpt
  • https://tg-api-zehr.onrender.com/api/v1/llmodels/llama

Here is a simple python program to make a request to bard.

import requests

url = "https://tg-api-zehr.onrender.com/api/v1/llmodels/bard"
payload = {
    "prompt": "Write a short poem on a cat"
}
r = requests.post(url, json=payload)
print(r.json())

Here's the output of the above request


Similarly you can use gpt and llama too.



Hope you loved this article. If yes, join our telegram channel for more such hacks, tips and tricks.

Previous Post Next Post