---
sidebar_position: 12
---

# LocalAI

https://localai.io/


## Maven Dependency

```xml
<dependency>
    <groupId>dev.langchain4j</groupId>
    <artifactId>langchain4j-local-ai</artifactId>
    <version>0.36.2</version>
</dependency>
```


## APIs

- `LocalAiChatModel`
- `LocalAiStreamingChatModel`
- `LocalAiLanguageModel`
- `LocalAiStreamingLanguageModel`


## Examples

- [LocalAiChatModelIT](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-local-ai/src/test/java/dev/langchain4j/model/localai/LocalAiChatModelIT.java)
- [LocalAiStreamingChatModelIT](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-local-ai/src/test/java/dev/langchain4j/model/localai/LocalAiStreamingChatModelIT.java)
- [LocalAiLanguageModelIT](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-local-ai/src/test/java/dev/langchain4j/model/localai/LocalAiLanguageModelIT.java)
- [LocalAiStreamingLanguageModelIT](https://github.com/langchain4j/langchain4j/blob/main/langchain4j-local-ai/src/test/java/dev/langchain4j/model/localai/LocalAiStreamingLanguageModelIT.java)
