Use with · Vercel AI SDK

Use Vercel AI SDK with a Jev-compatible API

The Vercel AI SDK is a TypeScript toolkit for building AI features in applications. Its direct @ai-sdk/typesafe-ai provider talks to Jev-compatible endpoints, so you point it at our base URL with your Decision Models key.

Get startedQuickstartPricing

Status

Works today with the direct @ai-sdk/typesafe-ai provider, as in our client switch guide, from static source inspection read 15 November 2026; not run against production. This configures the direct provider; it does not add a model listing to Vercel AI Gateway. Provider source, read 2026-11-15.

Configuration

typescript · createTypeSafeAi
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 provider appends /systemone, so its base URL ends in /v1.

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. Vercel AI SDK 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.