Spring and AI without Spring AI
summary
Builds runnable Spring clients that call OpenAI-style REST endpoints using HTTP Exchange Interfaces, Jackson and Java records, not a framework wrapper. Demonstrates Chat completions, DALL·E image generation (base64 decode to file, ~$0.04 per image), and Whisper transcription (minute‑based pricing ~$0.006/min), and shows token costs for GPT‑4 Turbo at $10 per million tokens (~$0.01 per 1k). Produces MP3 byte[] responses, handles snake_case mapping and validation, compiles to a Graal native image (~100 MB binary, ~0.08 s startup) and it works end to end.
AI-written summary · about
chapters (10)
- 0:00Introduction and AI tools
- 3:47Accessing AI as REST services
- 13:28Spring REST client options
- 22:34HTTP exchange interfaces
- 33:50Validation with Spring
- 41:39Audio generation demo
- 48:47GraalVM native image
- 55:15Image generation demo
- 57:00RAG and frameworks
- 1:00:52Summary and Q&A
related talks
51mIntelligent Applications with Spring AI
01h 00mSpring AI
52mIntelligent Beans with Spring AI
35mUnleashing Creativity with Spring AI
45mThe Overwhelmed Spring Developer's Guide To AI
54mAI 202: Next-Level AI Mastery for Java Developers
49mSpring AI: Seamlessly Integrating AI into Your Enterprise Java Applications
28mSpring AI: Streamlining Java Enterprise AI Development and Deployment
