Guidance

Observability & Evals · Free

Constrained generation and prompt control by Microsoft

At a glance

Open source
MIT
GitHub
21,798 stars · MIT

What is Guidance?

Guidance is a programming approach for steering language models. It is described as controlling output structure while reducing latency and cost compared with ordinary prompting or fine-tuning. It constrains generation with regular expressions and context-free grammars (CFG), and lets you naturally mix control such as conditionals, loops, and tool use with generation. It is installed via PyPI and supports several backends, including Transformers, llama.cpp, and OpenAI. In Jupyter notebooks, results are shown with a widget.

  • Working with language models using Python syntax
  • Restrict output format with regular expressions and CFG (constrained generation)
  • Make the model pick just one item from a fixed list with select()
  • Control that mixes generation with conditionals, loops, and tool use
  • Various backends such as Transformers, llama.cpp, and OpenAI
  • Provides a Jupyter notebook widget
  • Easily capture generated text by name

Pricing

Open source + paid cloud-managed plans

Open-source edition is free, SaaS managed edition is a paid subscription based on usage/seats

Estimate based on AI knowledge - please verify on the official site

AI tools similar to Guidance (alternatives)

Guidance vs. alternatives at a glance

AIPricingCombos on the mapConnected toolsFreeCheapest monthlyKorean
GuidanceFree03———
PromptfooFree03Yes—No
PromptLayerFree + paid03Yes$49/moNo

2 of these 3 tools have a free plan. Cheapest paid plan: PromptLayer ($49/mo).

Combo and connection counts are based on the relationships recorded on AI Galaxy Map (2026-10-26); they are not a quality ranking.

Guidance on AI Galaxy Map

  • One of 27 AI tools in the Observability & Evals field.
  • Connected to 3 other tools — #20 in its field.

Frequently asked questions

Can I use Guidance for free?

Open source + paid cloud-managed plans. Prices can change, so check the official site before paying.

What AI can I use instead of Guidance?

Tools that do the same job, such as Promptfoo, PromptLayer, PromptFlow, are connected to it on the map.

Sources (official pages)

Checked on the official pages on 2026-10-14. Prices and features can change, so check the official site again before paying.

HomeTrendsTools