Home Projects openai4j
openai4j
Java

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.

by Lambdua · GitHub
Stars
Forks
License
Created
Last commit
Language
assistants-apichatgptchatgpt4MITJava
View on GitHub
In plain words

Interact with OpenAI's various models easily using this Java library designed for quick API setup and usage.

You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
openai4j — GitHub preview card
📈 Star history
375374
2026-07-202026-08-31
📈 Track openai4j

Get an email alert on its next release or when it starts trending — never miss the moment.

Free · no card · unsubscribe anytime
Get email alerts →
📄 About

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.

openai4j has 374 stars on GitHub. It has been forked 55 times. openai4j is written mainly in Java. It has been in active development since 2024. openai4j is available under the MIT license. Its main topics are assistants-api, chatgpt, chatgpt4, gpt-4o.

Frequently asked questions

What is 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.

Is openai4j open source?

openai4j is an open-source project. It is released under the MIT license.

Is openai4j free?

Yes. openai4j is free and open source — you can use, modify and self-host it.

What license does openai4j use?

openai4j is available under the MIT license.

What language is openai4j written in?

openai4j is written mainly in Java.

🏅 Maintainer of this project?
olud.ai badge — openai4j

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![olud.ai](https://olud.ai/badge.php?tool=lambdua-openai4j)](https://olud.ai/project/lambdua-openai4j.html)
More badge options →
🧬 Shares DNA with🧬 View the DNA map →

Measured from GitHub topics shared by both projects, weighted by how rare each topic is.