openai4j and jvm-openai

These two tools are competitors, as both are Java client libraries aiming to provide access to the OpenAI API, but Lambdua/openai4j offers broader support for various OpenAI models and features compared to StefanBratanov/jvm-openai's more minimalistic approach.

openai4j
47
Emerging
jvm-openai
39
Emerging
Maintenance 2/25
Adoption 10/25
Maturity 16/25
Community 19/25
Maintenance 0/25
Adoption 9/25
Maturity 16/25
Community 14/25
Stars: 403
Forks: 54
Downloads:
Commits (30d): 0
Language: Java
License: MIT
Stars: 79
Forks: 11
Downloads:
Commits (30d): 0
Language: Java
License: Apache-2.0
Stale 6m No Package No Dependents
Archived Stale 6m No Package No Dependents

About openai4j

Lambdua/openai4j

Java client library for OpenAI API.Full support for all OpenAI API models including Completions, Chat, Edits, Embeddings, Audio, Files, Assistants-v2, Images, Moderations, Batch, and Fine-tuning.

Built on Retrofit and OkHttpClient, the library offers both synchronous and asynchronous streaming APIs, with vision capabilities for image analysis and tool/function calling support. It's structured as modular Maven artifacts—separating POJOs (api module) from service implementations—allowing developers to either use the full OpenAiService or build custom clients with standardized domain objects. The client handles environment variable configuration, connection pooling, and customizable interceptors for retry logic and load balancing.

About jvm-openai

StefanBratanov/jvm-openai

A minimalistic OpenAI API client for the JVM, written in Java 🤖

Scores updated daily from GitHub, PyPI, and npm data. How scores work