Migration guide

Already on Jev? Point your existing client at Decision Models

Checked 15 November 2026, from static source inspection, not run against production. Jev is a TypeSafe AI product. Decision Models is independent and offers a Jev-compatible API.

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. Start with one text question. Save your old configuration for rollback. Follow the migration checklist before switching traffic.

Choose the right URL

ClientURL settingValue
TypeSafe Python SDKbase_urlhttps://api.decisionmodels.io
TypeSafe TypeScript SDKbaseURLhttps://api.decisionmodels.io
Vercel direct TypeSafe providerbaseURLhttps://api.decisionmodels.io/v1
LangChain Python / JSbase_url / baseUrlhttps://api.decisionmodels.io
Effect @effect/ai-typesafeapiUrlhttps://api.decisionmodels.io/v1
Effect UAIbaseUrlhttps://api.decisionmodels.io
TanStack AIbaseURLhttps://api.decisionmodels.io
Community n8n-nodes-jevCredential Base URLhttps://api.decisionmodels.io
Scoped @n3ndor/n8n-nodes-typesafe-jevCredential Base URLhttps://api.decisionmodels.io
LiteLLM native System Oneapi_basehttps://api.decisionmodels.io
Ollama Pythonhosthttps://api.decisionmodels.io

The Vercel and Effect providers in this table append /systemone; the other listed clients append /v1/systemone. This distinction prevents duplicate or missing /v1 paths. Pinned upstream sources are linked below.

TypeSafe SDKs

For typesafe-sdk 0.7.5, replace the client configuration with:

python
import os
from typesafe_sdk import TypeSafeClient

client = TypeSafeClient(
    api_key=os.environ["DECISIONMODELS_API_KEY"],
    base_url="https://api.decisionmodels.io",
    model="s1-fast",
    headers={"S1-Region": "eu"},
    compression=False,
)

Keep your existing text client.system_one(state=..., questions=...) call, with one question for this model. An explicit per-call model overrides the client default, so replace those IDs too.

For @typesafe-ai/sdk 0.7.0:

typescript
import { TypeSafeClient } from "@typesafe-ai/sdk";

const client = new TypeSafeClient({
  apiKey: process.env.DECISIONMODELS_API_KEY,
  baseURL: "https://api.decisionmodels.io",
  defaultModel: "s1-fast",
  defaultHeaders: { "S1-Region": "eu" },
  compression: false,
});

Continue with client.systemOne({state, questions}). Since 16 November 2026 the API also accepts gzip and zstd request bodies, so compression off is no longer required; the example keeps it off because the SDKs’ default compression was not tested end to end against the API. Both SDKs also read TYPESAFE_BASE_URL, TYPESAFE_API_KEY and TYPESAFE_DEFAULT_MODEL; prefer a separate process/environment for the new provider. Their optional model-list methods expect the TypeSafe discovery envelope. Read the Decision Models model list directly instead.

Sources: inspected Python constructor, TypeScript options, and model-list decoder, read 2026-11-15.

Community n8n nodes

For n8n-nodes-jev 0.2.3:

  1. Create its Jev (TypeSafe) API credential. Put your Decision Models key in API Key and https://api.decisionmodels.io in Base URL.
  2. In the node, switch Model from From List to ID, then enter s1-fast or s1-pro.
  3. Start with Route by Choice, which sends one question. For Ask Questions, keep the request within the selected model’s limit.

The model dropdown reads {models:[{name:...}]}. Since 16 November 2026 GET /v1/models returns that list next to data, so the dropdown should show the models; if it stays empty, use ID. The credential’s GET model-list check does not prove the key has inference permission or credit.

For @n3ndor/n8n-nodes-typesafe-jev, set the same credential Base URL and your new key. Set Model through an expression such as ={{ "s1-fast" }} because its dropdown also expects TypeSafe discovery. Keep one question for s1-fast. This scoped package is distinct from the similarly named unscoped package.

These credentials expose no region header setting. Configure the desired default region on the Decision Models key before using them.

Sources: community credential, manual model ID, scoped node properties, read 2026-11-15.

The official TypeSafe n8n node hides its Base URL setting. n8n-nodes-jev-classification exposes a URL but tests credentials using a hard-coded TypeSafe model. Neither currently has a clean setup path covered by this guide.

Vercel AI SDK, LangChain, Effect and TanStack

For the direct @ai-sdk/typesafe-ai provider, configure:

typescript
const provider = createTypeSafeAi({
  apiKey: process.env.DECISIONMODELS_API_KEY,
  baseURL: "https://api.decisionmodels.io/v1",
  headers: { "S1-Region": "eu" },
});
const model = provider.decisionModel("s1-fast");

Import createTypeSafeAi from @ai-sdk/typesafe-ai and use your existing decision/evaluation call with one text question. This configures the direct provider; it does not add a model listing to Vercel AI Gateway. Provider source, read 2026-11-15.

For LangChain, use TypeSafeClassifier(base_url="https://api.decisionmodels.io", api_key=..., model="s1-fast") in Python, or new TypeSafeClassifier({baseUrl:"https://api.decisionmodels.io", apiKey:..., model:"s1-fast"}) in JavaScript. Both read TYPESAFE_BASE_URL when the URL argument is omitted. Neither has a simple region-header constructor option; use the key’s region default or your existing custom transport.

