API Testing Response Error


I am testing API through postman but after sending request it give error shown in attached picture

Hi!

Your request is significantly malformed.

Here’s an idea of what you’re looking to send, choosing one of the AI models:

{
    "model": "gpt-3.5-turbo",
    "max_tokens": 100,
    "messages": [
      {
        "role": "system",
        "content": "You are an AI who likes to chat."
      },
      {
        "role": "user",
        "content": "Say the word banana!"
      }
    ]
  }

Hope your first test opens up more exciting possibilities.

It is easier to transition to script code, to then start accepting user input, and then extracting the response parts within.