Skip to content

Chat AI


Generates a Response from a Chat AI

GET /api/ai/message
Terminal window
https://api.cookie-api.com/api/ai/message


URL Parameters
promptPrompt for the ai

curl --location 'https://api.cookie-api.com/api/ai/message?prompt=Hi' \
--header 'Authorization: API_Key'

Responses
{
"answer": "Hello! It's nice to meet you. Is there something I can help you with or would you like to chat?",
"prompt": "Hi",
"success": true
}