{
  "as_of": "2026-09-22",
  "note": "The platform surface matrix. Single source of truth for both docs/compatibility.md (generated between markers by scripts/build_compat.py) and the Compatibility view on the site, so the two can never disagree. A dash means the surface does not expose that concept. A platform's docs_url is a page of its documentation whose address names a model version (the vendor's known limitations of the current model): hand-written docs may link only the versioned pages recorded here, so a release that moves the page turns every stale link red. A platform's catalog_platforms lists the values a catalogue row records in `platforms` for that surface; scripts/lint.py holds every value a row records to these lists and to taxonomy.json's platforms_without_surface. granularity \"coarse\" marks a surface whose value does not tell it apart from another route: a row records vercel-ai-gateway, not which of the gateway's two routes it takes, and typesafe-api, not whether it reaches the native API directly or through a pass-through beside it; so a row counted under a coarse surface may use another. No row's value is guessed finer than its evidence shows.",
  "platforms": [
    {
      "id": "typesafe-native",
      "name": "TypeSafe API (direct)",
      "official": true,
      "url": "https://docs.typesafe.ai/api",
      "model": "jev-latest · jev-preview · jev-1.14.0 · jev-1.13.0",
      "yesno": "noul",
      "answer_field": ".noul",
      "confidence": "on the answer",
      "envelope": "top level",
      "endpoint": "POST /v1/systemone",
      "env": "TYPESAFE_API_KEY",
      "notes": "The reference surface. A model-assisted documentation check on 2026-11-05 covered only the native API: jev-latest and jev-preview both point to jev-1.14.0, and there is no separate preview build. Other surfaces retain the matrix's 2026-09-22 reading date.",
      "notes_zh": "基准面。2026-11-05 的模型辅助文档核对仅覆盖原生 API：jev-latest 和 jev-preview 都指向 jev-1.14.0，目前没有单独的预览版。其他平台仍沿用矩阵的 2026-09-22 阅读日期。",
      "model_source": "https://docs.typesafe.ai/models",
      "docs_url": "https://docs.typesafe.ai/model-jaggedness/jev-1.13",
      "catalog_platforms": [
        "typesafe-api"
      ],
      "granularity": "coarse"
    },
    {
      "id": "vercel-eval",
      "name": "Vercel AI SDK evaluation API",
      "url": "https://vercel.com/kb/guide/typesafe-jev-and-ai-sdk",
      "model": "typesafe-ai/jev",
      "yesno": "boolean",
      "answer_field": ".probability",
      "confidence": "providerMetadata",
      "envelope": "evaluate()",
      "endpoint": "—",
      "env": "AI_GATEWAY_API_KEY",
      "notes": "The one surface that renames the primitive. Needs AI SDK 7.0.105 or newer.",
      "notes_zh": "唯一给原语改了名字的平台。需要 AI SDK 7.0.105 及以上。",
      "catalog_platforms": [
        "vercel-ai-gateway",
        "vercel-ai-sdk"
      ],
      "granularity": "coarse"
    },
    {
      "id": "vercel-compat",
      "name": "Vercel AI Gateway (TypeSafe-compatible)",
      "url": "https://vercel.com/docs/ai-gateway/sdks-and-apis/typesafe",
      "model": "typesafe-ai/jev",
      "yesno": "noul",
      "answer_field": ".noul",
      "confidence": "on the answer",
      "envelope": "top level",
      "endpoint": "POST /typesafe/v1/systemone",
      "env": "AI_GATEWAY_API_KEY",
      "notes": "Same gateway as the row above, different route, different spelling. Pick one and stay on it.",
      "notes_zh": "和上一行是同一个网关，但路径不同、拼法也不同。选一条走，别混用。",
      "catalog_platforms": [
        "vercel-ai-gateway"
      ],
      "granularity": "coarse"
    },
    {
      "id": "ai-sdk-direct",
      "name": "@ai-sdk/typesafe-ai",
      "url": "https://ai-sdk.dev/providers/ai-sdk-providers/typesafe-ai",
      "model": "jev-latest",
      "yesno": "boolean",
      "answer_field": ".probability",
      "confidence": "providerMetadata",
      "envelope": "evaluate()",
      "endpoint": "—",
      "env": "TYPESAFE_AI_API_KEY",
      "notes": "Note the env var: TYPESAFE_AI_API_KEY, not TYPESAFE_API_KEY.",
      "notes_zh": "注意环境变量是 TYPESAFE_AI_API_KEY，不是 TYPESAFE_API_KEY。",
      "catalog_platforms": [
        "vercel-ai-sdk"
      ],
      "granularity": "coarse"
    },
    {
      "id": "cloudflare",
      "name": "Cloudflare Workers AI",
      "url": "https://developers.cloudflare.com/ai/models/typesafe/jev/",
      "model": "typesafe/jev",
      "yesno": "noul",
      "answer_field": ".noul",
      "confidence": "on the answer",
      "envelope": "wrapped in input",
      "endpoint": "env.AI.run()",
      "env": "Workers AI binding",
      "notes": "The envelope differs: state and questions sit inside an `input` object. A native client cannot be ported by swapping the URL.",
      "notes_zh": "请求结构不同：state 和 questions 被包在 `input` 对象里。原生客户端不能只换 URL 就移植。",
      "catalog_platforms": [
        "cloudflare-workers-ai"
      ]
    },
    {
      "id": "openrouter",
      "name": "OpenRouter",
      "url": "https://openrouter.ai/typesafe",
      "model": "typesafe/jev-1.13 · ~typesafe/jev-latest",
      "yesno": "—",
      "answer_field": "—",
      "confidence": "—",
      "envelope": "—",
      "endpoint": "a decisions endpoint, separate from chat",
      "env": "OPENROUTER_API_KEY",
      "notes": "Note the tilde on the alias. The listing page carries no code sample, so the request shape was left unrecorded rather than guessed.",
      "notes_zh": "注意别名前面那个波浪号。该页没有代码示例，所以请求结构此处留空而非猜测。",
      "catalog_platforms": [
        "openrouter"
      ]
    },
    {
      "id": "litellm",
      "name": "LiteLLM pass-through",
      "url": "https://docs.litellm.ai/docs/pass_through/typesafe",
      "model": "jev-latest · jev-1.13.0 · jev-preview",
      "yesno": "noul",
      "answer_field": ".noul",
      "confidence": "on the answer",
      "envelope": "top level",
      "endpoint": "POST /typesafe/v1/systemone",
      "env": "TYPESAFE_API_KEY",
      "notes": "Exposes the native path, so the official SDK works by changing only the base URL.",
      "notes_zh": "暴露的是原生路径，官方 SDK 只需改 base URL 即可使用。",
      "catalog_platforms": [
        "litellm"
      ]
    },
    {
      "id": "bifrost",
      "name": "Bifrost",
      "url": "https://github.com/maximhq/bifrost/tree/dev/core/providers/typesafe",
      "model": "jev-latest",
      "yesno": "noul",
      "answer_field": ".noul",
      "confidence": "on the answer",
      "envelope": "top level",
      "endpoint": "POST /typesafe/v1/systemone",
      "env": "TYPESAFE_BASE_URL",
      "notes": "One-to-one pass-through of the native API.",
      "notes_zh": "对原生 API 做一比一透传。",
      "model_source": "https://raw.githubusercontent.com/maximhq/bifrost/dev/docs/providers/supported-providers/typesafe.mdx",
      "catalog_platforms": [
        "bifrost"
      ]
    },
    {
      "id": "aimlapi",
      "name": "AI/ML API",
      "url": "https://docs.aimlapi.com/api-references/decision-models/typesafe/jev",
      "model": "typesafe/jev",
      "yesno": "noul",
      "answer_field": ".noul",
      "confidence": "on the answer",
      "envelope": "top level",
      "endpoint": "POST /v1/decisions",
      "env": "AIMLAPI key",
      "notes": "A third endpoint path. Top-level envelope like native, but not at the native path.",
      "notes_zh": "第三种端点路径。请求结构与原生一致，但路径不同。",
      "catalog_platforms": [
        "aimlapi"
      ]
    },
    {
      "id": "netlify",
      "name": "Netlify AI Gateway",
      "url": "https://www.netlify.com/changelog/typesafe-jev-ai-gateway/",
      "model": "jev-latest (default)",
      "yesno": "noul",
      "answer_field": ".noul",
      "confidence": "on the answer",
      "envelope": "top level",
      "endpoint": "official SDK, zero config",
      "env": "none",
      "notes": "The lowest-friction route if you already deploy there: no key, no base URL, billed through the platform. Node.js 20+.",
      "notes_zh": "如果你本来就部署在 Netlify，这是门槛最低的路径：不需要密钥、不需要 baseURL，按平台计费。需 Node.js 20+。",
      "catalog_platforms": [
        "netlify"
      ]
    },
    {
      "id": "pydantic-ai",
      "name": "Pydantic AI",
      "url": "https://pydantic.dev/docs/ai/models/typesafe/",
      "model": "typesafe:jev-latest",
      "yesno": "via output_type",
      "answer_field": "typed output",
      "confidence": "—",
      "envelope": "Agent(...)",
      "endpoint": "—",
      "env": "TYPESAFE_API_KEY",
      "notes": "Maps Python types onto primitives: bool becomes a noul, Literal becomes a choice, an ordered IntEnum becomes a score.",
      "notes_zh": "把 Python 类型映射到原语：bool 变成 noul，Literal 变成 choice，有序 IntEnum 变成 score。",
      "catalog_platforms": [
        "pydantic-ai"
      ]
    },
    {
      "id": "langchain",
      "name": "LangChain",
      "url": "https://docs.langchain.com/oss/python/integrations/providers/typesafe",
      "model": "—",
      "yesno": "Noul()",
      "answer_field": ".nouls[k].noul",
      "confidence": "on the answer",
      "envelope": "classifier.invoke({...})",
      "endpoint": "—",
      "env": "TYPESAFE_API_KEY",
      "notes": "Accessor differs from the quickstart's: .nouls[key] rather than .answers[key]. Follow whichever your SDK version documents.",
      "notes_zh": "取值方式与官方 quickstart 不同：用 .nouls[key] 而非 .answers[key]。按你自己 SDK 版本的文档来。",
      "catalog_platforms": [
        "langchain"
      ]
    },
    {
      "id": "rig",
      "name": "rig (Rust)",
      "url": "https://github.com/0xPlaygrounds/rig",
      "model": "—",
      "yesno": "noul",
      "answer_field": ".noul",
      "confidence": "on the answer",
      "envelope": "typed builder",
      "endpoint": "—",
      "env": "JEV_TOKEN",
      "notes": "A third env var name, and the 255-option cap is enforced at compile time.",
      "notes_zh": "第三种环境变量名；而且 255 选项上限是在编译期强制的。",
      "catalog_platforms": [
        "rig"
      ]
    }
  ],
  "limits": [
    {
      "k": "choice options",
      "v": "max 255",
      "why": "Walk a hierarchy with a beam search over probabilities to get past it.",
      "why_zh": "要突破它，就用对概率做 beam search 的方式遍历层级。",
      "n": {
        "max": 255
      }
    },
    {
      "k": "score levels",
      "v": "2 to 10, 0-indexed, ordered low to high",
      "why": "A score is probability-weighted, so it lands between levels. Do not assume an integer.",
      "why_zh": "score 是概率加权的，会落在两级之间。不要假设它是整数。",
      "n": {
        "min": 2,
        "max": 10
      }
    },
    {
      "k": "context",
      "v": "default: 64k tokens per request; 32k for state plus the longest question",
      "why": "On native jev-1.14.0 and jev-1.13.0, the experimental TypeSafe-Danger-Zone-Long-Context: true header raises both limits to 262k; it is slower and less accurate. See https://docs.typesafe.ai/models#long-context. No tokenizer is published; leave headroom when budgeting input.",
      "why_zh": "原生 jev-1.14.0 和 jev-1.13.0 可通过实验性请求头 TypeSafe-Danger-Zone-Long-Context: true 将两项限制均提高至 262k，但速度更慢、准确率更低。见 https://docs.typesafe.ai/models#long-context。官方没有公开 tokenizer；估算输入时应留余量。",
      "n": {
        "request_k": 64,
        "state_k": 32
      }
    },
    {
      "k": "input",
      "v": "text by default: string, JSON object, or array; experimental PNG/JPEG images on the native API",
      "why": "Native jev-1.14.0 and jev-1.13.0 accept experimental PNG/JPEG images with TypeSafe-Danger-Zone-Images: true. See https://docs.typesafe.ai/images for the image request shape. Audio and video are unsupported; pre-process them to text or typed fields. Gateway support is unverified.",
      "why_zh": "原生 jev-1.14.0 和 jev-1.13.0 可通过 TypeSafe-Danger-Zone-Images: true 启用实验性 PNG/JPEG 图像输入。图像请求结构见 https://docs.typesafe.ai/images。不支持音频和视频，须先转为文本或类型化字段。网关支持情况未经核实。"
    },
    {
      "k": "output tokens",
      "v": "free; the model generates no text",
      "why": "Only input is charged, which is what makes per-item judgement at scale affordable.",
      "why_zh": "只对输入计费 —— 这正是大规模逐条判断得以负担的原因。"
    },
    {
      "k": "streaming",
      "v": "not supported anywhere",
      "why": "The upstream API does not stream, so no gateway can add it.",
      "why_zh": "上游 API 本身不支持流式，因此任何网关都加不上。"
    },
    {
      "k": "self-hosting",
      "v": "impossible; no published weights",
      "why": "Anything that runs locally is a different model with a compatible wire format. Calibration does not transfer, so neither do thresholds.",
      "why_zh": "任何能本地运行的都是另一个模型，只是协议兼容。校准不会迁移，所以阈值也不会。"
    }
  ],
  "not_model_strings": [
    {
      "s": "typesafe/jev-1",
      "why": "The most repeated fabrication about this model. It appears in no vendor or gateway documentation; OpenRouter's string is typesafe/jev-1.13."
    },
    {
      "s": "jev-1",
      "why": "Not a model ID. The native API accepts jev-1.14.0, jev-1.13.0, jev-latest and jev-preview."
    }
  ]
}
