
Spring AI
Application framework bringing Spring's portability and modularity to AI engineering.
About
Spring AI is an application framework for AI engineering from the Spring team. Its goal is to apply Spring ecosystem design principles — portability, modular design, and POJOs as building blocks — to the AI domain, addressing the core challenge of connecting enterprise data and APIs with AI models. It supports all major model providers (Anthropic, OpenAI, Microsoft, Amazon, Google, Ollama) across chat, embedding, text-to-image, audio transcription, text-to-speech, and moderation, with portable APIs for sync and streaming plus access to model-specific features.
Key APIs include ChatClient (a fluent API for chat models in the style of WebClient/RestClient), Advisors (reusable generative-AI patterns), structured outputs mapping model responses to POJOs, tools/function calling, observability, an ETL framework for document ingestion, model evaluation utilities, chat memory, and RAG support across a wide range of vector stores (Chroma, Milvus, Neo4j, pgvector, Pinecone, Qdrant, Redis, Weaviate, and more). Spring Boot starters for every model and vector store are selectable via start.spring.io. The project is Apache-2.0 licensed with over 9.5k GitHub stars.
What it can do
- Portable chat/embedding/image/audio APIs across providers
- ChatClient fluent API and Advisors pattern API
- Structured outputs to POJOs
- Tools/function calling and observability
- RAG with many vector store integrations
- Spring Boot auto-configuration and starters
Setup
- Bootstrap a Spring Boot app at start.spring.io with Spring AI starters
- Add your provider API key to application.properties
- Build with the ChatClient fluent API
Prerequisites
Java 17+ with Spring Boot; an API key for your chosen model provider.
Use cases
Works with
Trust score — 9/10
Scored 9/10 (verified tier, metrics-v1). Evidence: Verified via official spring.io project page + reference docs + GitHub repo, batch277; GitHub 9,542 stars; Spring Boot starters via start.spring.io; Trending score 84/100 from researcher assessment. License: Apache-2.0.
★ 9,542 GitHub stars
Sources
Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.