Skip to content
క
kagitha
/
openai-api
Subscribe
Index
⌘K
TAG · 1 ARTICLE
#openai-api
JAVA
Call an LLM API from plain Java with HttpClient and JSON
No framework, no SDK. Just java.net.http.HttpClient, a few records and Jackson. One small client that talks to a local model or a cloud API by changing three settings, with error handling, retries and streaming.
17 Nov 2026 · 8 min
kagitha
Close
✕
Search everything — articles, videos, chapters, agents, books
01
AI
02
Java
03
System Design
04
Series
05
Manga
06
The Lab
07
Videos
08
Quizzes
09
Books
10
Resume