
Instructor
Open-source library that gets typed, validated structured data from LLMs, with automatic retries, for 15+ providers.
Is Instructor free?
Yes, Instructor has a free plan. What you get: Open source (MIT): free library; you bring your own LLM provider or local model. To get it: pip install instructor; then set your provider's API key or run a local model; then call client.create with a Pydantic response_model. Verified on python.useinstructor.com.
Free plan at a glance
- Includes
- Open source (MIT): free library; you bring your own LLM provider or local model
MIT licensed and free; the LLM provider you call sets any cost or rate limit.
- Duration
- Free forever
- Commercial use
- Allowed on the free plan
How to get it free
Self-host- pip install instructor
- Set your provider's API key or run a local model
- Call client.create with a Pydantic response_model
Good to know
- You supply the LLM: a provider API key or a local model
python.useinstructor.com, Checked Source
Overview
Instructor turns LLM responses into validated Pydantic objects: you define a model, and it builds the schema, checks the reply and retries when validation fails. It is MIT licensed, available for Python, TypeScript, Go, Ruby, Elixir and Rust, and works with hosted or local models.
Key features
- Define the output you want as a Pydantic model and get a typed object back
- Automatic retries when the response fails validation
- Streaming of partial responses and lists
- One from_provider interface for OpenAI, Anthropic, Google, Mistral, Cohere, Ollama, DeepSeek and more
- Runs open-source models locally through Ollama, llama-cpp-python or vLLM
- Hooks for logging, monitoring and custom error handling
Best for
- People
- Python developers extracting structured data from text with LLMs, Teams that switch between LLM providers, Developers running local models who need validated JSON output
Limitations
- You need an LLM provider key or a local model; provider usage is billed by that provider
- A code library: it needs programming, with basic Pydantic knowledge helping
FAQ
- Is Instructor free?
- Yes. Instructor has a free plan: Open source (MIT): free library; you bring your own LLM provider or local model. We last checked python.useinstructor.com's pricing page on 2026-10-24.
- What does the Instructor free plan include?
- Open source (MIT): free library; you bring your own LLM provider or local model. Source: https://python.useinstructor.com/ (checked 2026-10-24).
- How do I get Instructor for free?
- Steps: pip install instructor; Set your provider's API key or run a local model; Call client.create with a Pydantic response_model. Start at https://python.useinstructor.com/ (checked 2026-10-24).
- Do I need an account to use Instructor for free?
- Not for the free option: the free route is to self-host Instructor (pip install instructor). Checked 2026-10-24.
- What's the catch with Instructor's free plan?
- You supply the LLM: a provider API key or a local model. Checked 2026-10-24.
- What are free alternatives to Instructor?
- Tavily (free plan), Exa (free credits) and Requesty (free plan) are free alternatives. We checked their free offers on 2026-10-25.
- Is Instructor free and open source?
- Yes. Instructor is licensed under the MIT License and installs with pip.Source: python.useinstructor.com
- Which LLM providers does Instructor support?
- 15+ providers, including OpenAI, Anthropic, Google Gemini, Mistral, Cohere, Ollama and DeepSeek.Source: python.useinstructor.com
- Can I use Instructor with open source models?
- Yes. It works with Ollama, llama-cpp-python and other local models.Source: python.useinstructor.com
- Do I need to know Pydantic to use Instructor?
- Basic Pydantic knowledge helps, but you can start with simple models and learn advanced features as you need them.Source: python.useinstructor.com
Free alternatives

Tavily
Search API built for AI agents.
Free forever, 1,000 API credits per month

Exa
Web search API for AI.
Free credits, Start free with over $120 in credits per year

Requesty
LLM router and gateway with cost tracking.
Free forever, Free $0 plan: full platform on free models

Crawl4AI
Open-source LLM-friendly web crawler.
Free forever, Open source

Agenta
Open-source LLMOps platform for prompts and evals.
Free forever
Sources
- Free offer
- Verified on python.useinstructor.com
…project is licensed under the terms of the MIT…
Added by our team. We check that a free option exists and record the date; signing up is between you and Instructor, so read their privacy policy and terms first.
Is this your tool? Claim it · Promote it