🚀 SPRING AI + OPENROUTER free API key: BUILD A CHATBOT REST API IN 10 MINUTES (SPRING BOOT 4)
Автор: Vincent Vauban
Загружено: 2026-01-31
Просмотров: 80
Описание:
🚀 Want a SIMPLE chatbot in Spring Boot… exposed by ONE REST endpoint?
In this video, I plug an OpenRouter API key into Spring AI + Spring Web and ship a working chatbot you can test with a curl in minutes. 🤖✅
🔸 WHAT YOU’LL LEARN
✅ Create an OpenRouter API key (quick setup)
✅ Generate a Spring Boot project with Spring AI + Spring Web
✅ Configure `application.yml` (base URL + API key) 🔐
✅ Create a tiny REST controller for a chatbot endpoint
✅ Test it instantly with curl / ReqBin
🧩 STACK USED
▪️ Spring Boot 4
▪️ Spring AI (OpenAI-compatible client)
▪️ OpenRouter (model routing, e.g. GPT-4o-mini)
⏱️ CHAPTERS
00:00 Intro — goal of the video
00:47 Create OpenRouter API key 🔑
01:33 Generate project (Spring Initializr)
01:58 Add dependencies (Spring Web + Spring AI)
04:16 Configure application.yml ⚙️
04:36 Create the REST controller 🧑💻
07:34 Run the app ▶️
08:01 Test with curl / ReqBin 🧪
09:20 Notes: model choice + temperature for better consistency 🎛️
🧪 QUICK TEST (EXAMPLE)
POST /api/chat
Body: { "message": "Say hello" }
📘 WANT TO GO DEEPER ON SPRING (CERT/PRO STYLE)?
If you like this practical approach, grab my book:
“Study guide for Spring” 👉 https://bit.ly/springtify
👍 If this helped, drop a like, subscribe, and tell me what you want next:
▪️ Streaming responses (SSE)
▪️ Chat memory (conversation history)
▪️ Prompt templates + guardrails
#Spring #SpringBoot #SpringAI #OpenRouter #Java #RESTAPI #Chatbot #LLM #AIEngineering #Backend #WebDevelopment #DevTips
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: