Use with · LiteLLM
Use LiteLLM with a Jev-compatible API
LiteLLM is an open-source Python library that calls many model providers through one interface. Its native systemone function sends a state and typed questions to a Jev-compatible endpoint, so you set the base URL and your Decision Models key.
Status
Works today through LiteLLM’s native systemone function with api_base set to https://api.decisionmodels.io, as in our client switch guide (read 15 November 2026) and the migration checklist, which documents a local contract-mock check of LiteLLM 1.106.4; these were not production quality tests. A dedicated Decision Models provider entry in LiteLLM (pull request 46901) is open and not merged yet (status as of 4 December 2026).
Configuration
litellm.systemone(
model="typesafe/s1-fast",
api_base="https://api.decisionmodels.io",
api_key=os.environ["DECISIONMODELS_API_KEY"],
extra_headers={"S1-Region": "eu"},
state=state,
questions=questions,
)LiteLLM strips the typesafe/ prefix. Use one question in this example.
Model IDs, key and region
Create a separate Decision Models API key. Select an available model from GET https://api.decisionmodels.io/v1/models; do not reuse a TypeSafe model ID. s1-fast accepts one question; s1-pro accepts three. Set S1-Region: eu or global when the client allows it; otherwise the key default applies.
| Model ID | Input | Description |
|---|---|---|
s1-fast | text | based on Blink v0.3 26B-A4B (Apache-2.0), NVFP4 |
s1-pro | text | mammoth-1 27B by baselabs (MIT), FP8 on our own engine in the EU tier (s1-pro-5); Peer-to-Peer tier: s1-pro-3 (vLLM-SR d3) |
s1-vision | text + image | based on Blink v0.3 26B-A4B (Apache-2.0), NVFP4; one image plus text |
s1-llm-auto-router | text | s1-llm-auto-router (CPU routing classifier) |
clef-flash | text | Clef-Flash by Cloudflare, fine-tune of Qwen3.5-9B by the Qwen team (Apache-2.0), FP8; text only, up to 3 questions; EU GPUs at GPU Server Hub, Katowice. Not affiliated with or endorsed by Cloudflare |
Models from our models page; the full current list is there and in the live registry, GET /v1/models.
Run one request
This request does not need the client: it is the curl example tested in the migration checklist. Replace $DECISIONMODELS_API_KEY with a key from your dashboard; rates are on the pricing page.
curl --fail-with-body --silent --show-error --max-time 15 \
"${DECISIONMODELS_BASE_URL:-https://api.decisionmodels.io}/v1/systemone" \
-H "Authorization: Bearer $DECISIONMODELS_API_KEY" \
-H 'Content-Type: application/json' \
-H 'S1-Region: eu' \
--data '{"model":"s1-fast","state":"Mia owns a red bicycle.","questions":{"color":{"type":"choice","instructions":"Which color is the bicycle?","criteria":{"red":null,"blue":null}}}}'With LiteLLM installed, the same request through the client, as in the migration checklist (checked there against a local contract mock, 27 October 2026; it makes a real call, so it needs your key and credit):
import os
import litellm
response = litellm.systemone(
model="typesafe/s1-fast",
api_base=os.environ.get("DECISIONMODELS_BASE_URL", "https://api.decisionmodels.io"),
api_key=os.environ["DECISIONMODELS_API_KEY"],
extra_headers={"S1-Region": "eu"},
state="Mia owns a red bicycle.",
questions={"color": {
"type": "choice",
"instructions": "Which color is the bicycle?",
"criteria": {"red": None, "blue": None},
}},
timeout=15,
)
print(response.model_dump())Next steps
Other clients
Jev is a trademark of TypeSafe AI. Decision Models is not affiliated with TypeSafe AI and does not resell Jev. LiteLLM belongs to its respective owner; Decision Models is not affiliated with or endorsed by it and uses the name only to say which client this page documents.