Skip to main content

Ollama4j

Ollama4j Logo

Java library for interacting with Ollama.

Loading latest release info...
Focus on What Matters

Developer-Friendly

Provides clean and simple APIs for interacting with Ollama, including model management, chat functionalities, and authentication capability when Ollama is deployed behind proxy server.

Easy to Use

Chat with Images

Supports interactions with vision/image models, allowing you to build applications that can understand and respond to visual content. Upload images directly into your chat sessions and receive intelligent, context-aware replies.

Powered by React

Tools Support

Supports tool/function calling with tool calling models such as mistral, llama3.x, qwen, etc. Empower your models to interact with external services and data sources, enabling more complex and dynamic AI workflows.


Check out who's using Ollama4j

Datafaker

A powerful fake data generation library designed for JVM programs, offering over 200 data providers to easily create realistic and diverse datasets within minutes.

Katie

An Open Source AI-based question-answering platform that helps companies and organizations make their private domain knowledge accessible and useful to their employees and customers.

AI Player

A minecraft mod which aims to add a "second player" into the game which will actually be intelligent.

Ollama Translator Plugin

A minecraft 1.21 spigot plugin allows to easily break language barriers by using ollama on the server to translate all messages into a specfic target language.

JnsCLI

JnsCLI is a command-line tool for Jenkins, allowing you to manage jobs, builds, and configurations directly from the terminal. It also features AI-powered error analysis for quick troubleshooting.

Featured in a Research Article on AI-Assisted Code Optimization

Ollama4j was used in a research article – “Large Language Model Based Mutations in Genetic Improvement” (PubMed Central).

Explore the stuff we have built with Ollama4j

Ollama4j UI - Desktop UI built in Java with Swing