Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Understanding Tokens and Cost Management in LLM Applications with Spring Boot

Dan Vega via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn to build a professional token tracking system for Large Language Models (LLMs) in this hands-on tutorial that demonstrates how to monitor and optimize AI request costs. Master token management by developing a Spring Boot application integrated with Spring AI, featuring automated usage logging through Spring AOP. Explore essential concepts including prompt tokens, generation tokens, and total usage tracking while implementing custom response objects for enhanced data handling. Discover the intricacies of token pricing structures, context window sizes, and best practices for production-level token monitoring. Gain practical experience creating a complete token tracking solution using Java and Spring Boot, with detailed guidance on REST API integration and automated logging implementation. Suitable for Java developers with basic knowledge of Spring Boot and REST APIs who want to effectively manage and optimize their AI implementation costs.

Syllabus

Introduction to Tokens
Spring AI Course Announcement
What are Tokens?
Token Pricing Structure
Context Window Size Explained
Building Token Demo Application
Adding Custom Response Logging
Implementing AOP Solution

Taught by

Dan Vega

Reviews

Start your review of Understanding Tokens and Cost Management in LLM Applications with Spring Boot

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.