# A Guide to Structured Output in Spring AI

DevFeed: [A Guide to Structured Output in Spring AI](<https://devfeed.tech/articles/a-guide-to-structured-output-in-spring-ai-59802.md>)

Original publisher: [Read original article](<https://www.baeldung.com/spring-ai-structured-output>)

Author: Hardik Singh Behl

Published: 2026-09-25T05:15:12Z

Content type: tutorial

Language: en

Sources: [Baeldung](<https://devfeed.tech/sources/baeldung.md>)

Topics: [Spring AI](<https://devfeed.tech/topics/spring-ai.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Java](<https://devfeed.tech/topics/java.md>), [JSON Schema](<https://devfeed.tech/topics/json-schema.md>), [OpenAI API](<https://devfeed.tech/topics/openai-api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [artificial-intelligence-llm-spring-ai-chatclient](<https://devfeed.tech/tags/artificial-intelligence-llm-spring-ai-chatclient.md>), [guide](<https://devfeed.tech/tags/guide.md>), [java](<https://devfeed.tech/tags/java.md>), [json](<https://devfeed.tech/tags/json.md>), [json-schema](<https://devfeed.tech/tags/json-schema.md>), [llm](<https://devfeed.tech/tags/llm.md>), [openai](<https://devfeed.tech/tags/openai.md>), [spring-ai](<https://devfeed.tech/tags/spring-ai.md>), [spring-ai-chatclient](<https://devfeed.tech/tags/spring-ai-chatclient.md>), [structured-output](<https://devfeed.tech/tags/structured-output.md>)

## AI overview

A tutorial on using Spring AI to receive structured output from large language models and map responses directly to Java classes, collections, and other domain types. It covers configuring a chat model, defining entities, and converting responses without handwritten parsing logic.

## Source excerpt

Learn how to receive structured output from LLMs with Spring AI. The post A Guide to Structured Output in Spring AI first appeared on Baeldung.