Welcome to the Cohere API endpoint documentation and testing page.
This API lets you send a prompt and receive AI-generated chat responses using Cohere’s chat model.
Supports: GET and POST requests.
prompt (string, required): Your input message to the AI (max 1024 characters).curl "https://api.zamdev.dev/v1/ai/cohere?prompt=hello"
curl -X POST "https://api.zamdev.dev/v1/ai/cohere" \
-H "Content-Type: application/json" \
-d '{"prompt": "hello"}'
The response is a JSON object:
{
"status": "success",
"request_id": "req_6842761964bb12.67010163",
"timestamp": "2025-06-06T05:01:13+00:00",
"path": "/v1/ai/cohere?prompt=hi",
"method": "GET",
"data": {
"response": "Hello! How can I assist you today?"
}
}
hello, hi, etc.) return a fast custom reply.Contact [email protected]