Guidance logo

Guidance

★★★★★4.1Dev FrameworksFreeUpdated 27 Oct 2026

Program prompts like control flow

Guidance interleaves generation with Python control flow, so prompts can branch, loop and constrain output precisely.

Guidance logo

Starter prompts

Copy one into Guidance and swap the {braces} for your own details.

  • Scaffold a {stack} project that does {task}, with tests and a README.
  • Wire {service} into this framework and show the smallest working example.
  • Explain where {framework} fits compared to {alternative} for {use case}.

Key Features

Interleaved control

Generate, then branch on the result.

Token constraints

Regex and select-based generation.

Multiple backends

Local and hosted models.

How to Use

  1. Write a program with lm calls inline.
  2. Add selects or regexes where structure matters.
  3. Run and inspect the generated trace.

Core Advantages

  • ✓Fine-grained control
  • ✓Cuts token waste
  • ✓Deterministic sections

Who It's For

Prompt engineersML engineersResearchers

Pricing & Free Trial

Free open sourceIndicative — not yet re-checked

Open source

$0

MIT licensed

Free tier: Library free.

Prices are indicative — check the current list on guidance.readthedocs.io

Frequently asked questions

What is Guidance?
Guidance interleaves generation with Python control flow, so prompts can branch, loop and constrain output precisely.
Is there a free plan for Guidance?
Library free.
How much does Guidance cost?
Guidance uses a free open source model — see the pricing section for the plans we have on file.
What can Guidance do?
Its headline capabilities: interleaved control; token constraints; multiple backends.
Who is Guidance for?
It is aimed at prompt engineers, ML engineers, researchers.

Our Verdict

Powerful but niche; most teams are better served by simpler SDKs.

Community rating

—
0 ratings

Tap a star to rate this tool

More like this

Compare Guidance with alternatives

Put Guidance next to its closest rivals — ratings, free tiers and entry prices in one table:

  • Ollama logoOllama★ 4.6
  • Instructor logoInstructor★ 4.4
  • Pydantic AI logoPydantic AI★ 4.4
Open the comparison table