---
title: "Structured Output Generator"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/generators/structuredoutputgenerator
markdown: https://docs.nodetool.ai/nodes/nodetool/generators/structuredoutputgenerator.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/generators/structuredoutputgenerator.md
---

# Structured Output Generator

**Type:** `nodetool.generators.StructuredOutputGenerator`

**Namespace:** `nodetool.generators`

## Description

Generate structured JSON objects from instructions using LLM providers.
    data-generation, structured-data, json, synthesis

    Specialized for creating structured information:
    - Generating JSON that follows dynamic schemas
    - Fabricating records from requirements and guidance
    - Simulating sample data for downstream workflows
    - Producing consistent structured outputs for testing

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| system_prompt | `str` | The system prompt guiding JSON generation. | ` You are a structured data generator focused on...` |
| model | `language_model` | Model to use for structured generation. | `{"type":"language_model","provider":"empty","id...` |
| instructions | `str` | Detailed instructions for the structured output. | `` |
| context | `str` | Optional context to ground the generation. | `` |
| max_tokens | `int` | The maximum number of tokens to generate. | `4096` |
| image | `list[image]` | Optional images to include in the generation request. Accepts a list, or a single Image (auto-wrapped). Each becomes a separate block in the message sent to the provider. | `[]` |
| audio | `list[audio]` | Optional audio to include in the generation request. Accepts a list, or a single Audio (auto-wrapped). Each becomes a separate block in the message sent to the provider. | `[]` |

## Outputs

_(none)_

## Related Nodes

Browse other nodes in the [nodetool.generators](./) namespace.
