Use with · LangChain

Use LangChain with a Jev-compatible API

LangChain is an open-source framework for building applications with language models. Its TypeSafeClassifier, in Python and JavaScript, takes a base URL, so it can talk to a Jev-compatible API.

Get startedQuickstartPricing

Status

Works today by setting the classifier’s base URL, as in our client switch guide, from static source inspection read 15 November 2026; not run against production. Neither constructor has a simple region-header option; use the key’s region default or your existing custom transport.

Configuration

python · TypeSafeClassifier
TypeSafeClassifier(base_url="https://api.decisionmodels.io", api_key=..., model="s1-fast")
javascript · TypeSafeClassifier
new TypeSafeClassifier({baseUrl:"https://api.decisionmodels.io", apiKey:..., model:"s1-fast"})

Both read TYPESAFE_BASE_URL when the URL argument is omitted. Pass your Decision Models key as api_key / apiKey.

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 IDInputDescription
s1-fasttextbased on Blink v0.3 26B-A4B (Apache-2.0), NVFP4
s1-protextmammoth-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-visiontext + imagebased on Blink v0.3 26B-A4B (Apache-2.0), NVFP4; one image plus text
s1-llm-auto-routertexts1-llm-auto-router (CPU routing classifier)
clef-flashtextClef-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
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}}}}'

Next steps

Other clients

Jev is a trademark of TypeSafe AI. Decision Models is not affiliated with TypeSafe AI and does not resell Jev. LangChain 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.