chat
Cohere-compatible Chat (v1) — Drop-in for Cohere's v1 Chat API (POST /v1/chat): send {message, chat_history?, preamble?, documents?, max_tokens?, temperature?} and get {text, chat_history, finish_reason, meta.billed_units} back, served by Llama 3.3 70B. chat_history roles USER/CHATBOT/SYSTEM; documents (array of objects) ground the answer. Also accepts a messages[] array. Non-streaming. Point a Cohere v1 client at https://api.polyform.org and pay per call with x402 - no API key. Price: $0.01 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "chat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | In one sentence, what is the x402 payment protocol? |