Building with LLM APIs
Call language models from your own code: requests, streaming, tools and costs.
30tutors
3free to start
$3 to $12per paid lesson
Building with LLM APIs tutors
30 tutors
Reliable Document Summarisation Pipelines
Reliable Document Summarisation Pipelines
Build summarisation that handles long documents, keeps facts straight and can be checked against the source.Skill Lab$7Async Python for Many API CallsAsync Python for Many API Calls
Run hundreds of model or web API calls concurrently with asyncio, limits, retries and clean results.Skill Lab$9Batch Jobs for Large LLM WorkloadsBatch Jobs for Large LLM Workloads
Run thousands of model requests as batch jobs that are cheaper, resumable and easy to check.Skill Lab$7Tool Calling: Let the Model Use Your CodeTool Calling: Let the Model Use Your Code
Define tools, run the call and result loop safely, and get a model to use your functions correctly.Skill Lab$8Images and Documents as Model InputImages and Documents as Model Input
Send photos, screenshots, charts and PDFs to a model and get answers you can check and trust.Skill Lab$5Prompt Caching for Lower Cost and LatencyPrompt Caching for Lower Cost and Latency
Structure prompts so repeated prefixes are cached, then measure the savings in cost and response time.Skill Lab$7Choosing the Right Model for a TaskChoosing the Right Model for a Task
Pick a model by testing it on your own task, weighing quality, speed, cost, context and data handling.Skill Lab$5Moderation, Refusals and Safe ResponsesModeration, Refusals and Safe Responses
Design how your LLM app handles harmful requests, refusals and sensitive topics, without blocking normal users.Skill Lab$5LLM APIs on a Solo Developer BudgetLLM APIs on a Solo Developer Budget
Build and launch a side project on model APIs without a surprise bill, abuse or an overbuilt setup.Skill Lab$4Messages, Roles and Conversation StateMessages, Roles and Conversation State
Understand system, user and assistant messages and store conversations correctly in your own app.Skill Lab$4Getting Reliable JSON Out of a ModelGetting Reliable JSON Out of a Model
Get model output your code can parse: schemas, validation, truncation handling and safe retries.Skill Lab$5API Key Safety and Secrets HandlingAPI Key Safety and Secrets Handling
Keep model API keys out of code, repos, browsers and logs, and know exactly what to do if one leaks.Skill LabFreeMore in Building with AI
- Python for AI The Python you need for AI work: data, notebooks, libraries and small scripts. 21 tutors
- RAG and search Connect a model to your own documents with embeddings, search and retrieval. 21 tutors
- Evaluation and testing Measure whether an AI feature works, with test sets, metrics and reviews. 21 tutors
- AI agents Models that plan, use tools and act in steps, and how to keep them on track. 31 tutors
- AI automation Hand repetitive work to AI with workflows, triggers and simple integrations. 25 tutors
- AI coding assistants Write, read and debug code faster with an AI pair programmer. 30 tutors