Cohere API - ZamDev

Welcome to the Cohere API endpoint documentation and testing page.

Overview

This API lets you send a prompt and receive AI-generated chat responses using Cohere’s chat model.

Supports: GET and POST requests.

Request Parameters

Example Requests

GET

curl "https://api.zamdev.dev/v1/ai/cohere?prompt=hello"

POST (JSON)

curl -X POST "https://api.zamdev.dev/v1/ai/cohere" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "hello"}'

Response Format

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

Notes

Need help or feedback?

Contact [email protected]