chatgpt-java and ChatGPT-Java-API
These are competitors—both provide unofficial Java SDKs for integrating with OpenAI's ChatGPT APIs, offering overlapping functionality for chat interactions and API access with different implementation approaches.
About chatgpt-java
PlexPt/chatgpt-java
ChatGPT Java SDK。支持 GPT-4o、 GPT-5 API。开箱即用。An unofficial Java SDK for seamless integration with ChatGPT's GPT-5 and GPT-4 APIs. Ready-to-use, simple setup, and efficient for building AI-powered applications.
Supports function calling, token counting, multi-key round-robin load balancing, and streaming responses with context persistence. Implements HTTP/SOCKS5 proxy support and reverse proxy configuration for regional network constraints, with builder-pattern initialization. Integrates seamlessly with Spring Boot via SSE (Server-Sent Events) for real-time streaming and includes JSON-based function definition schemas for tool-use workflows.
About ChatGPT-Java-API
CJCrafter/ChatGPT-Java-API
Unofficial Java API supporting Chat, Assistants, and more!
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work