Skip to content

TypeLLM

Library that adds schema-guaranteed typed outputs to existing autoregressive LLMs without changing weights, served through SGLang or a hosted API.

Stars
941
Language
Python
License
APACHE-2.0
Published by
Community
Author
TypeLLM
Last verified
Oct 2026

About this project

Homepage   •   Blog   •   Docs   •   Examples   •   API   •   Contact   🚀 TypeLLM API is live: typed outputs without serving a model, $5 free credit. Try it · Quick start · Examples. [2026/10/08] Conditional fields can test how sure an answer is: "when": {"category": {"confidence": {"gte": 0.8}}}. [2026/10/05] Added objects and arrays: group typed properties into one value, or return a variable number of typed items.

Quoted from the project's README. Read the full README.

Highlights

  • Declares string, integer, number, boolean, and enum fields with instructions, including nullable types and bounded numeric decoding.
  • Runs independent fields together and honors depends_on graphs with shared-prefix reuse, plus conditional fields answered only when triggered.
  • Offers per-field thinking with a token budget alongside image inputs for vision-language models and permutation averaging for order bias.
  • Uses one client for cloud or self-hosted models, with typed results, per-field reasoning traces, and token usage on every response.

Watch out

Free text stops after a bounded token limit unless raised explicitly, enums cap at 24 values, and thinking mode adds tokens. Cloud use needs an API key; self-hosting needs a GPU server. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

Open 150M encoder that reproduces the typed noul, choice, and score interface in one forward pass, trainable on a free GPU and runnable locally for nothing.
Jev Demos & Experiments#community#jevbest#catalog-import
55GitHub stars
Toolkit that makes a model behind an OpenAI-compatible endpoint or running in-process answer typed choice, score, and yes/no questions from next-token probabilities in Jev API shape.
Jev Demos & Experiments#community#jevbest#catalog-import
164GitHub stars
End-to-end toolkit that synthesizes decision data, trains and calibrates candidate scorers, evaluates fixed splits, and serves Jev-compatible inference for interactive web decisions.
Jev Demos & Experiments#community#jevbest#catalog-import
70GitHub stars
Self-hosted proxy that records typed decisions, distils them into small heads on a frozen encoder, and answers locally when confident.
Jev Demos & Experiments#community#jevbest#catalog-import
42GitHub stars
Open harness that renders allowed JSON answers on a diffusion canvas, denoises for a fixed step budget, then picks the top allowed tokens from final logits with no training.
Jev Demos & Experiments#community#jevbest#catalog-import
16GitHub stars
Python kit pairing a Jev CLI for verify, screen, classify, extract, match, route, ask, find, rerank, compact, and batch with an MCP server exposing the Jev ruleset over stdio.
Jev Demos & Experiments#community#jevbest#catalog-import

From the Jev guides

Original write-ups on what this entry is for.

A game tick is a state plus a legal action list. How Clash Royale, Minecraft, and the earlier Mario, Pokémon, StarCraft, and drone loops ask Jev one step at a time.
Jev Demos & Experiments#gaming#agents#control
Read article
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai