JSON Schema Generator for Text Classification

Generate JSON schemas for structured text classification with LLMs

Classification Type

Labels

Add the categories you want to classify text into:

Advanced Options

JSON key for the classification field

// Please add at least one label to generate a schema
// Example will appear here

Integration Guide

LM Studio:

  1. Copy the generated schema
  2. Paste into the "Structured Output" field
  3. The model will only output valid JSON

OpenAI API:

response_format = {
    "type": "json_schema",
    "json_schema": {
        "name": "classification",
        "schema": YOUR_SCHEMA_HERE
    }
}

Other APIs:

  • Use with any API supporting JSON Schema validation
  • Check your API documentation for the parameter name