TAG · 5 ARTICLES

#rest-api

  1. JAVACall an LLM API from plain Java with HttpClient and JSONNo 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
  2. AICall a local LLM from Java with Ollama: HttpClient, a stateless request, then a chatbot with memoryPlain Java, no AI framework. We call Ollama's /api/chat with HttpClient and Jackson, prove the model remembers nothing between requests, then build a terminal chatbot that remembers, and see why the assistant role and the context window matter.15 Nov 2026 · 8 min
  3. AICall a local LLM from Python with Ollama: a stateless request, then a chatbot with memoryStep-by-step Python code that calls Ollama's /api/chat. First we prove the model remembers nothing between requests. Then we build a terminal chatbot that remembers, and see why the assistant's answers and the context window matter.15 Nov 2026 · 7 min
  4. AIOllama REST API: /api/generate vs /api/chat, with curl and Postman examplesEvery Ollama app, command and library talks to the same REST API. Here are its two main endpoints side by side, tested in curl and Postman, plus what stream and think really do when you set them to true or false.15 Nov 2026 · 9 min
  5. AIWhat is Ollama? The video player for AI models, and localhost:11434 explainedThe model is the movie. Ollama is the player. Here is what Ollama really is, why everything talks to localhost:11434, and what happens inside when you ask it a question.15 Nov 2026 · 7 min