Using Sapient
HTTP server
An OpenAI-compatible server. The first request downloads and loads the model.
# Start the server (lazy model load on first request; default port 11435)
sapient serve| Endpoint | Purpose |
|---|---|
GET /v1/models | List downloaded models |
POST /v1/chat/completions | OpenAI-compatible chat, image parts and tool calling |
POST /v1/audio/transcriptions | Speech to text |
POST /v1/audio/speech | Text to speech |
POST /v1/actions | Robot actions (SmolVLA) |
GET /v1/health | Liveness check |
curl http://localhost:11435/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "openhorizon/qwen2.5-0.5b-q4",
"messages": [{"role": "user", "content": "Hello!"}]
}'