Claude models are widely used for coding, long-document work and agents, and the Claude API gives developers fine control over how they behave. This course covers the Messages API and the features around it that make the biggest difference in production: tool use, prompt caching, extended thinking, document handling and batch processing. It is an independent course, not affiliated with Anthropic. Model names, limits and prices change regularly, so we teach you to check the current documentation and make the choice yourself.
What you'll learn
- The Messages API: roles, system prompts, content blocks, stop reasons and streaming events
- Choosing between the larger, faster and cheaper model tiers for a given task
- Writing system prompts and examples that keep behaviour consistent across many requests
- Tool use: defining tools, running the tool loop, parallel tool calls and returning errors well
- Getting dependable structured output with tool schemas and validation
- Working with long documents and PDFs, and using citations so answers point back to their sources
- Extended thinking: when deeper reasoning is worth the extra tokens and latency
- Prompt caching to cut cost and latency on repeated context, and token counting before you send
- The Message Batches API for large offline jobs, and server-side tools such as web search
- The Claude Agent SDK and MCP for building agents that use files, commands and your own systems
Who it's for
- Developers adding Claude-powered features to web apps, internal tools or data pipelines
- Teams moving a prototype built in a chat interface into a real integration
- Engineers already using another provider who want to understand Claude's API in depth
Prerequisites
- Comfortable with Python or TypeScript and calling REST APIs
- Familiarity with JSON and handling secrets in environment variables
- An Anthropic Console account with API access; general LLM concepts are covered in Building AI Apps with LLM APIs
Outcomes
By the end of this course you will be able to:
- Structure Messages API requests, stream responses and handle every stop reason correctly.
- Build tool-using features that recover from tool errors instead of failing silently.
- Reduce cost and latency with prompt caching, batching and sensible model choice.
- Build a small agent with the Agent SDK and connect it to your data through MCP.
Projects you'll build
Contract and report summariser with citations. Upload long PDFs and produce summaries where each claim links to the passage it came from. Practises document inputs, citations, prompt caching and long-context design.
Internal operations assistant. A chat tool that answers questions by calling your own APIs for orders, stock and bookings, with confirmation before any write action. Practises tool definitions, the tool loop and safe action design.
Code review helper agent. A small agent built with the Agent SDK that reads a repository, runs tests and drafts review notes for a human to approve. Practises agent configuration, permissions and tracing.
Tools you'll use
The Anthropic SDKs for Python and TypeScript, the Claude Agent SDK, the Anthropic Console and Workbench, an MCP server of your own, and pytest or Vitest for evaluations.
Course outline
| Module | Topic |
|---|---|
| 1 | Console, keys, rate limits and model tiers |
| 2 | The Messages API and streaming |
| 3 | System prompts, examples and consistent behaviour |
| 4 | Tool use and the tool loop |
| 5 | Structured output and validation |
| 6 | Long documents, PDFs and citations |
| 7 | Extended thinking and harder reasoning tasks |
| 8 | Prompt caching, token counting and batches |
| 9 | Server-side tools and the MCP connector |
| 10 | The Claude Agent SDK |
| 11 | Evaluation, safety and production operations |
| 12 | Project: shipping a Claude-powered feature |
FAQ
How is this different from Building MCP Servers?
This course is about calling Claude from your code and building agents with it. Building MCP Servers focuses on the other side: exposing your own tools and data to any MCP-compatible assistant.
Do I need to know other model APIs first?
No. If you want provider-neutral patterns, Building AI Apps with LLM APIs covers them, and Building with the OpenAI API covers a different platform in the same depth.
Is this an official Anthropic course?
No. It is an independent course that covers the topics of building on the Claude API, and is not affiliated with or endorsed by Anthropic.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.