Instructor and Outlines both get structured data out of language models, but they work at different points. Instructor works after generation. You describe the data as a Pydantic model, it asks the provider for those fields, validates the reply, and if validation fails it retries with Pydantic's error message as feedback. Outlines works during generation. With local models it uses a logits processor, so the model can only produce tokens that fit your type, whether that's a Pydantic model, a regular expression, a list of choices or a context-free grammar.
That difference decides most of the choice. Instructor is at its best with hosted APIs such as OpenAI, Anthropic and Gemini. Outlines is at its best when you run the model yourself with Transformers, llama.cpp, MLX-LM or vLLM.
As of November 2026, Instructor 1.18.0 came out on 26 November (MIT, Python 3.10+). Outlines' latest release is 1.3.3 from 6 August 2026 (Apache-2.0, Python 3.10 up to 3.13), though the repository was still being pushed to in late November. Outlines is maintained by .txt, a company that also sells structured generation work.
How they compare
| Aspect | Instructor | Outlines |
|---|---|---|
| How structure is enforced | Validate the response with Pydantic and retry on failure (for example max_retries=3), feeding the error back to the model. | Constrain token sampling so invalid output can't be produced; with hosted APIs it relies on what the provider supports. |
| Output types | Pydantic models, including nested objects and lists, with your own validators for custom rules. | Basic Python types, Literal choices, Pydantic or JSON Schema, regular expressions and context-free grammars. |
| Hosted APIs | One from_provider() call covers OpenAI, Anthropic, Google, Groq and Ollama, among others. | Its features matrix shows JSON Schema for OpenAI, Mistral, Ollama and Dottxt, partial support for Gemini, and no structured types for Anthropic. |
| Local and self-hosted models | Ollama through the same provider string. | Transformers, llama.cpp, MLX-LM and vLLM offline locally, plus vLLM, SGLang and TGI servers, several with regex and grammar support. |
| Streaming | Streams partial objects as they're generated. | Not covered in the README sections we read. |
| Other languages | Separate implementations for TypeScript, Ruby, Go, Elixir and Rust. | Python only. |
| Release pace | 1.18.0 on 26 November 2026, after 1.17.0 in September. | 1.3.3 on 6 August 2026; no tagged release since then as of November 2026. |
Price at a glance
| Plan detail | Instructor | Outlines |
|---|---|---|
| Free option | Open source | Open source |
| How paid plans charge | No paid product | No paid product |
| Cheapest paid plan | No monthly USD price published | No monthly USD price published |
Entry plans differ in what they include, so read the full pricing in the Instructor and Outlines reviews. From the same data as our AI tool pricing overview, checked November 2026.
Choose Instructor if…
- You call hosted models, especially Anthropic, and want one interface across providers.
- You need business-rule validation (ranges, cross-field checks), not just a valid shape.
- You want partial objects streamed to a UI.
- Your stack includes TypeScript, Ruby, Go, Elixir or Rust.
Choose Outlines if…
- You run open-weight models yourself and want valid output on the first pass, with no retry cost.
- You need regex or grammar constraints, such as a fixed ID format or a small DSL.
- Your outputs are classifications where a Literal choice is the whole answer.
- You serve models with vLLM or SGLang and want constraints applied at the server.
Researched November 2026 from each product's official documentation and pricing pages. Prices and features change often, so check the vendors' sites before you decide.
Sources
- github.com /567-labs/instructor
- github.com /567-labs/instructor/releases
- pypi.org /project/instructor
- github.com /dottxt-ai/outlines
- github.com /dottxt-ai/outlines/releases
- pypi.org /project/outlines
- dottxt-ai.github.io /outlines/latest/features/models