Skip to main content
Intermediate·1 hour·6 lessons

Building with the Claude API

Build applications with the Claude API — from your first SDK call through streaming, tool use, document processing with citations, extended thinking, and cost optimization, culminating in a document research agent capstone.

What you'll learn

Messages API & multi-turn conversations
Streaming (SSE events)
Tool use, server tools & structured outputs
PDFs, vision & citations
Extended thinking
Prompt caching, batching & cost optimization

Your instructor

Marcus Williams

Developer Experience Engineer, Anthropic

Marcus builds the tools and documentation that help developers.

Syllabus

01

Your First API Call

Install the SDK, make your first call to Claude, and build multi-turn conversations — with a preview of the document research agent you'll build as your capstone.

02

Streaming and Real-Time Responses

Stream tokens to users in real time using SSE events and SDK helpers, including handling tool calls and thinking blocks mid-stream.

03

Tool Use — Giving Claude Hands

Define tools with JSON Schema, handle the tool-use loop, use server-side tools like web search, and build agentic loops for multi-step task completion.

04

Documents, Vision, and Citations

Send images and PDFs to Claude, get grounded citations back with precise source references, and build multi-document analysis pipelines.

05

Thinking, Caching, and Cost Control

Enable extended thinking for complex reasoning, cache prompts for 90% input savings, route between models, and handle production error patterns.

06

Project — Document Research Agent

Build a document research agent that combines every API feature: multi-turn conversations, streaming, tool use, PDF citations, extended thinking, and cost optimization.

This course includes

  • 6 self-paced lessons
  • 1 hour of content
  • Claude tutor on every lesson
  • Certificate of completion

Free to start. No credit card required.