Skip to main content
POST
/
openai
/
chat
/
completions
OpenAI-compatible chat completion
curl --request POST \
  --url https://api.dev.knowmio.com/api/openai/chat/completions \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "model": "<string>",
  "messages": [
    {
      "role": "system",
      "content": "<string>"
    }
  ]
}
'
"<string>"

Authorizations

x-api-key
string
header
required

API key for authentication (lowercase header name)

Body

application/json
model
string
required

Model slug (ignored, always uses Claude Opus 4.1)

messages
object[]
required

Response

200 - text/event-stream

OpenAI-compatible streaming response

OpenAI-format SSE stream