Skip to content
nikcli/inference

Plain HTTP

Chat completion

curl https://inference.nikcli-ai.dev/v1/chat/completions \
  -H "Authorization: Bearer $NIKCLI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nikseek",
    "messages": [{"role":"user","content":"Hello"}],
    "temperature": 0
  }'

Streaming (SSE)

curl -N https://inference.nikcli-ai.dev/v1/chat/completions \
  -H "Authorization: Bearer $NIKCLI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nikseek",
    "stream": true,
    "messages": [{"role":"user","content":"Stream a haiku"}]
  }'

List models

curl https://inference.nikcli-ai.dev/v1/models \
  -H "Authorization: Bearer $NIKCLI_API_KEY"

# Include upstream provider routes per model:
curl 'https://inference.nikcli-ai.dev/v1/models?routes=1' \
  -H "Authorization: Bearer $NIKCLI_API_KEY"

Inspect health

curl https://inference.nikcli-ai.dev/health
curl https://inference.nikcli-ai.dev/v1/providers