Skip to main content

Overview

Groq provides low-latency inference for hosted open-weight models. Supported modes depend on the specific model, but generally include:
  • Instructor markdown-JSON fallback - fallback mode
  • native JSON object response_format - recommended
  • tool calling - supported
Here’s how you can use Instructor with Groq API.

Example