curl --request POST \
--url http://co-mind-platform-host/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "llama3.2:3b",
"messages": [
{
"role": "system",
"content": "<string>",
"name": "<string>"
}
],
"temperature": 1,
"max_tokens": 2,
"top_p": 1,
"stream": false,
"tools": [
"<unknown>"
]
}
'{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 123,
"model": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "system",
"content": "<string>",
"name": "<string>"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}OpenAI-compatible chat completions endpoint
curl --request POST \
--url http://co-mind-platform-host/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "llama3.2:3b",
"messages": [
{
"role": "system",
"content": "<string>",
"name": "<string>"
}
],
"temperature": 1,
"max_tokens": 2,
"top_p": 1,
"stream": false,
"tools": [
"<unknown>"
]
}
'{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 123,
"model": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "system",
"content": "<string>",
"name": "<string>"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}Bearer token authentication. Supports two token types:
POST /v1/auth/loginPOST /v1/api-tokens, format: cmnd_<tokenId>.<secret>