This version is still in development and is not considered stable yet. For the latest snapshot version, please use Spring AI 1.0.0-SNAPSHOT! |
Spring AI API
Introduction
The Spring AI API covers a wide range of functionalities. Each major feature is detailed in its own dedicated section. To provide an overview, the following key functionalities are available:
AI Model API
Portable Model API
across AI providers for Chat
, Text to Image
, Audio Transcription
, Text to Speech
, and Embedding
models.
Both synchronous
and stream
API options are supported.
Dropping down to access model specific features is also supported.
![Model hierarchy](../_images/model-hierarchy.jpg)
With support for AI Models from OpenAI, Microsoft, Amazon, Google, Amazon Bedrock, Huggingface and more.
![spring ai chat completions clients](../_images/spring-ai-chat-completions-clients.jpg)
Vector Store API
Portable Vector Store API
across multiple providers, including a novel SQL-like metadata filter API
that is also portable. Support for 14 vector databases are available.
Function Calling API
Function calling
. Spring AI makes it easy to have the AI model invoke your POJO java.util.Function
object.
![Function calling](../_images/function-calling-basic-flow.jpg)
Check the Spring AI Function Calling documentation.
Feedback and Contributions
The project’s GitHub discussions is a great place to send feedback.