openai/openai-java
The official Java library for the OpenAI API observed · 2026-08-28
Health v2 · maintenance only
84/100
- Activity 99
- Release rhythm 87
- Longevity 47
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 1.0
- age_days: 671
- days_rel: 7
- days_push: 7
- n_releases_24m: 211
Adoption not part of the score
1515 stars · 253 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
The official Java SDK for accessing the OpenAI REST API, written in Kotlin and published to Maven Central. It provides typed clients for the Responses API, Chat Completions, and other OpenAI services from Java 8+ applications.
Use cases
- call the openai api from java
- generate text with gpt models in a jvm app
- integrate chat completions into a spring service
- use openai responses api from kotlin
- add llm features to a java backend
- stream openai model responses in java
When to choose
- you need official, well-maintained OpenAI API access on the JVM
- you want typed request/response models instead of hand-rolled HTTP calls
- your project targets Java 8+ with Maven or Gradle
When to avoid
- you use a non-OpenAI LLM provider
- you need a language other than Java/Kotlin on the JVM
- you want an unofficial lightweight wrapper with fewer abstractions
Facets
library · maturity active
sdk http-client llm-inference chatbot artificial-intelligence large-language-models developer-tools apis jvm cross-platform openai gpt official-sdk rest-api okhttp maven gradle
1 source
- readme: https://github.com/openai/openai-java · fetched 2026-08-28 · edc6f6cdafb4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| openai/openai-java | main | 84 |
For agents
markdown · JSON · MCP: product_card(name="openai/openai-java")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem