About this course
Over two days you will build a complete LLM application using the Claude API and the OpenAI API. You will learn to manage prompts as code, obtain reliable JSON through structured output, let the model call functions through tool use, and implement streaming. Cost, rate limits, error handling and the secure handling of API keys are also covered.
What you will learn
- 01Call the Claude and OpenAI APIs using the official SDKs.
- 02Enforce reliable, validated output with structured output and JSON schemas.
- 03Enable a model to call external functions and systems through tool use.
- 04Build a robust application with streaming, retries, caching and cost monitoring.
- 05Process images and PDFs as model input.
- 06Build a small evaluation set to compare the quality of prompts and models.
- 07Select a model based on quality, latency and cost, and process large volumes with batch APIs.
- 08Protect your application against prompt injection and the leakage of sensitive data.
Programme
- Module 1
API basics
SDKs for Python and TypeScript, messages, roles, system prompts, model choice and tokens. Hands-on: make your first API call and read out usage and cost.
- Module 2
Prompts as code
Templates, version control, and prompt caching for speed and lower cost. You will cleanly separate instructions, examples and variable input in your codebase.
- Module 3
Structured output
JSON schemas, Pydantic and Zod for reliable data extraction. Hands-on: extract and validate structured data from emails and documents.
- Module 4
Multimodal input
Sending images, screenshots and PDFs, and handling long documents within the context window. You will build an extractor for invoices or forms.
- Module 5
Tool use
Letting the model decide which functions to call, implementing the tool loop and processing results. Hands-on: an assistant that queries a database and an external API.
- Module 6
Measuring quality
Building an evaluation set, checking output automatically and using LLM-as-judge. You will compare prompts and models on hard numbers rather than gut feeling.
- Module 7
Towards a real application
Streaming UI, error handling, retries with backoff, rate limits, batch APIs, logging and secrets management. You will set up a simple web application that brings all of these together.
- Module 8
Security and cost
Prompt injection, input validation, PII filtering, and cost monitoring with budgets and alerts. To finish, you will present your own application and discuss the next steps towards production.
Audience and prerequisites
Who it is for
Developers and data engineers who want to integrate AI features into their own applications.
Prerequisites
Basic Python or TypeScript and experience with REST APIs.