Coursera

Claude API & Prompt Strategies

Cyber Monday: Ends today! Lock in Coursera Plus for $239/year and build skills all year.

Coursera

Claude API & Prompt Strategies

Included with Coursera PlusLearn more

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Construct multi-turn, streaming API requests that control Claude's behavior

  • Design prompts that return validated structured output and cache efficiently

  • Select and configure models to balance cost, latency, and reasoning depth

  • Author and harden tool schemas for reliable, multi-step Claude workflows

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

November 2026

Assessments

22 assignments¹

AI Graded see disclaimer
Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

Build your Software Development expertise

This course is part of the The Anthropic Developer Toolkit Professional Certificate
When you enroll in this course, you'll also be enrolled in this Professional Certificate.
  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate from Coursera

There are 15 modules in this course

This module covers how the Messages API represents a conversation: a system prompt, user and assistant roles, stop sequences, and generation parameters. You'll build a multi-turn request in Python with the Claude API that keeps context across turns and stops where you tell it to. Controlling these inputs is what makes an assistant behave the same way on its hundredth conversation as on its first. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings1 assignment

This module covers how tool use works in the Claude API: defining a tool, detecting a tool request, running your function, and returning the result. You'll wire a complete tool-use loop in Python so Claude can call a payment-verification function and answer with structured results. Tool use is how a model stops guessing and starts acting on live data in your systems. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings1 assignment

This module covers how streaming works: server-sent events, text deltas, and the partial-message events that arrive before a response is complete. You'll consume a Claude stream in Python, render tokens as they arrive, and handle interruptions and partial tool input safely. Streaming is what keeps an interface feeling instant even when the full answer takes many seconds. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings2 assignments

This module covers how prompt caching lets the API reuse a large, unchanging prefix, such as a policy manual or product catalog, across many requests. You'll mark a cacheable prefix in a Claude API call and confirm the savings from the usage data the API returns. Caching lets you pay a fraction of the normal price for repeated context while the cache is active, which matters for every application that sends the same reference material with each request. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings1 assignment

This module covers how to write prompts that make Claude return JSON in a defined shape, and how to validate that JSON before your code uses it. You'll build a prompt template and a validation step in Python with the Claude API that turns free-text orders into records your system can process. Validated output is what lets a model's answer flow into a database or workflow without a person checking it first. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings1 assignment

This module covers a repeatable method for finding why a prompt fails: classify the failure, isolate the weak section, change one thing, and re-test against a fixed set of cases. You'll analyze failing outputs from a data-extraction prompt and improve its instructions, examples, and formatting using the Claude API. A prompt you can diagnose is a prompt you can maintain, which saves hours the first time a model update or new input shifts its behavior. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings2 assignments

This module covers how Claude's model tiers differ in price, speed, and reasoning depth, and how to weigh those trade-offs against a workload. You'll run the same tasks on Haiku 5.5, Sonnet 5.5, and Opus 5.5 using the Claude application programming interface (API) and Claude Console, then justify a model choice with your own measurements. The right model choice often changes cost by an order of magnitude without changing the result users see. This content reflects the Claude API, Claude Console, and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos1 reading2 assignments

This module covers the controls that keep Claude spend predictable: output token limits, spend and rate limits in the Console, and asynchronous batch requests. You'll set token budget parameters and submit a batch of requests with the Claude application programming interface (API), then estimate the savings. These controls turn an open-ended bill into one you can forecast and defend. This content reflects the Claude API, Claude Console, and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos1 reading3 assignments

This module covers what makes a tool definition easy for Claude to choose and fill correctly: a precise name, a description that says when to use it, and typed parameters with constraints. You'll write a JSON-schema tool definition for a new integration and test that Claude selects it and supplies valid arguments. A well-designed tool schema prevents most tool-call errors before they happen, which is cheaper than handling them afterward. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings1 assignment

This module covers how tool calls fail: wrong tool, missing or invalid arguments, tool errors, and loops that never finish. You'll analyze tool-call error logs from the Claude API, decide the cause of each failure, and revise schemas and error returns to fix them. Reliable tool use is what separates an integration you can leave running from one that needs watching. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings1 assignment

This module covers how to compose several tools into one task: sequencing dependent calls, allowing independent calls in the same turn, and deciding what ends the workflow. You'll design and run a multi-tool workflow in Python with the Claude API that completes a real business task from a single request. Composing tools well is what turns individual functions into automation that people trust with whole tasks. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings2 assignments

This module covers when to use prompt caching, batching, and streaming, and how they combine on a single endpoint. You'll add all three where they fit to a high-traffic Claude API endpoint and compare cost and latency before and after. Choosing the right technique for each kind of traffic is how teams cut spend without slowing the product down. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings1 assignment

This module covers how to measure a Claude-powered service: per-call latency, time to first token, and input and output tokens, then rank the biggest contributors. You'll profile a service's API calls in Python and identify its top three hotspots. Measurement tells you where the next optimization will pay off, so you stop tuning parts of the system that don't matter. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings1 assignment

This module covers how to set a quality bar and latency budget for each endpoint and choose the cheapest Claude model that meets both. You'll test Haiku, Sonnet, and Opus on a service's endpoints using the Claude API and assign a model to each. Matching model to endpoint often delivers the largest single saving without any change to the user experience. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

2 videos2 readings2 assignments

In this project, you'll build a working support-assistant service on the Claude application programming interface (API). You'll combine multi-turn conversation control, hardened tool schemas, streaming, validated JavaScript Object Notation (JSON) output, prompt caching, and per-endpoint model choice in one Python program, using the Claude API and VS Code. Bringing these skills together in one service is the difference between demo code and a service a team can run in production, and the finished code and report belong in a professional portfolio. This content reflects the Claude API and the Anthropic software development kit (SDK) for Python as of September 2026.

What's included

1 reading1 assignment

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructor

Professionals in the Industry
Coursera
55 Courses3,879 learners

Offered by

Coursera

Explore more from Software Development

Why people choose Coursera for their career

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

What brings you to Coursera today?

Frequently asked questions

¹ Some assignments in this course are AI-graded. For these assignments, your data will be used in accordance with Coursera's Privacy Notice.