API Service
API Documentation
This service provides an OpenAI-compatible API. Use a model returned by the model list for your API key.
Base URL
$API_BASE_URL/v1
List models
curl $API_BASE_URL/v1/models \ -H "Authorization: Bearer $API_KEY"
Chat Completions
curl $API_BASE_URL/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"your-model-id","messages":[{"role":"user","content":"hello"}],"stream":false}'Streaming
Set stream to true on /v1/chat/completions to receive Server-Sent Events.
Supported endpoints: GET /v1/models and POST /v1/chat/completions.