AI Engineering Foundations with Claude
Learn what a large language model is, how the Claude model family differs, and how to call Claude from Python. First course in the Claude AI Engineer path.
View badge details
About This Course
Modern software increasingly means calling large language models from your own code, and Claude is among the most capable in production today. In this beginner course you will learn what a large language model actually is, how the Claude model family (Haiku, Sonnet, Opus, and Fable) differs in cost, speed, and capability, and how to make your first calls to Claude from Python. By the end you will be able to call Claude from a Python program, read a token and cost bill, and choose the right model for a task.
Course Curriculum
7 Lessons
What is a large language model?
By the end of this lesson you will understand what a large language model actually is under the hood — tokens, context windows, temperature and sampling, and why models sometimes fabricate confident-sounding but wrong answers. It is the foundation for every course in the Claude AI Engineer path; later lessons build directly on the mental model you form here. No prior LLM or AI experience is assumed.
The Claude Console, Playground, and Claude model family
By the end of this lesson you will know your way around the Claude Console at platform.claude.com — where API keys are managed, where usage and cost are tracked, and where the Playground lets you test prompts interactively — and you will be able to pick the right Claude model tier for a given task from the current family (Haiku 4.5, Sonnet 5, Opus 5.5, Fable 5.1). This is the second teaching lesson in the Claude AI Engineer path; L3 immediately puts these choices into Python code.
Your first Claude API call from Python - Lab Exercises
By the end of this hands-on lab you will have called Claude from a Python program using the official Anthropic SDK, read the response object, inspected token usage on the returned bill, and switched models with a one-line env-var change to feel the cost / latency delta between Haiku 4.5 and Sonnet 5 with your own eyes. No prior Anthropic account is required — the lab environment injects an API key via the Claude API proxy so you can focus on the code, not on setup.
Talking to Claude: system, user, and assistant messages
By the end of this lesson you will know exactly how to shape a Claude request — where the system prompt goes (a top-level parameter, not a message with role="system"), how the messages array carries conversation state across turns, how to stream responses token-by-token, and what each stop_reason value tells you about how a call finished. This grounds the message shape you saw in L3 and prepares you for the multi-turn REPL in L5.
Building a multi-turn conversation with Claude - Lab Exercises
By the end of this hands-on lab you will have built a small multi-turn REPL against Claude — a support-triage helper for Orion Analytics' on-call engineers — with a proper top-level system prompt, growing conversation history, and streaming responses that print token-by-token. You will also have hit a context-window limit deliberately and read the stop_reason to see how a truncation manifests. No prior Anthropic account required — the lab environment injects your API key.
Choosing the right Claude model for the job
By the end of this lesson you will be able to compute the USD cost of any Claude request from token counts and per-model rates, understand how prompt caching and the newer tokenizer affect that cost, and factually position the Claude model family against GPT and Gemini for a working developer's decision. This is the last teaching lesson before the CLD-AI-101 capstone, where you turn model selection into a written recommendation backed by real benchmark numbers.
Same prompt, three models: measuring cost, latency, and quality - Lab Exercises
The CLD-AI-101 capstone. You run the same three prompts against Haiku 4.5, Sonnet 5, and Opus 5.5; log token counts, wall-clock latency, and computed cost using current per-model rates; implement a small LLM-judge quality-rating loop; and produce a written recommendation for Orion Analytics' team lead defending your model choice with real numbers. No prior Anthropic account required — API key injected by the platform Claude proxy.