<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/local-ai-models-with-lm-studio-and-spring-ai-eo7mw3wk4" -->

---
title: Local AI Models with LM Studio and Spring AI | daily.dev
description: A step-by-step guide to running local AI models with LM Studio and integrating them into a Java Spring Boot application using Spring AI. Covers downloading and...
canonical: https://daily.dev/posts/local-ai-models-with-lm-studio-and-spring-ai-eo7mw3wk4
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Local AI Models with LM Studio and Spring AI | daily.dev
og:description: A step-by-step guide to running local AI models with LM Studio and integrating them into a Java Spring Boot application using Spring AI. Covers downloading and...
og:url: https://daily.dev/posts/local-ai-models-with-lm-studio-and-spring-ai-eo7mw3wk4
og:image: https://api.daily.dev/og/posts/Eo7Mw3WK4.png
og:image:alt: Local AI Models with LM Studio and Spring AI
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Local AI Models with LM Studio and Spring AI

**[Piotr Minkowski TechBlog](https://daily.dev/sources/piotr-minkowski)** · 7 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to running local AI models with LM Studio and integrating them into a Java Spring Boot application using Spring AI. Covers downloading and running the DeepSeek-V2-Lite-Chat model in MLX format on macOS, configuring Spring AI with LM Studio's OpenAI-compatible API server, and a key gotcha: LM Studio doesn't support HTTP/2, requiring a manual override of Spring's RestClient to force HTTP/1.1. Also demonstrates using LM Studio's Anthropic-compatible API endpoint, including enabling the 'thinking' mechanism via AnthropicChatOptions.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://piotrminkowski.com/2026/03/16/local-ai-models-with-lm-studio-and-spring-ai/>

## Similar posts on daily.dev

- [Integrating Local LLMs with Spring AI Using LM Studio](https://daily.dev/posts/integrating-local-llms-with-spring-ai-using-lm-studio-ckb5xjjdp) · Baeldung · 2 upvotes · 0 comments
- [Spring AI tutorial: Get started with Spring AI](https://daily.dev/posts/spring-ai-tutorial-get-started-with-spring-ai-phjfbwkwg) · InfoWorld · 0 upvotes · 0 comments
- [Integrating LLMs with Ollama and Spring AI](https://daily.dev/posts/integrating-llms-with-ollama-and-spring-ai-ftjw4akn6) · codecentric · 0 upvotes · 0 comments
- [Spring AI 2.0 in Practice: Adding LLM Features to a Java Web App](https://daily.dev/posts/spring-ai-2-0-in-practice-adding-llm-features-to-a-java-web-app-kqfaxawkj) · Vaadin · 1 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#lm-studio](https://daily.dev/tags/lm-studio), [#spring-ai](https://daily.dev/tags/spring-ai), [#spring-boot](https://daily.dev/tags/spring-boot)

[View this post on daily.dev](https://daily.dev/posts/local-ai-models-with-lm-studio-and-spring-ai-eo7mw3wk4)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Local AI Models with LM Studio and Spring AI","url":"https://daily.dev/posts/local-ai-models-with-lm-studio-and-spring-ai-eo7mw3wk4","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/local-ai-models-with-lm-studio-and-spring-ai-eo7mw3wk4"},"datePublished":"2026-03-16T13:28:45.827Z","dateModified":"2026-06-18T02:16:20.632Z","description":"A step-by-step guide to running local AI models with LM Studio and integrating them into a Java Spring Boot application using Spring AI. Covers downloading and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/886cbbe2770f3c745e0b7325a5ea2190?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/886cbbe2770f3c745e0b7325a5ea2190?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Piotr Minkowski TechBlog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Piotr Minkowski TechBlog","logo":"https://media.daily.dev/image/upload/s--776ytlEM--/f_auto,q_auto/v1773648765/logos/piotr-minkowski?_a=BAMAMiiu0","url":"https://daily.dev/sources/piotr-minkowski"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/local-ai-models-with-lm-studio-and-spring-ai-eo7mw3wk4","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,lm-studio,spring-ai,spring-boot","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Piotr Minkowski TechBlog","item":"https://daily.dev/sources/piotr-minkowski"},{"@type":"ListItem","position":3,"name":"Local AI Models with LM Studio and Spring AI"}]}
```

