Both models require a workspace-scoped LangSmith API key and the matching workspace provider secret. Set your LangSmith API key before you run the examples on this page:
Use TypeSafe (Jev)
The gateway 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.
TypeSafe (Jev) uses the System One API. Pass the text to evaluate in state and one or more named questions in questions. System One supports 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.
The typesafe/ prefix routes the request through your workspace’s TypeSafe provider secret. Pass your LangSmith API key, not your TypeSafe API key, as the SDK’s api_key or apiKey. Use the gateway base URL without /v1 for the SDKs:
- Python
- JavaScript
- cURL
Install the TypeSafe SDK:
Use OpenAI decision models
OpenAI decision models use the OpenAI Decisions API, which has its own request and response format, separate from System One. The gateway supports the OpenAI Decisions API through direct model access. ConfigureOPENAI_API_KEY as a workspace provider secret.
Send requests to POST /openai/v1/decisions using your workspace-scoped LangSmith API key. Set model to the native OpenAI model name without the openai/ prefix:
See also
- Admin setup: Configure provider secrets and grant gateway access.
- TypeSafe integration: Use TypeSafe decision models through LangChain.
Connect these docs to your agent of choice via MCP for real-time answers.

