Guidance
Programming paradigm for steering language models that constrains output with regex and grammars and interleaves control flow with generation.
Updated
✨ Try AgentScout's free AI image generator →Good for: building AI agents
Use cases
About Guidance
Guidance is listed in our frameworks category and is aimed at builders. Programming paradigm for steering language models that constrains output with regex and grammars and interleaves control flow with generation. Pricing, as the maker states it: Open source. Maturity: Mature. We last checked the official link on 2026-10-18.
What is Guidance?
Guidance is a programming paradigm for steering language models. It lets you control how output is structured and get high-quality results while reducing latency and cost compared with conventional prompting or fine-tuning.
It offers a Pythonic interface to LLMs, installs from PyPI, and supports backends such as Transformers, llama.cpp and OpenAI, with a richer widget in Jupyter notebooks.
Sources: the official README and our directory listing, checked 2026-10-18. Official site: github.com/guidance-ai/guidance.
Who is Guidance for?
Python developers who need structured, constrained output from language models, such as JSON or specific formats.
Guidance at a glance
- Open source: Yes (MIT License)
- GitHub: guidance-ai/guidance · 21,804 stars (as of Oct 21, 2026)
Key features
- Constrains and structures model output
- Pythonic interface to language models
- Backends: Transformers, llama.cpp, OpenAI and more
- Jupyter notebook widget
- Available on PyPI
Guidance FAQ
What is Guidance?
Guidance is a programming paradigm for steering language models. It lets you control how output is structured and get high-quality results while reducing latency and cost compared with conventional prompting or fine-tuning.
Who is Guidance for?
Python developers who need structured, constrained output from language models, such as JSON or specific formats.
Is Guidance free?
Guidance's pricing, as the maker states it: Open source. Open-source tools are free to use, though you may still pay for model API usage or a hosted plan. Check the official site for current plans.
Is Guidance open source?
Yes. Guidance is released under the MIT License, according to its GitHub repository.
What are alternatives to Guidance?
Similar tools include DSPy, Agent Lightning, Outlines, BAML, TypeChat and Mirascope.
Guidance ratings and reviews
Be the first to rate Guidance: tap 1 to 5 stars below. A written review is optional.
Guidance alternatives
Other frameworks tools in our directory. See all frameworks tools →
DSPy
Stanford framework for programming rather than prompting language models, with optimizers that tune prompts and weights for RAG pipelines and agent loops.
Agent Lightning
Microsoft's lightweight trainer that improves existing agents with reinforcement learning through a model proxy, without rewriting the agent's tools or control flow.
Outlines
Library from .txt for structured generation that guarantees LLM output matches a JSON schema, regex or grammar.
BAML
Typed programming language for agents and LLM functions, with runtime types, typed errors and structured outputs designed to reduce agent mistakes.
TypeChat
Microsoft library for building natural-language interfaces by using types to constrain and validate LLM responses.
Mirascope
Lightweight Python library for calling any LLM with typed outputs and tools through one interface, without a heavy framework.
Related lists
🏆 See also: AutoGen alternatives · All best-of lists
💲 Estimate API cost: compare per-request and monthly costs for GPT, Claude, Gemini and Grok models.
Badge for makers
Built Guidance? Add this badge to your README or site. It links back to this page. About badges