For @effect/ai-typesafe, pass {apiUrl:"https://api.decisionmodels.io/v1", apiKey:Redacted.make(key)} to TypeSafeClient.layer and select TypeSafeDecisionModel.model("s1-fast"). Retain your existing Effect HTTP layer. transformClient can add a region header; otherwise set the key default. Skip its TypeSafe-shaped listModels() method.

For @effect-uai/typesafe-ai, pass {baseUrl:"https://api.decisionmodels.io", apiKey:Redacted.make(key)} to its Jev layer or make, and model:"s1-fast" in the decision request. Use one decision in the definition. Region comes from your injected HTTP client or the key default.

For TanStack @tanstack/ai-typesafe, configure createTypesafeDecider("s1-fast", key, {baseURL:"https://api.decisionmodels.io", headers:{"S1-Region":"eu"}}) and retain your bounded text evaluation call.

LiteLLM and Ollama Python

Use LiteLLM’s native systemone function with:

python
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. For Ollama Python 0.6.3, use Client(host="https://api.decisionmodels.io", headers={"Authorization":"Bearer " + key, "S1-Region":"eu"}), then client.systemone(model="s1-fast", state=state, questions=questions). The migration checklist documents local contract-mock checks of LiteLLM 1.106.4 and Ollama Python 0.6.3; these were not production quality tests and were not rerun for this research.

Workflow tools and routers

Checked 22 November 2026 against the live API: the MCP steps with the official MCP TypeScript SDK 1.32.2 (Streamable HTTP, Bearer key: initialize, tools/list and a decide call returned a typed answer), the HTTP step with a plain POST /v1/systemone, and semantic-router 1.2.0 with the code below. The in-product steps follow each vendor's documentation as read that day; they were not run inside n8n, Activepieces, Gumloop or Dify.

Our hosted MCP server is https://api.decisionmodels.io/mcp (Streamable HTTP, Authorization: Bearer <your Decision Models key>). It offers the tools decide, list_models, get_usage and get_balance. A decide call takes model, state, questions (one question for s1-fast) and an optional region (eu or global), and returns the POST /v1/systemone response JSON as text content:

json
{"model":"s1-fast","region":"eu","state":"Ticket: I was charged twice this month.","questions":{"route":{"type":"choice","instructions":"Which team should handle this ticket?","criteria":{"billing":null,"technical":null,"sales":null}}}}

n8n: add the built-in MCP Client node. Set MCP Endpoint URL to https://api.decisionmodels.io/mcp, set Authentication to bearer and use your key as the token, pick the tool decide and pass the arguments above in JSON input mode. Branch on answers.route.choice or on a probability. The MCP Client Tool node offers the same server to an AI Agent.

Activepieces: add the MCP Client piece. Server URL https://api.decisionmodels.io/mcp, Transport Streamable HTTP, Authentication Bearer Token with your key, then call the tool decide with the arguments above. No LLM step is needed.

Gumloop and other MCP clients: any client that can add a custom MCP server over HTTPS with a Bearer or custom Authorization header can use the same URL and key. In Gumloop this is a custom MCP server attached to an agent: Customize -> Connectors -> Add Custom MCP, enter the MCP Server URL, set Authentication to API Key / Credentials, then add it under the agent's Connectors.

Dify: use an HTTP Request node: POST https://api.decisionmodels.io/v1/systemone, authorization API Key of type Bearer with your key, an S1-Region: eu header if you need the EU tier, and a JSON body like the curl example (model, state, questions). Follow it with an If/Else node on the answer. Dify's Question Classifier and its OpenAI-API-compatible provider expect a chat model, so they do not call this endpoint.

semantic-router: 1.2.0 ships SystemOneDecisionModel, which posts to {base_url}/v1/systemone:

python
import os
from semantic_router import Route
from semantic_router.decision_models.systemone import SystemOneDecisionModel
from semantic_router.routers.decision import DecisionRouter

model = SystemOneDecisionModel(
    name="s1-fast",
    base_url="https://api.decisionmodels.io",
    api_key=os.environ["DECISIONMODELS_API_KEY"],
)
router = DecisionRouter(model=model, routes=[
    Route(name="billing", description="Payments, invoices, refunds, charges", utterances=["I was charged twice"]),
    Route(name="technical", description="Bugs, errors, outages, login problems", utterances=["The app crashes"]),
])
print(router("I was charged twice this month, please refund one payment."))  # RouteChoice(name='billing', ...)

It sends no region header, so the key's default region applies. Every route call is one billed decision.

The workflow tool itself receives your state and the answers and processes them under its own terms; our EU tier, DPA and no-storage commitments cover the request from the tool to our API, not the tool.

Sources: n8n MCP Client node, Activepieces MCP Client piece, Gumloop custom MCP servers, Dify HTTP Request node, semantic-router SystemOneDecisionModel, read 2026-11-22.

Before switching traffic

Use text noul, choice or score questions. s1-fast accepts one question; s1-pro accepts three. Split larger requests yourself. Criteria, tokens and option counts must also fit the chosen model. Set S1-Region: eu or global when the client allows it; otherwise the key default applies.

Image transport differs and is outside this guide. Check errors and retry/settlement handling explicitly, including credit, limits and timeouts. Some typed clients omit extra metadata. Compare outputs on your own cases before changing traffic; preserve rollback configuration. Full compatibility and error details remain in the migration checklist.

Jev is a trademark of TypeSafe AI. Decision Models is not affiliated with TypeSafe AI and does not resell Jev.

https://api.system1models.ai keeps working.