Home Projects outlines
outlines
Python

outlines

Structured Outputs

by dottxt-ai · GitHub
Stars
Forks
License
Created
Last commit
Category
Language
cfggenerative-aijsonApache-2.0Python
View on GitHub
In plain words

Outlines constrains model generation so outputs are guaranteed to match a regex, JSON schema or grammar, at the token level, including with local models.

From the README

Excerpts from the project README on GitHub. Copyright and licensing remain with the respective authors.

You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
outlines — GitHub preview card
📈 Star history
16k14k
2026-06-282026-08-31
📈 Track outlines

Get an email alert on its next release or when it starts trending — never miss the moment.

Free · no card · unsubscribe anytime
Get email alerts →
📄 About

Structured Outputs

outlines has 15.7k stars on GitHub. It has been forked 869 times. outlines is written mainly in Python. It has been in active development since 2023. outlines is available under the Apache-2.0 license. Its main topics are cfg, generative-ai, json, llms.

Read the full guide
Frequently asked questions

What is outlines?

Structured Outputs

Is outlines open source?

outlines is an open-source project. It is released under the Apache-2.0 license.

Is outlines free?

Yes. outlines is free and open source — you can use, modify and self-host it.

What license does outlines use?

outlines is available under the Apache-2.0 license.

What language is outlines written in?

outlines is written mainly in Python.

🏅 Maintainer of this project?
olud.ai badge — outlines

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![olud.ai](https://olud.ai/badge.php?tool=dottxt-ai-outlines)](https://olud.ai/project/dottxt-ai-outlines.html)
More badge options →
🧬 Related projects🧬 View the DNA map →