Building on the Claude Platform: API to Production
Go from your first Messages API call to a production-grade Claude application in Python, with TypeScript where it differs. You will learn to pick models, control cost and latency, use tools, structured outputs, caching and batch, and to test, secure and migrate what you ship.
Levels 1 and 2 are free to read, no account needed. Levels 3 and 4 are free with a free account, and so are 20 answers from the AI tutor.

Expert · 64 levels · 4 free · Created Oct 2026 · Professionally curated by levelupwith.com
What's inside
- Level 1: Orientation: The Platform and How to Verify ItFree
Sets out that this course is independent of Anthropic, maps the main parts of the Claude Platform (Console, Messages API, SDKs, CLI, cloud platforms), and builds the habit of checking every name, limit and beta status against Anthropic's current pages.- State that the course is independent of Anthropic and name the official pages (models overview, pricing, API reference, deprecations) that are the source of truth
- Sketch how the Console, API keys, the Messages API, the SDKs and the ant CLI fit together in one request path
- Check whether a feature is generally available or beta, and on which platforms, before relying on it
- Level 2: The Console, Organizations and WorkspacesFree
How an organization is divided into workspaces in the Claude Console, and why the workspace is the unit for isolating environments, resources, spend and rate limits.- Navigate the Console to find the playground, workspace settings, member roles and the rate-limit and spend-limit pages
- Design a workspace layout (for example dev, staging, production) and explain what the Default Workspace can and cannot do
- Explain which resources are scoped to a workspace (files, message batches, skills) and why that matters for multi-tenant isolation
- Level 3: API Keys and AuthenticationFree account
How requests are authenticated: the kinds of key and what each can reach, how a key maps to a workspace, and how to keep keys out of code from day one.- Create a key scoped to one workspace and load it from the ANTHROPIC_API_KEY environment variable rather than hard-coding it
- Tell apart workspace, personal, service account and Admin API keys, and say which workspace a request runs in for each
- Read the anthropic-workspace-id response header to confirm where a request's usage was counted
- Level 4: SDKs and the ant CLI: Your First CallFree account
Installing the official Python and TypeScript SDKs and the ant command-line tool, and making a first successful request with each.- Install the Python SDK, create a client and send one message, and show the equivalent TypeScript
- Install the ant CLI, authenticate with a browser login or an API key, and send a message from the shell
- Choose between the SDK, the CLI and raw HTTP for scripts, applications and debugging
- Level 5: Under the SDK: Raw HTTP, Headers and Versioning
What the SDK actually sends: the endpoint, the required headers, the API version header, beta headers and the request ID you will need when debugging.- Reproduce an SDK call with curl using the x-api-key, anthropic-version and content-type headers
- Explain what an anthropic-beta header opts into and why beta features can change shape
- Capture the request-id from a raw response in Python and TypeScript and log it for support and tracing
- Level 6: Anatomy of a Messages Request and Response
The shape of the Messages API: the required request fields and a response made of typed content blocks plus metadata, rather than a single string.- Name the required fields of a request (model, max_tokens, messages) and the main fields of a response (id, role, content, stop_reason, usage)
- Iterate over response content blocks by type instead of assuming the first block is text
- Write a small helper that extracts text safely and survives new block types appearing
- Level 7: Roles and the System Prompt
How the user and assistant roles and the top-level system parameter divide responsibility, and what belongs in each.- Place standing instructions, persona and constraints in the system parameter and per-request material in user turns
- Pass content as either a plain string or a list of content blocks and know when each is needed
- Explain why text in a user turn carries less authority than the system prompt, and why that is not a security boundary
- Level 8: Multi-Turn State: The API Remembers Nothing
The Messages API is stateless, so your application owns the conversation history and resends it on every turn.- Build a multi-turn chat loop that appends each assistant response and the next user message to a history list
- Explain why cost and latency grow as a conversation gets longer, since every turn resends everything
- Store and reload conversation history so a session can resume in a different process
- Level 9: Stop Reasons: Why Generation Ended
Every successful response says why it stopped, and production code branches on that value instead of assuming the answer is complete.- List the current stop reasons (end_turn, max_tokens, stop_sequence, tool_use, pause_turn, refusal, model_context_window_exceeded) and what each implies
- Write a dispatcher that handles each stop reason and fails loudly on an unknown one
- Distinguish a stop reason on an HTTP 200 response from an API error and handle the two on separate code paths
- Level 10: max_tokens and Handling Truncated Output
max_tokens is a hard cap on output, not a target length, and a response that hits it is cut off mid-thought and must be detected and dealt with.- Set max_tokens from the expected output size and the model's documented maximum rather than copying a default
- Detect a truncated response and choose between raising the cap, asking for a shorter answer and continuing in a follow-up turn
- Explain why a truncated response is still billed and why truncated JSON must never be parsed as if it were complete
- Level 11: The Model Family, IDs and the Models API
The current lineup and its tiers, how model IDs and legacy models work, and how to read capabilities programmatically instead of hard-coding them.- Name the current models and their tiers from Anthropic's models overview page and identify which are listed as legacy
- Call the Models API to read a model's input and output token limits and capability flags
- Explain why model IDs differ across platforms and where to look up the correct one for each
- Level 12: Choosing a Model by Quality, Latency and Cost
A practical method for picking a model: start from the task's requirements, compare tiers on price and speed, and let measurements decide.- Compare tiers using the published per-million-token input and output prices and the relative latency ratings
- Work out the cost of one representative request on two different models
- Justify routing high-volume simple tasks to a smaller model and reserving larger models for work that measurably needs them
- Level 13: Tokens and the usage Object
What a token is, why token counts differ between model generations, and how to read the usage block that every response returns.- Explain why the same text yields different token counts on different tokenizers and why counts must be measured per model
- Read input and output token counts from the usage object and log them on every request
- Convert usage into a cost per request using the model's current published prices
- Level 14: Context Windows and Budgeting Input and Output
The context window is a shared budget for everything the model reads and writes, and long conversations need a deliberate plan to stay inside it.- Look up a model's context window and maximum output and explain how input, output and thinking share that space
- Predict when a growing conversation will hit the limit and what the API does when it gets there
- Apply a simple strategy (trimming, summarising older turns, or a fresh session) and state its trade-offs
- Level 15: Counting Tokens Before You Send
Using the token counting endpoint to measure a request up front, and understanding what it can and cannot count.- Call count_tokens from Python and TypeScript for a request with a system prompt, messages and tools
- Explain that the count is an estimate, is free, and has its own rate limit separate from message creation
- Identify inputs the endpoint rejects (such as most server tools and URL or file sources) and fall back to the usage object for those
- Level 16: Sampling and Non-Determinism
Why the same request can return different answers, what the sampling parameters do, and how to design systems that tolerate variation.- Explain in plain terms what temperature, top_p and top_k change, and check which of them your chosen model accepts
- Run the same prompt repeatedly to measure variation rather than assuming a setting makes output reproducible
- Design around non-determinism with validation, constrained outputs and repeated-trial testing instead of relying on identical responses
- Level 17: Streaming Responses
Receiving output incrementally over server-sent events: the event sequence, the SDK helpers, and what changes in error handling.- Stream a response with the Python and TypeScript SDK helpers and render text as it arrives
- Describe the event flow from message start through content block deltas to the final message with stop reason and usage
- Decide when streaming is worth it (perceived latency, long outputs, avoiding timeouts) and handle a stream that fails part-way
- Level 18: Vision: Sending Images
How to pass images as content blocks, what they cost in tokens, and the limits and weaknesses you should design around.- Send an image by base64, URL or file ID and know which source types are unavailable on some cloud platforms
- Estimate an image's token cost from its dimensions and resize before sending to control cost and latency
- List the supported formats, the per-image and per-request limits, and tasks where vision output must be verified
- Level 19: Working with PDFs
Sending PDFs as document blocks so the model can use both the text and the visual content of each page, within the request limits.- Send a PDF as a document block and ask questions that depend on tables or charts as well as text
- Check a PDF against the current page and request-size limits and split or pre-process one that exceeds them
- Estimate the token cost of a PDF and decide when extracting plain text yourself is cheaper and good enough
- Level 20: The Files API: Upload Once, Reference by ID
Uploading files to workspace storage and referencing them by ID across requests, with the lifecycle, limits and isolation rules that come with it.- Upload a file, reference it in a message through the matching content block type, then list and delete it
- Explain workspace scoping, why file IDs must never be accepted from end users, and how to set an expiry at upload
- State which files can be downloaded, the current size and storage limits, and which platforms support the Files API
- Level 21: Tool Use: Who Runs the Code
Learn what a tool call is on the wire and how client tools (your code runs them) differ from server tools (Anthropic runs them), using one complete round trip.- Trace a single client tool round trip: the tools array, the tool_use block, stop_reason "tool_use" and the tool_result you send back
- Sort a given tool into user-defined, Anthropic-schema client tool (bash, text editor, memory) or server tool, and say where it executes
- Account for the extra input tokens that tool definitions and the automatic tool-use system prompt add to a request
- Level 22: Writing Tool Schemas Claude Calls Correctly
Design the name, description and input_schema of a tool so the model picks it at the right moment and fills its arguments correctly.- Write a JSON Schema input_schema with required fields, enums and per-property descriptions for a real Python function
- Rewrite a vague tool description so it states when to call the tool, when not to, and what it returns
- Add input_examples to a client tool and explain why a model may guess a missing required argument instead of asking
- Level 23: The Tool Loop in Code
Build the loop that keeps calling the Messages API until Claude stops asking for tools, with correct message history at every step.- Implement a Python loop that appends the assistant content unmodified, runs each tool_use and returns matching tool_result blocks by tool_use_id
- Add an iteration cap and a max_tokens check so a runaway or truncated loop fails safely
- Compare a hand-written loop with the SDK's Tool Runner helper and decide which suits a given service
- Level 24: tool_choice and Parallel Tool Calls
Control whether and how Claude calls tools with tool_choice, and handle responses that contain several tool calls at once.- Choose between tool_choice auto, any, tool and none for a given feature and state the trade-off of forcing a call
- Execute several tool_use blocks concurrently and return every result in one user message containing only tool_result blocks
- Use disable_parallel_tool_use when tool calls must happen one at a time, and explain what it costs in latency
- Level 25: Tool Results and Tool Errors
Shape what goes back to the model after a tool runs, including failures, so Claude can recover instead of inventing an answer.- Return a failed call as a tool_result with is_error and a message the model can act on, instead of raising in the loop
- Decide what belongs in a tool result (trimmed, structured, size-bounded) and what should stay out of the context window
- Diagnose the 400 errors caused by missing, misordered or partial tool_result blocks
- Level 26: Strict Tool Use
Use strict: true to guarantee tool names and inputs match your schema, and learn the schema limits that come with that guarantee.- Turn on strict for a tool and adjust its schema to the supported subset, including additionalProperties: false
- List the documented limits to check before adopting it: unsupported keywords such as numeric and string-length constraints, and the per-request caps on strict tools and optional parameters
- Explain why a schema-valid input still needs business validation in your handler
- Level 27: Server Tool Mechanics and pause_turn
Understand the plumbing every server tool shares: server_tool_use blocks, the server-side loop, pause_turn, and turns that mix server and client tools.- Read a response containing server_tool_use (srvtoolu_ ids) and its paired result block without sending a tool_result
- Handle stop_reason "pause_turn" by re-sending the assistant content with the same tools, with a cap on continuations
- Detect a mixed turn where a server tool is left unresolved behind a client tool_use, and resume it with only tool_result blocks
- Level 28: Web Search and Web Fetch
Give Claude live web access with the web search and web fetch server tools, and control their reach, cost and data handling.- Enable web search and web fetch with a dated tool type, max_uses and allowed_domains or blocked_domains, knowing the two lists cannot be combined
- Pick a tool version deliberately: the basic versions versus the later ones that add dynamic filtering through code execution, and what that changes for zero data retention
- Estimate the per-search charge on top of tokens from the current pricing page and read the usage fields that report it
- Level 29: Code Execution and Programmatic Tool Calling
Run Python and bash in Anthropic's sandboxed container, and let code in that sandbox call your own tools through allowed_callers.- Enable the code execution tool, pass the container id between requests and retrieve files the sandbox produced
- Mark a client tool with allowed_callers so sandbox code can call it, and use the caller field to tell direct calls from programmatic ones
- Decide when programmatic tool calling beats a normal tool loop on tokens and latency, and what the sandbox must never be trusted with
- Level 30: Tool Search and the Advisor Tool
Scale to large tool catalogues with the tool search tool and defer_loading, and meet the advisor tool, which was still in beta when this course was checked.- Mark tools defer_loading and add the regex or BM25 tool search variant so definitions load only when discovered
- Explain why deferred tools stay out of the cached prefix and how that protects prompt caching
- Describe the advisor pattern (a faster executor model consulting a stronger advisor model), enable it with its beta header, and confirm its current status before relying on it
- Level 31: The MCP Connector
Connect the Messages API directly to remote MCP servers with the beta MCP connector, without writing an MCP client.- Configure mcp_servers and an mcp_toolset entry with the current beta header, an authorization token and an allowlist or denylist of tools
- Recognise MCP tool-use and result blocks in a response and handle them like other server-executed calls
- List what limits production use: beta status, not eligible for zero data retention, not offered on every cloud platform, and third-party server trust
- Level 32: Skills in the API
Attach Anthropic-built and custom Agent Skills to a request through the container parameter, and manage custom skills with the Skills API.- Send a request that loads a pre-built skill by type, skill_id and version alongside the code execution tool it depends on
- Upload and version a custom skill (a SKILL.md plus supporting files) through the Skills API, knowing skills are workspace-scoped
- Weigh pinning a skill version against "latest", and check the current beta-header and platform requirements before shipping
- Level 33: Structured Outputs with JSON Schema
Constrain Claude's final answer to a JSON Schema with output_config.format, and use the SDK helpers that turn Pydantic or Zod models into typed results.- Request schema-constrained JSON with output_config.format and with client.messages.parse() using a Pydantic model (Zod in TypeScript)
- Design a schema inside the supported subset and explain how the SDK moves unsupported constraints into descriptions and validates client-side
- Account for first-request latency from grammar compilation and identify which schema changes invalidate the compiled-grammar cache
- Level 34: Defensive Parsing: When the Schema Still Fails
Write the code around structured outputs that survives refusals, truncation and semantically wrong but schema-valid data.- Branch on stop_reason before parsing so refusal and max_tokens responses never reach json.loads or a database write
- Add a validation layer for what the schema cannot enforce: numeric ranges, cross-field rules and case-insensitive enum comparison
- Implement a bounded repair-or-retry policy and log failures in a form that can later feed an evaluation set
- Level 35: Adaptive Thinking: Turning Reasoning On
Learn how thinking works on current models, where Claude decides per request whether and how much to reason, and what that does to your response shape and bill.- Enable adaptive thinking and handle responses that may or may not start with a thinking block
- Size max_tokens to cover thinking plus the answer, and read usage.output_tokens_details.thinking_tokens to see what reasoning cost
- Choose between summarized and omitted thinking display and explain why billed output tokens differ from visible ones
- Level 36: The Effort Parameter
Use output_config.effort as the calibrated control for depth, latency and cost, and measure its effect before changing prompts.- Set effort from low to max, check which levels and defaults apply to the target model, and explain why no level guarantees a thinking block
- Run a small comparison across effort levels recording quality, latency and output tokens on a sample of your own traffic
- Decide when to lower effort versus steer thinking in the system prompt or per message, and why effort is the first lever to reach for
- Level 37: Thinking with Tools, History and Legacy Budgets
Keep thinking correct across tool loops and multi-turn conversations, and recognise where the manual budget_tokens mode still applies.- Pass thinking blocks back unmodified in a tool loop so reasoning between tool calls (interleaved thinking) is preserved
- State the turn-validation difference between adaptive thinking and legacy manual budgets when replaying stored history
- Identify which models in your stack still use a manual thinking budget and plan the change to adaptive thinking plus effort
- Level 38: Prompt Caching Fundamentals
Understand what prompt caching stores, how prefix matching works, what it costs to write and read, and how to confirm it is working.- Turn on automatic caching with a top-level cache_control and verify hits via cache_creation_input_tokens and cache_read_input_tokens
- Work out break-even for a prompt from the write premium and discounted read rate on the current pricing page, noting that read rates vary by model
- Check a prompt against the model's minimum cacheable length and explain why a shorter prefix silently does not cache
- Level 39: Cache Breakpoints and TTLs
Place explicit cache breakpoints across tools, system and messages, and choose between the 5-minute and 1-hour lifetimes.- Lay out a request so stable content comes first and place up to four breakpoints on parts that change at different rates
- Choose the 5-minute or 1-hour TTL from request arrival patterns and their different write prices, ordering longer TTLs before shorter ones
- Cache a growing conversation by moving the final breakpoint each turn while earlier ones stay fixed
- Level 40: Cache Invalidation and Hit-Rate Debugging
Find out why a cache misses in production, covering the tools, system, messages hierarchy and the settings that quietly break a prefix.- Predict which caches die when tool definitions, the system prompt, tool_choice, images, thinking configuration or effort change
- Debug a low hit rate by diffing rendered prefixes and removing timestamps, unstable ordering and per-user data from the cached region
- Track cache hit rate per workspace and model as an operational metric, knowing cache isolation differs across cloud platforms
- Level 41: Citations: Answers That Point at Their Sources
Turn on citations for document blocks so each claim in a response carries a pointer to the exact passage that supports it, and learn what that rules out.- Enable citations on plain-text, PDF and custom-content documents and read the cited text and location fields in the response
- Render citations in a UI and flag answers that came back with no supporting passage
- Check the current docs for which features cannot be combined with citations and design around those limits
- The learner can submit a set of Messages requests as a batch, poll it to completion, match results to requests by custom ID and handle per-request failures and expiry, and can state the current batch
- Level 42: Retrieval in Outline: Chunking and Indexing
Why you retrieve rather than stuff everything into a large context window, and how chunking and indexing choices decide what the model can ever see.- Decide between long-context prompting with caching and a retrieval pipeline using document size, freshness and cost
- Split documents into chunks with sensible size, overlap and metadata, and explain what each choice costs
- Build a small index in Python that pairs embeddings from a third-party provider with a keyword index
- Level 43: Retrieval in Outline: Search and Grounded Answers
Query the index, hand the results to Claude as citable search-result content, and make the model answer only from what was retrieved.- Combine keyword and vector search, rerank the results, and choose how many chunks to pass
- Pass retrieved chunks as search result content blocks so answers cite your own sources
- Write the prompt and code path for 'not found in the sources' and measure retrieval quality separately from answer quality
- Level 44: Reading API Errors: Status Codes, Types, Request IDs
Map every HTTP status and error type the API returns to a cause and a decision: fix the request, fix the account, or try again.- Classify 400, 401, 402, 403, 404, 409, 413, 429, 500, 504 and 529 responses as caller bugs, account problems or transient faults
- Catch the SDK's typed exceptions in Python and TypeScript, most specific first, instead of matching message strings
- Log the request ID from every response and error so a support ticket or incident review can find the exact call
- Level 45: Rate Limits: Tiers, Token Buckets and Headers
How requests-per-minute, input-token and output-token limits are set per usage tier and model, how the token bucket refills, and how to read your remaining headroom.- Explain RPM, ITPM and OTPM, why bursts fail under a per-minute limit, and why cache reads do not count against ITPM on most models
- Read the anthropic-ratelimit response headers and retry-after to see which limit is tightest right now
- Find the current tier, limits and per-workspace caps in the Console and plan a gradual traffic ramp to avoid acceleration limits
- Level 46: Retries and Backoff That Do Not Make Things Worse
Build on the SDK's built-in retries with a deliberate policy that separates retryable faults from ones that will keep failing.- Configure max_retries (maxRetries in TypeScript) and add jittered exponential backoff and a client-side concurrency limiter for high-volume workers
- Tell a rate-limit 429 from a spend-cap 429 (no retry-after) and from a user-set spend limit (400), and stop retrying the last two
- Treat 529 overloaded differently from 429, and make retried calls safe when the request triggers side effects
- Level 47: Timeouts, Long Requests and Mid-Stream Failures
Keep long generations alive and recover cleanly when a connection drops or an error arrives after the 200 has already been sent.- Set client and per-request timeouts and explain why the SDKs push long non-streaming calls towards streaming
- Handle error events that arrive inside an SSE stream and decide whether to discard, resume or restart the partial output
- Choose between streaming, the SDK's stream-then-return-final-message helper and the Batches API for jobs that run for many minutes
- Level 48: Cost Modelling: From Token Prices to a Monthly Bill
Build a spreadsheet-grade cost model in Python that prices a feature per request and per month before it ships.- Price a request from uncached input, cache writes, cache reads, output (including thinking) and server tool charges, using the current pricing page
- Model how the batch discount, caching hit rate, effort level and model choice move the monthly figure
- Check on the current pages whether Priority Tier, fast mode (research preview) or regional routing premiums apply to the workload, and include them
- Level 49: Usage Tracking and Spend Controls in Your App
Record what every call actually consumed, attribute it to a feature and customer, and put hard ceilings in place before a runaway loop finds them for you.- Log the usage block, model, request ID and stop reason for every call and total the three input-token fields correctly
- Attribute cost per feature, tenant and user with workspaces, separate API keys and your own request tags
- Set organisation and workspace spend limits in the Console and alert from your own logs before a limit pauses traffic
- Level 50: Evaluation I: Building a Test Set
Turn 'it seems to work' into a versioned dataset of inputs and expected behaviour that reflects real traffic, edge cases and known failures.- Write success criteria that are specific and measurable for one feature
- Assemble a test set from production samples, hand-written edge cases and adversarial inputs, with personal data removed
- Store cases as versioned JSONL with expected outputs or rubrics, and decide how many cases are enough to trust a result
- Level 51: Evaluation II: Graders — Code, Model and Human
Pick the cheapest grader that is reliable for each criterion, and prove a model-based grader agrees with people before trusting it.- Write code graders for exact match, schema validity, citation presence and tool-call correctness
- Build a model-based grader with a rubric and structured output, and measure its agreement against human labels
- Account for non-determinism by running repeated trials and reporting pass rates rather than single results
- Level 52: Evaluation III: Regression Runs and Release Gates
Run the test set automatically on every prompt, model or parameter change and block the release when quality, latency or cost slips.- Script an eval run that records the prompt version, model ID, parameters, scores, latency and token cost together
- Run large regression suites through the Batches API to cut cost, and compare a candidate against a stored baseline
- Set pass thresholds in CI and add every production failure back into the test set as a new case
- Level 53: Guardrails: Screening, Refusals and Fallbacks
Layer input screening, output checks and refusal handling around the model so that one failed defence is not the whole defence.- Add a small-model screening call with a structured verdict in front of the main request and validate outputs before they reach users
- Handle the refusal stop reason explicitly, including when the screening call itself is declined
- Check the current docs for server-side and client-side fallback options and decide what a user sees when a request is declined
- Level 54: Prompt Injection: Direct and Indirect
Defend separately against users attacking your prompt and against hostile instructions hidden in web pages, files, emails and tool results.- Distinguish the direct and indirect threat models and say which applies to each input path in an application
- Deliver third-party content only in tool results, labelled with its source and JSON-encoded, with an untrusted-content policy in the system prompt
- Limit the damage with least-privilege tools and confirmation steps, and red-team the pipeline with planted injections that join the eval set
- Level 55: Personal Data, Secrets and Key Management
Keep personal data and credentials out of prompts, logs and repositories, and run API keys like the production secrets they are.- Minimise or redact personal data before a call and decide what prompt and response logging is lawful and necessary
- Verify current retention, zero-data-retention eligibility and data residency options on Anthropic's pages rather than assuming them
- Store keys in a secrets manager, scope them per workspace and environment, rotate and revoke them, and respond to a leaked key
- Level 56: Model Pinning and the Model Lifecycle
Choose exactly which model ID production calls, and track active, legacy, deprecated and retired states so a retirement never arrives as an outage.- Explain the difference between dated snapshot IDs and undated or alias IDs, and hold the model ID in configuration rather than code
- Read the deprecations page for lifecycle states, retirement dates and the minimum notice period, and note that Bedrock and Google Cloud set their own schedules
- Audit which keys and services still call a deprecated model, using the Console usage export
- Level 57: Prompt Versioning and Safe Rollout
Treat prompts, tool definitions and request parameters as versioned release artefacts that can be reviewed, rolled out gradually and rolled back.- Store prompts, tool schemas and parameters in version control with an identifier logged on every request
- Roll a new prompt version out behind a flag or canary with the eval suite as the gate, and roll back in one step
- Predict how a prompt or tool change invalidates prompt caches and plan for the temporary cost and latency rise
- Level 58: Migrating Between Model Releases
Move a working application to a newer model by checking the breaking changes first, re-running evals, and re-tuning rather than swapping an ID and hoping.- Use the current migration guide to list changes that break requests, such as removed sampling parameters, prefill, thinking modes and forced tool choice on newer models
- Run the regression suite on old and new models side by side and compare quality, latency, token use and cost
- Plan the cutover with a canary, a rollback path and a date well ahead of the old model's retirement
- Level 59: Claude on AWS: Bedrock and Claude Platform on AWS
Tell apart the AWS routes to Claude — the partner-operated Bedrock endpoints and the Anthropic-operated Claude Platform on AWS — and what each changes in your code and feature set.- Call Claude through the Bedrock SDK clients in Python and TypeScript with AWS credentials, Bedrock model IDs and inference-profile prefixes
- Compare global and regional endpoints, payload limits and the features the docs currently list as unsupported on Bedrock, such as batches, Files and most server tools
- Explain how Claude Platform on AWS differs in billing, authentication, request IDs, limits and feature timing, verifying each point on the current page
- Level 60: Claude on Google Cloud
Run the same Messages requests through Google Cloud's platform and account for the differences in request shape, model IDs, endpoints and supported features.- Call Claude with the Vertex SDK client using a project, a region and Google credentials, and explain where the model and anthropic_version go in a raw request
- Choose between global, multi-region and regional endpoints on availability, data residency and the regional price premium
- List the features currently unsupported on Google Cloud and design a portable client layer that degrades cleanly without them
- Level 61: The Admin API: Members, Workspaces and Keys in Code
How to manage an organisation's members, invites, workspaces and API keys programmatically with Admin API credentials, which are separate from the workspace keys used for inference, and how to do it safely.- Tell an Admin API key (sk-ant-admin...) and the other accepted admin credentials apart from a workspace API key, and explain why the Admin API is unavailable to individual accounts
- Write a Python script that lists workspaces, members and API keys and flags stale or over-privileged keys, after checking the current reference for which operations each resource supports
- Store and rotate admin credentials as higher-risk secrets than inference keys, with least privilege and a record of every automated change
- The learner can call Claude through Microsoft Foundry from Python (and TypeScript where it differs) with the correct client, authentication, endpoint and model or deployment names, and can list the fe
- Level 62: The Usage and Cost API: Reconciling Real Spend
How to pull the organisation's authoritative token usage and USD cost reports and reconcile them against the application's own per-request usage tracking.- Query the usage report endpoint with 1m, 1h or 1d buckets, group and filter by model, workspace, API key and service tier, and follow has_more/next_page pagination to the end
- Query the daily cost report grouped by workspace and description, handle amounts reported as decimal strings in cents, and account for the gaps: Priority Tier costs are absent from the cost endpoint and code execution is absent from the usage endpoint
- Build a chargeback or cache-efficiency report that handles null workspace and API key IDs, allows for the roughly five-minute data delay, polls about once a minute at most, and notes that the endpoints are not currently available on Claude Platform on AWS
- Level 63: The Rate Limits API: Headroom Alerts and Config Audit
How to read the organisation's and each workspace's configured rate limits programmatically and combine them with usage data to alert before throttling starts and to catch configuration drift.- Fetch configured organisation and workspace limits from the Rate Limits API and keep a gateway or proxy's throttling settings in sync with them, checking the current reference for the endpoint's status and fields
- Compute headroom by comparing minute-bucket usage with configured limits per model and workspace, and raise an alert at a chosen threshold rather than waiting for 429 responses
- Run a scheduled audit that compares workspace limits with an expected configuration held in version control and reports any difference
- Level 64: Final Challenge: From API Key to Production Exam
A comprehensive review that takes one application from first request to operated service, drawing on every phase of the course: Messages API, models and tokens, tools, output control and throughput, reliability, cost, evaluation, security and operations.- Design and justify an end-to-end architecture for a given brief, choosing model, tools, structured outputs, thinking, caching and realtime versus batch with explicit quality, latency and cost trade-offs
- Diagnose faults across the stack, including unexpected stop reasons, broken tool loops, cache misses, rate limit errors, parsing failures, prompt injection and cost overruns, and state the fix for each
- Produce a production readiness plan covering evaluation and regression runs, key and data handling, model pinning and migration, cloud platform differences, and usage and admin monitoring, marking anything beta or to be re-verified against current Anthropic pages
Access
Levels 1 and 2 are free to read, no account needed. Levels 3 and 4 are free with a free account, and so are 20 answers from the AI tutor. Every level, the podcast edition and the AI tutor come with All Access at £4.99/month or any Creator plan — see pricing.
More like this
- MCP in Depth: Build, Secure and Run Servers and Clients
Build Model Context Protocol servers and clients in Python, from a first tool to an authorised remote deployment.
Course · Claude · AI Engineering · Expert · 47 levels · 4 free · Professionally curated by levelupwith.com
- Production Agents on Claude: Design, Build, Run
Design, build and operate Claude agents that hold up in production: choose between workflows and agents, use the Claude Agent SDK and Managed Agents well, and…
Course · Claude · AI Engineering · Expert · 64 levels · 4 free · Professionally curated by levelupwith.com
- Claude at Work: No-Code Skills for Knowledge Workers
Learn to brief Claude clearly, check what it gives you, and set up Projects, Artifacts, Skills, memory, connectors and Research for real work in sales…
Course · Claude · AI & Agents · Capable · 18 levels · 4 free · Professionally curated by levelupwith.com
- Delegating Real Work to Claude: Tasks, Files and Apps
Learn to hand Claude multi-step work on your real files, browser and Office apps, with clear briefs, firm limits and approval gates, then review the results…
Course · Claude · AI & Agents · Capable · 18 levels · 4 free · Professionally curated by levelupwith.com
- Prompting Claude: Instructions, Context and Testing
Write prompts that Claude follows reliably, manage what goes into its context window, and test and improve your prompts with evidence instead of guesswork.
Course · Claude · AI & Agents · Capable · 20 levels · 4 free · Professionally curated by levelupwith.com
- Finished Work with Claude Artifacts, No Code
Brief, refine, brand, check, share and export finished designs, decks, documents, dashboards and motion pieces in Claude without writing code.
Course · Claude · AI & Agents · Capable · 18 levels · 4 free · Professionally curated by levelupwith.com