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.

47
/ 100
Emerging

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.

403 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 19 / 25

How are scores calculated?

Stars

403

Forks

54

Language

Java

License

MIT

Last pushed

Jun 07, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/Lambdua/openai4j"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.