Documentation
API & Router Reference

POST /api/v1/chat/completions

OpenAI-compatible chat completion proxy endpoint with real-time SSE token streaming and model remapping.

POST /api/v1/chat/completions

OpenAI v1-compatible chat completion proxy supporting real-time Server-Sent Events (SSE) streaming and dynamic model remapping:

bash
curl -X POST http://localhost:3000/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen2.5-coder:7b",
    "messages": [
      { "role": "system", "content": "You are a senior TypeScript architect." },
      { "role": "user", "content": "Write a type-safe debounce hook in React 19." }
    ],
    "stream": true
  }'
Was this page helpful?