# Grt1228/chatgpt-java

ChatGPT Java SDK支持流式输出、Gpt插件、联网。支持OpenAI官方所有接口。ChatGPT的Java客户端。OpenAI GPT-3.5-Turb GPT-4  Api Client for Java

Repository: https://github.com/Grt1228/chatgpt-java
Canonical: https://ross.abutalabs.com/products/grt1228-chatgpt-java
Homepage: https://chatgpt-java.unfbx.com
Language: Java
License: Apache-2.0
License Family: permissive
Topics: chatgpt, gpt-35-turbo, gpt-4, java, chatgpt-java, openai-api, openai-images, openai-whisper, whisper, openai-chatgpt, tiktoken-java, gpt-plugins
Last push: 2024-08-08T03:04:22+00:00

## Health v2 (maintenance only)
Score: 21/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 92
- inputs: {"age_days": 1299, "days_push": 755, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3423, forks 792 (observed 2026-08-28T04:08:03.858807+00:00)

## What it is
An unofficial Java SDK for the OpenAI API covering all official endpoints including chat completions (GPT-3.5/GPT-4), DALL-E image generation, TTS, Whisper speech-to-text, embeddings, fine-tuning, and token counting via TikToken. It supports streaming output via SSE and WebSocket, GPT plugins, function/tool calls, and dynamic API key handling.

## Use cases
- integrate chatgpt into a java spring boot app
- call openai api from java
- stream gpt-4 responses with sse in java
- generate images with dall-e from java
- convert text to speech with openai tts
- count openai tokens with tiktoken in java
- transcribe audio with whisper api
- build a chatbot backend in java

## When to choose
- you are a Java/JVM developer wanting OpenAI API access with full endpoint coverage
- you need streaming chat output (SSE or WebSocket) in a Java backend
- you need token counting, function calling, or plugin support in Java

## When to avoid
- you need an official, vendor-supported SDK
- you work outside the JVM ecosystem
- you need a client for providers other than OpenAI

## Facets
- artifact type: library
- maturity: active
- function: sdk, http-client, llm-inference, speech-recognition, tts, image-processing, nlp
- domain: large-language-models, artificial-intelligence, chatbots, apis, developer-tools
- platform: jvm, cross-platform
- tags: openai-api, chatgpt, gpt-4, streaming-output, tiktoken, function-calling, dall-e, whisper, unofficial-client

## Member repositories
- Grt1228/chatgpt-java (main) score 21

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:03.858807+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:05.511739+00:00, confidence not recorded.
  - readme: https://github.com/Grt1228/chatgpt-java (fetched 2026-08-28T04:08:03.858807+00:00, sha 6ad2a7f7abf0)
  - homepage: https://chatgpt-java.unfbx.com (fetched 2026-08-29T09:32:09.483968+00:00, sha 6ad2ee8a8676)
  - site_page: https://chatgpt-java.unfbx.com/docs/project_introduction (fetched 2026-08-29T09:32:09.492923+00:00, sha 413303424eeb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
