PyPI package

outlines

Updated 2026-07-16 View source ↗

#32 of 54 by Downloads / month among PyPI packages

1.9M Downloads / month

Probabilistic Generative Model Programming

About

Made with ❤👷️ by the team at .txt Trusted by NVIDIA, Cohere, HuggingFace, vLLM, etc.

The .txt API is currently in early access. Request access here →

We're working with select partners to develop new interfaces to structured generation.

Need XML, FHIR, custom schemas or grammars? Let's talk.

Audit your schema: share one schema, we show you what breaks under generation, the constraints that fix it, and compliance rates before and after. Sign up here.

LLMs are powerful but their outputs are unpredictable. Most solutions attempt to fix bad outputs after generation using parsing, regex, or fragile code that breaks easily.

Outlines guarantees structured outputs during generation —…

Excerpted from pypi.org/project/outlines/

Latest metrics

Downloads / month 1.9M 2026-07-16
Downloads / week 460.3k 2026-07-16
Downloads / day 70.9k 2026-07-16