
Instructor
★★★★★4.4Dev FrameworksFreeUpdated 27 Oct 2026
Reliable structured output from any LLM
Instructor wraps model calls so responses validate against a Pydantic model, with automatic retries on failure.

Starter prompts
Copy one into Instructor 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
Pydantic validation
Typed objects instead of raw text.
Auto retries
Re-prompts with the validation error.
Provider agnostic
Works across major APIs.
How to Use
- Define the output model.
- Call the client with response_model set.
- Handle the validated object directly.
Core Advantages
- ✓Removes parsing code
- ✓Very reliable
- ✓Tiny footprint
Who It's For
Python developersData extractionAPI builders
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 python.useinstructor.com
Frequently asked questions
- What is Instructor?
- Instructor wraps model calls so responses validate against a Pydantic model, with automatic retries on failure.
- Is there a free plan for Instructor?
- Library free.
- How much does Instructor cost?
- Instructor uses a free open source model — see the pricing section for the plans we have on file.
- What can Instructor do?
- Its headline capabilities: pydantic validation; auto retries; provider agnostic.
- Who is Instructor for?
- It is aimed at python developers, data extraction, API builders.
Our Verdict
The single highest-value library for data-extraction work.
Community rating
—
0 ratings
Tap a star to rate this tool
More like this
Compare Instructor with alternatives
Put Instructor next to its closest rivals — ratings, free tiers and entry prices in one table:
Ollama★ 4.6
Pydantic AI★ 4.4OpenAI Agents SDK★ 4.4