Skip to main content
TypeSafe’s Jev models return a typed judgment — a probability, a choice, or a score — instead of generated text. Portkey routes these calls through /v1/decisions, a separate endpoint from chat completions, while still giving you the gateway’s full feature set: authentication, routing, retries, circuit breaking, caching, logging, and cost tracking.
/v1/decisions does not support streaming. Only before-request guardrails apply, scanning the state field only.

Add Provider in Model Catalog

  1. Go to Model Catalog → Add Provider.
  2. Select TypeSafe.
  3. Enter your TypeSafe API key.
  4. Name your provider (e.g., typesafe).

Complete Setup Guide

See all setup options and detailed configuration instructions

Quick Start

cURL
Response:

Question Types

Each entry in questions picks a type, which determines the shape of its answer: criteria on a question defines the type-specific detail — for a choice question, the set of labels to choose from.

Model

model defaults to jev-latest if omitted. Pin a specific version (e.g. jev-1.13.0) for reproducible judgments across a TypeSafe model upgrade.

Pricing

TypeSafe bills on input tokens only — output tokens (the typed judgment itself) are free. Usage is reported in the response’s usage.input_tokens / usage.output_tokens.

Next Steps

Guardrails for Decisions

Scan state before it reaches the model

Gateway Configs

Add retries, fallbacks, and caching

Observability

Monitor and trace your decisions requests

Portkey is now PRISMA AIRS AI Gateway. See it in action.

Contact Us
Last modified on September 26, 2026