Chatter API

The Chatter API provides conversational AI responses powered by GPT-3.5 Turbo-16k.

Base URL

"https://openapi-idk8.onrender.com/chatter"

Endpoint

GET `/chatter`

Query Parameter

  • query (required): The text query for the AI to respond to.

Sample Request

GET `https://openapi-idk8.onrender.com/chatter?query=What+is+science?`

Sample Response

{
    "api_name":"Chatter API",
    "description":"A conversational AI powered by Turbo-16k.",
    "author":"OpenAPI",
    "response":
    "Science is a systematic enterprise that builds and organizes knowledge in the form of testable explanations and predictions about the natural world. It involves the collection of empirical evidence through observation and experimentation, the formulation of hypotheses and theories to explain natural phenomena, and the use of logical reasoning to interpret and draw conclusions from the data. Science encompasses various disciplines, such as physics, chemistry, biology, astronomy, and many others, each with its own set of principles, methods, and areas of study. The ultimate goal of science is to increase our understanding of the world around us and to make accurate and reliable predictions about the future based on this understanding."
    }

Error Handling

If the query parameter is missing, the API will respond with a 400 status code and an error message.

{
  "error": "Query is required."
}

If an internal server error occurs, the API will respond with a 500 status code and an error message.

{
  "error": "Internal server error."
}