Steer API
An OpenAI-compatible chat completions endpoint with one extra field, steer, a list of vectors and their strengths.
Request
curl https://<site>/v1/chat/completions \
-H "content-type: application/json" \
-d '{
"model": "qwen2.5-3b-instruct",
"messages": [{"role": "user", "content": "How should I store passwords?"}],
"steer": [{"id": "security", "strength": 5}, {"id": "concise", "strength": 4}],
"max_tokens": 256
}'The response is a standard chat.completion object. It also echoes the resolved steer list, with the scale each strength was turned into, and a timing object with the time to first token.
| Field | Type | Notes |
|---|---|---|
steer | array | Up to 4 entries of {id, strength}. Strength from -8 to 8; negative values push the other way |
max_tokens | number | Capped at 320 on the public demo, 1,024 with a key |
temperature | number | 0 for greedy. Default 0.7 |
seed | number | Fixed seed for repeatable sampling |
stream | boolean | Server-sent events, OpenAI chunk format |
Streaming
With stream: true the server sends chat.completion.chunk events and ends with data: [DONE]. The playground uses a second endpoint, /v1/compare, which streams the base and the steered answer in one response: events named t carry {s, t}, where s is 0 for base and 1 for steered.
With an SDK
from openai import OpenAI
client = OpenAI(base_url="https://<site>/v1", api_key="sk-...")
r = client.chat.completions.create(
model="qwen2.5-3b-instruct",
messages=[{"role": "user", "content": "Explain recursion."}],
extra_body={"steer": [{"id": "eli5", "strength": 5}]},
)
print(r.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://<site>/v1", apiKey: "sk-..." });
const r = await client.chat.completions.create({
model: "qwen2.5-3b-instruct",
messages: [{ role: "user", content: "Explain recursion." }],
// @ts-expect-error steer is a Steer Labs extension
steer: [{ id: "eli5", strength: 5 }],
});Endpoints
| Method | Path | What it does |
|---|---|---|
| POST | /v1/chat/completions | One answer, steered |
| POST | /v1/compare | Base and steered answers, streamed together |
| GET | /v1/vectors | Every vector with its card, eval and call counts |
| GET | /v1/evals | The eval ledger |
| GET | /v1/models | Served models |
| POST | /v1/extract | Queue an extraction from your instructions |
| POST | /mcp | MCP server, Streamable HTTP |
Keys and limits
The public demo allows a few requests per minute per address, with answers up to 320 tokens. An API key raises that to 120 requests per minute and 1,024 tokens. The server runs one generation at a time and queues the rest, with at most eight requests waiting; a full queue answers with queue full.