semif-qwen3.5-4b), through the gateway for free through September 28, 2026.
SemIf is enabled for US organizations on Free, Developer, and Plus plans.
Quickstart
Set your LangSmith API key:- Python
- JavaScript
- cURL
Install the TypeSafe SDK:
Understand decision models
Pass the text to evaluate instate and between 1 and 32 named questions in questions. Decision models support three question types:
noul: Returns the probability that the answer is true.choice: Classifies the state into one of the supplied options.score: Scores the state against a rubric.
answers keyed by question name rather than a chat message. Streaming is not supported.
SemIf
You can select SemIf from the hosted models on the gateway home page to get a request example. For regional base URLs, see Regional gateways. SemIf calls do not consume Gateway Credits. Gateway access, rate-limit, and budget policies still apply.TypeSafe (Jev)
The gateway also supports TypeSafe decision models with bring-your-own-key (BYOK). ConfigureTYPESAFE_API_KEY as a workspace provider secret. See TypeSafe setup to create a key and install the LangChain integration.
Set LANGSMITH_API_KEY to your workspace-scoped LangSmith API key. The typesafe/ prefix routes the request through your workspace’s TypeSafe provider secret, not the hosted SemIf model. Do not pass your TypeSafe API key as the SDK’s api_key or apiKey when calling the gateway. Use the gateway base URL without /v1 for the SDKs:
- Python
- JavaScript
- cURL
Install the TypeSafe SDK:
See also
- Admin setup: Grant gateway access without configuring a provider secret for SemIf.
- TypeSafe integration: Use TypeSafe decision models through LangChain.
Connect these docs to your agent of choice via MCP for real-time answers.

