Skip to Content

Using SapientHTTP server

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
EndpointPurpose
GET /v1/modelsList downloaded models
POST /v1/chat/completionsOpenAI-compatible chat, image parts and tool calling
POST /v1/audio/transcriptionsSpeech to text
POST /v1/audio/speechText to speech
POST /v1/actionsRobot actions (SmolVLA)
GET /v1/healthLiveness 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!"}]
  }'