ChatGPT-Java is a Java SDK created by PlexPt that offers a convenient, out-of-the-box integration with the OpenAI ChatGPT API (including models like GPT-4o, GPT-5) for Java applications. The library supports chat completions, token counting, function calls, streaming responses, proxy configuration, custom API host, and integration with frameworks such as Spring (via SseEmitter). It abstracts the HTTP interaction and JSON parsing into simple Java objects and builders while handling details like token usage and model selection. It is published to Maven Central under the group com.github.plexpt, e.g., version 5.0.1. The SDK is designed for developers building chatbots, conversational assistants, and integrations in Java or Spring ecosystems. Being open source under MIT, it provides transparency and community contributions.

Features

  • Builder API to configure ChatGPT client with API key, proxy, timeout, custom host
  • Support for chat completions using GPT-4o/GPT-5 models, with token usage tracking
  • Function call support allowing definition of custom functions and parameter schemas
  • Streaming response support (especially for reactive frameworks, SSE)
  • Token counting utilities to measure prompt and completion cost
  • Maven Central published SDK with MIT license

Project Samples

Project Activity

See All Activity >

Categories

Build Tools

License

GNU General Public License version 3.0 (GPLv3)

Follow ChatGPT Java API

ChatGPT Java API Web Site

Other Useful Business Software
Unrivaled Embedded Payments Solutions | NMI Icon
Unrivaled Embedded Payments Solutions | NMI

For SaaS builders, software companies, ISVs and ISOs who want to embed payments into their tech stack

NMI Payments is an embedded payments solution that lets SaaS platforms, Software companies and ISVs integrate, brand, and manage payment acceptance directly within their software—without becoming a PayFac or building complex infrastructure. As a full-stack processor, acquirer, and technology partner, NMI handles onboarding, compliance, and risk so you can stay focused on growth. The modular, white-label platform supports omnichannel payments, from online, mobile and in-app to in-store and unattended. Choose from full-code, low-code, or no-code integration paths and launch in weeks, not months. Built-in risk tools, flexible monetization, and customizable branding help you scale faster while keeping full control of your experience. With NMI’s developer-first tools, sandbox testing, and modern APIs, you can embed payments quickly and confidently.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ChatGPT Java API!

Additional Project Details

Programming Language

Java

Related Categories

Java Build Tools

Registered

2025-11-14