AIChat API

The AIChat API provides conversational AI responses powered by Google Gemini-Pro.

Base URL

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

Endpoint

GET `/aichat`

Query Parameter

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

Sample Request

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

Sample Response

{
    "api_name":"AIChat API",
    "description":"A conversational AI powered by Gemini.",
    "author":"OpenAPI",
    "response":"š——š—˜š—™š—œš—”š—œš—§š—œš—¢š—” š—¢š—™ š—¦š—–š—œš—˜š—”š—–š—˜:\n\nScience is a systematic and organized method of gaining knowledge about the natural world and understanding the physical, biological, and social phenomena that occur within it.\n\nš—žš—˜š—¬ š—–š—›š—”š—„š—”š—–š—§š—˜š—„š—œš—¦š—§š—œš—–š—¦ š—¢š—™ š—¦š—–š—œš—˜š—”š—–š—˜:\n\nš—˜š— š—£š—œš—„š—œš—–š—œš—¦š— : Science relies on evidence and observations from the real world.\nš—¢š—•š—žš—˜š—–š—§š—œš—©š—œš—§š—¬: Scientists strive to eliminate personal biases and subjectivity in their research.\nš—§š—˜š—¦š—§š—”š—•š—œš—Ÿš—œš—§š—¬: Scientific claims are testable through experiments or other empirical methods.\nš—©š—”š—Ÿš—œš——š—”š—§š—œš—¢š—”: Experiments and observations can verify or disprove hypotheses and theories.\nš—„š—˜š—£š—Ÿš—œš—–š—”š—§š—œš—¢š—”: Scientific results should be replicable by other researchers independently.\nš—§š—„š—”š—”š—¦š—£š—”š—„š—˜š—”š—–š—¬: Scientists share their methods and findings to allow others to scrutinize their work.\nš—£š—„š—¢š—©š—œš—¦š—œš—¢š—”š—”š—Ÿš—œš—§š—¬: Scientific knowledge is always subject to revision as new evidence emerges.\n\nš—šš—¢š—”š—Ÿš—¦ š—¢š—™ š—¦š—–š—œš—˜š—”š—–š—˜:\n\nš——š—˜š—¦š—–š—„š—œš—£š—§š—œš—¢š—”: To observe and document the natural world.\nš—˜š—«š—£š—Ÿš—”š—”š—”š—§š—œš—¢š—”: To develop theories and models that explain phenomena.\nš—£š—„š—˜š——š—œš—–š—§š—œš—¢š—”: To predict future events based on scientific understanding.\nš—–š—¢š—”š—§š—„š—¢š—Ÿ: To manipulate natural processes for practical applications.\n\nš—•š—„š—”š—”š—–š—›š—˜š—¦ š—¢š—™ š—¦š—–š—œš—˜š—”š—–š—˜:\n\nScience consists of various overlapping fields, including:\n\nš—”š—”š—§š—Øš—„š—”š—Ÿ š—¦š—–š—œš—˜š—”š—–š—˜š—¦: Physics, chemistry, biology, astronomy, earth science\nš—¦š—¢š—–š—œš—”š—Ÿ š—¦š—–š—œš—˜š—”š—–š—˜š—¦: Sociology, psychology, economics, anthropology\nš—™š—¢š—„š— š—”š—Ÿ š—¦š—–š—œš—˜š—”š—–š—˜š—¦: Mathematics, computer science\n\nš—„š—¢š—Ÿš—˜ š—¢š—™ š—¦š—–š—œš—˜š—”š—–š—˜ š—œš—” š—¦š—¢š—–š—œš—˜š—§š—¬:\n\nScience plays a crucial role in:\n\nš—”š——š—©š—”š—”š—–š—œš—”š—š š—žš—”š—¢š—Ŗš—Ÿš—˜š——š—šš—˜: Expanding our understanding of the world and the universe.\nš—œš— š—£š—„š—¢š—©š—œš—”š—š š—§š—˜š—–š—›š—”š—¢š—Ÿš—¢š—šš—¬: Developing new technologies and innovations.\nš—¦š—¢š—Ÿš—©š—œš—”š—š š—£š—„š—¢š—•š—Ÿš—˜š— š—¦: Addressing health, environmental, and societal challenges.\nš—œš—”š—™š—¢š—„š— š—œš—”š—š š——š—˜š—–š—œš—¦š—œš—¢š—”-š— š—”kš—œš—”š—š: Providing evidence-based information for policy and public discourse.\nš—£š—„š—¢š— š—¢š—§š—œš—”š—š š—–š—„š—œš—§š—œš—–š—”š—Ÿ š—§š—›š—œš—”kš—œš—”š—š: Encouraging skepticism, logical reasoning, and a questioning mindset."
    }

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."
}