ChatGPT API is now available! – ShiftDelete.net

ChatGPT, which was released publicly in the past months, continues to swept the software world. Finally, the chatbot’s API has been made available. This means users can develop their own AI applications.

OpenAl has released API for ChatGPT!

ChatGPT was introduced to users in December of last year. Developed by OpenAl, this chat robot draws attention with its answers to the questions asked. Because ChatGPT focuses on deep learning to build human-like sentences. GPT-3.5 based on the language model.

In the blog post shared by OpenAl today, it was announced that ChatGPT’s API service is available. Accordingly, software developers now gpt-3.5-turbo can integrate ChatGPT into their own applications with the language model. In this way, it became possible to create an artificial intelligence application based on ChatGPT.

It is possible to send automatic messages with WhatsApp with ChatGPT added!  So how?

It is possible to send automatic messages with WhatsApp with ChatGPT added! So how?

A software developer tried the automatic message sending feature by integrating ChatGPT on WhatsApp! Here are the details…

Of course, there is no rule that this will only be used to create an artificial intelligence application. It can be used in many fields. For example, in a shopping application, it can provide convenience by guessing the product that the user wants to search for.

ChatGPT API

ChatGPT API is actually already used in some applications. Because the artificial intelligence in Snapchat+, the paid version of Snapchat, uses the ChatGPT API. In addition, Quizlet, which allows students to work by solving questions, and Instacart, which provides information about food, also use the same source on the side of artificial intelligence.

Is ChatGPT API paid, how does it work?

Yes, it is paid. Each English word you send to ChatGPT in the background of the software you will integrate will be charged according to the token system. 1 tokenOne 4 charactersit corresponds to e. 1000 tokens whereas 0.002 dollars It is priced at 38 cents. Well 10 thousand characters when you send a text and want a response, 0.005 dollars (94 cents) you will have to pay. You can reach the cost calculation page of OpenAl by clicking here.

ChatGPT API

How can developers use the ChatGPT API?

You can send the text you want to receive a response with the API key as a request to api.openai.com. You can do this more easily by using the openai library in Python. When you make a request, a JSON type return will be made. Sample codes are as follows:

Request:

curl https://api.openai.com/v1/chat/completions
  -H "Authorization: Bearer $OPENAI_API_KEY"
  -H "Content-Type: application/json"
  -d '
  "model": "gpt-3.5-turbo",
  "messages": ["role": "user", "content": "What is the OpenAI mission?"]
'

Example return (Response):


  "id": "chatcmpl-6p5FEv1JHictSSnDZsGU4KvbuBsbu",
  "object": "messages",
  "created": 1677693600,
  "model": "gpt-3.5-turbo",
  "choices": [
    
      "index": 0,
      "finish_reason": "stop",
      "messages": [
        
          "role": "assistant",
          "content": "OpenAI's mission is to ensure that artificial general intelligence benefits all of humanity."
        
      ]
    
  ],
  "usage": 
    "prompt_tokens": 20,
    "completion_tokens": 18,
    "total_tokens": 38
  

In addition to ChatGPT, OpenAl has also launched the API of the Whisper application that converts speech to text. This artificial intelligence; It can convert speech to text in m4a, mp3, mp4, mpeg, mpga, wav or webm audio files. By using ChatGPT and Whisper together, it may be possible to make a Siri-like chatbot.

For example, you can listen to the user’s question and translate it into text, then send it to ChatGPT and convert the incoming response into audio and convey it to the user. Of course, this can also be used for other purposes. It totally depends on your imagination and creativity.

You can reach the API usage document published by OpenAl for ChatGPT by clicking here. So what do you guys think about this issue? Do you think artificial intelligence applications will increase? You can share your views with us in the comments section below.

source site-28