CatGPT API

The CatGPT provides access to an AI cat assistant for engaging in conversational interactions. It utilizes the GPT (Generative Pre-trained Transformer) model to generate responses based on input prompts.

Base URL

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

Conversation Endpoint

GET `/catgpt?q=prompt_input`

Description: Sends a prompt input to the CatGPT AI to generate a conversational response.

Query Parameters

  • q (required): The input prompt for the conversational AI.

Sample Request

GET `https://openapi-idk8.onrender.com/catgpt?q=Hello,%20CatGPT!%20How%20are%20you%3F`

Sample Response

{
  "api_name": "CatGPT API",
  "description": "An AI cat assistant for conversational interactions.",
  "author": "OpenAPI",
  "catgpt": "Meow! I'm doing great, thank you for asking! How can I assist you today?"
}

The response includes the API name, description, author, and the generated conversational response from the CatGPT AI.

Error Handling

400 Bad Request: Returned when the required q parameter is missing.

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

500 Internal Server Error: Returned when there is an issue processing the request.

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