Skip to main content
📐

Instructor

Structured LLM outputs with Pydantic validation

Code & Development
Instructor logo

Instructor

Structured LLM outputs with Pydantic validation

Instructor is a Python library that makes it easy to get structured, validated outputs from LLMs using Pydantic models. It wraps the OpenAI (and compatible) API to automatically retry and validate JSON responses against your defined schema. Developers use Instructor to build reliable LLM pipelines that return strongly-typed, application-ready data.

Key Features

  • Pydantic-based output validation
  • Automatic retry on parse errors
  • Multi-LLM provider support
  • Streaming structured outputs
  • Async support
#structured output#pydantic#llm library#python#json extraction

Get Started

Visit Instructor
🟢
Free
Completely free to use

Quick Info

Category
Code & Development
Pricing
Free

More Code & Development Tools