
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
A short map of the course: prompt engineering and how language models work, the OpenAI and Gemini APIs, RAG, multimodal APIs, agents, and deployment. Download the November 2026 course map and FAQ in the resources. Section 8 covers AI agents, with labs on tool history, a citing research assistant, and persistent memory.
A walkthrough of the Udemy player and course home: how to find lectures, resources, captions, Q&A, notes, and announcements so you can follow the rest of the course without getting lost.
How to reach Justin and connect with other students in the community he mentions in the video. Course Q&A is still the best place for a question about a lecture, a quiz, or a lab.
A plain-language primer on the terms used later in the course — large language models, transformers, prompts, priming, inference, weights, multimodal models, and AI agents — so the later lectures have a shared vocabulary.
An introduction to the transformer architecture and why it sits under today's generative models. You'll see the idea of attention, how a prompt is processed, and why a fluent answer can still be wrong.
The basics of writing prompts that steer a language model: being specific about the task, the format, and the constraints, with examples such as question answering, summarization, extraction, and code.
The difference between asking a model to do a task with no examples (zero-shot) and giving a few worked examples (few-shot), including where each approach helps and where it still struggles.
How to ask a model to show its reasoning step by step — often called chain of thought — and when that habit improves logical or mathematical answers.
A practical look at judging whether a prompt and a model actually did the job: structured checks, rubrics, and comparing runs instead of trusting a single lucky result.
A reusable framework for stronger prompts: context, tone, background data, rules, examples, history, and step-by-step thinking, plus testing for edge cases. A one-page cheat sheet covering Lectures 6–12 is in the resources.
Why models invent plausible facts, and how grounding — supplying the domain data the model should use, often through retrieval — reduces that risk.
How to use exemplars (worked input/output examples) so the model follows a format you can parse, rather than inventing its own layout.
A closer look at encoders and embeddings: how a prompt becomes a representation the model can attend over, and why more specific prompts tend to produce more specific results.
A conceptual introduction to retrieval-augmented generation: retrieve relevant passages from your own sources, then ask the model to answer from that evidence instead of from memory alone.
What people mean by an AI agent: software that takes a goal, uses tools or other steps, and loops until it should stop. A one-page recap of agents, loops, and memory is in the resources. Later lectures in the AI Agents section go deeper, with exercises.
A decision guide for when to self-host an open-source model versus calling a closed, managed API: control of data and weights versus the cost of running and updating the service yourself.
How to create an OpenAI API account and generate a secret key for the later coding lectures. Store the key in an environment variable. Never paste a real key into a screenshot, a homework file, or Q&A.
How to get a Python environment ready — locally or in the browser-based option shown in the video — and install the OpenAI library so you can run the later examples.
How API pricing and usage limits work, and how to set a cap so a script does not run up an unexpected bill. The dollar amounts and model names on screen are from the time of recording; check the provider's current pricing page before you spend.
A tour of the OpenAI API surface as it existed when this was recorded: text and chat endpoints, plus mentions of images, transcription, files, embeddings, and moderation. A November 2026 quick reference for the current OpenAI Responses API and Gemini's google-genai library is in the resources. The video itself still shows the older endpoints.
A high-level look at how an AI application is put together, including the pieces of a retrieval-augmented setup: your data, embeddings, a vector store, and the model call.
A from-scratch walkthrough of a retrieval-augmented generation pipeline: embed documents, search a vector store, and ground the model's answer in what you retrieved. A checklist is in the resources. Library names on screen may have changed since the recording.
Make your first request with the OpenAI Responses API: set up the client, send a prompt, and read the model output.
Get reliable, schema-valid JSON from the Responses API with Structured Outputs: define a schema, request structured data, and parse it safely in your code.
A short notice, recorded when OpenAI was already moving people off the Completions API and toward Chat Completions. Completions is a legacy endpoint. The current recommended path in the official OpenAI docs is the Responses API (`client.responses.create`). This lecture is left in place as history; it is not a current setup guide.
A lecture on translating an article with the OpenAI API, using prompting techniques from earlier in the course. The request shape on screen follows the API style of the recording, which may be Completions or an older client.
A live coding example that translates an article with the OpenAI API in Python. Treat the library import and method names as of the recording date; the current SDK quick reference is attached to the OpenAI API Overview lecture.
How to ask the OpenAI API to summarize a piece of text, including token limits and the usual tradeoff between length and cost. The endpoint on screen is from the time of recording.
A live example that summarizes an article with the OpenAI API. As with the other examples in this section, the client syntax may predate the Responses API.
A short walkthrough of upgrading an older OpenAI Python client, including the migrate tool shown in the video. SDK versions have moved on again since then; use this as a picture of how a migration works, then check the current official docs.
How Chat Completions differs from the older Completions API: system and user messages, and keeping a message list so the model has context. Chat Completions still works; the current docs recommend the Responses API for new work.
A live demo of a small chatbot using Chat Completions: environment setup, a system prompt, and a message list that grows with the conversation.
How to use the OpenAI API for sentiment analysis and classification, with zero-shot and few-shot prompts. The request style is of the recording date.
A live classification example, comparing how the prompt — and whether you use a chat-style or completion-style request — changes the result.
The kickoff for a short project: a chatbot that analyzes earnings-style financial text. The next two lectures walk through the script and the model request.
A walkthrough of how the financial-analysis project script is organized: the main flow, the data it pulls in, and where the language-model request sits. Some model names in the script (including GPT-3.5 Turbo) are from the time of recording.
A closer look at the project’s model request: the system prompt, the input, and what you do with the result, including logging.
How to swap the project’s OpenAI call for a Gemini call: get a Gemini API key and change the request in one place. The Gemini client shown on screen may predate the current `google-genai` library; see the quick-reference PDF on the OpenAI API Overview lecture.
An overview of OpenAI’s image generation API as recorded, including DALL·E 2 and DALL·E 3, prompts, sizes, and edits. Newer image models and endpoints exist now; use this lecture for the prompting ideas, and check current docs before you ship code.
A live example that generates phone wallpapers with the image API shown in the previous lecture, comparing options that were available at recording time.
An overview of OpenAI’s text-to-speech API: turn text into spoken audio, with the voices, formats, and Python example shown in the video. Voice names and model IDs may have changed.
A tour of Google’s Vertex AI Studio for generating media (images, video, audio) as it looked when recorded. Product names and model catalogs change often; treat this as a guided tour of the idea, then confirm the current console.
A live Python example that sends a blog post to the OpenAI text-to-speech API and saves an audio file. “Transcribe” in the title means text-to-speech narration here, not speech-to-text.
How to send an image to an OpenAI vision-capable model (the recording uses the GPT-4 Vision-era API) so the model can describe or analyze it. Check current vision request syntax before you copy the code into a new project.
A live example that asks a vision model to estimate calories from a food image. Treat the numbers as a demo of prompting, not as nutritional advice.
A walkthrough of trying the Gemini API from Google AI Studio: create a key, run a prompt, and see what comes back. The studio UI and the Python client have changed since the recording; the current library is `google-genai`. The OpenAI vs Gemini quick reference is also useful here.
Make your first request to the Gemini API with the google-genai SDK: set up the client, send a prompt, and read the model response.
Build a multi-turn chat with the Gemini API, stream responses as they arrive, and tune output with generation config such as temperature and token limits.
A Colab walkthrough of a Gemini chat-style request: where the key is stored, generation settings, and streaming as shown in the video. Prefer the current `google-genai` client for new notebooks.
When a large context window helps — code bases, long documents, or mixed media that you can actually fit in the request — and what that does not replace (retrieval, citations, and memory you persist yourself).
How to create a Google Cloud account, enable Cloud Translation, and set up credentials for the later subtitle-translation lectures. Keep service-account files out of git, screenshots, and Q&A.
Basic and batch translation with Cloud Translation, plus language detection and a mention of custom models. The live lecture title says “Advance”; that is the title on Udemy, not a typo we are changing in this pass.
A Python walkthrough that translates a subtitle file with Cloud Translation while keeping timestamps intact.
A live run of the subtitle-translation script across several languages, checking that the output files stay aligned with the original cues.
What fine-tuning is for: adapting a base model on your examples when prompting and retrieval are not enough, and when it is the wrong tool. The later demo uses GPT-3.5 Turbo; that is a dated example, not a requirement to use that model today.
This recorded demo is historical. It walks through fine-tuning GPT-3.5 Turbo as the API existed at the time of recording. Confirm the current fine-tuning models, file format, and whether fine-tuning is available for your account in the official OpenAI docs before you spend money on a job. For many structured-data tasks, Structured Outputs on the Responses API is the current alternative; a replacement lecture is in the works.
A recorded walkthrough of fine-tuning with the OpenAI API, using GPT-3.5 Turbo: prepare a JSONL-style dataset, start a job, and call the resulting model.
A walkthrough of ChatGPT’s GPT Builder: instructions, uploaded files, conversation starters, and sharing. This is a ChatGPT product feature, not the API fine-tuning lecture, and the builder UI may have changed.
A short overview of deploying a Python app that calls the OpenAI API — environment variables for secrets, and hosting options mentioned in the video such as GCP App Engine. Treat the platform steps as a starting point and follow current cloud docs.
Practical dos and don'ts for using generative AI: useful patterns, and the risks of misinformation, plagiarism, and copyright problems. This is a short ethics close, not a legal guide.
Give the model tools it can call with the Responses API: define function tools, handle function_call outputs, return results, and loop until the final answer.
Give Gemini tools it can call with the google-genai SDK: declare functions, read function-call parts, send back function responses, and let the model finish the answer.
A short conceptual lecture on the loop that makes a tool-using agent: call the model, run each requested tool, send the results back in one user turn, and stop honestly when you hit a cap. The video uses Claude-style names such as `tool_use` and `end_turn`; the same loop applies to OpenAI and Gemini, with different field names. A coding exercise follows. Everything in the exercise runs offline. No API key is required.
A tool-using loop only works if the conversation history stays valid. You'll learn to append the assistant turn exactly as the API returned it, then send a user turn of tool result blocks whose ids match the ids you were given — never invent one. We'll annotate a sample trace together: a good single call, parallel results, a mismatched id, an orphan id, a result on an assistant turn, and text placed before a result. You'll also learn to label truncated tool JSON "do not execute," and an empty retrieval "must not invent a citation." The video was recorded for the Claude API course and uses that API's names (`tool_use_id`, `stop_reason`). The ideas carry over. Everything in the exercise runs offline. No API key is required. A coding exercise and a short quiz follow this lecture.
Put the last lectures together into one working project. You'll build a research assistant that answers questions about a folder of company documents: it searches, reads the right lines, quotes them, and cites the file and line number. Then you'll grade every answer in code before the user sees it, so a made-up file, a misquoted number, or an unanswerable question ends in an honest "I couldn't find that" instead of a confident guess.
The video was recorded for the Claude API course and uses that API's names (`tool_use`, `stop_reason`). The ideas carry over to OpenAI and Gemini; use the vendor field-name map at the start of this section, and prefer the OpenAI-ported lab attached to this lecture. Everything in the exercise runs offline with a scripted stand-in for the model. A live API key is optional.
What you'll learn:
Combine tool schemas, an allowlist, and a bounded agent loop into one research assistant
Ask for answers that quote the source and cite it as [path:line], and verify those citations in code
Refuse safely when the documents don't answer the question, without repeating an invented file or number
Treat document text as data: a prompt injection can't trigger a tool your allowlist doesn't permit, and a small cases.jsonl eval set keeps it that way
This lecture sorts five ideas people casually call memory: conversation history, retrieved snippets, persistent app memory, the prompt cache, and the context window. You'll learn the test in one sentence: if the process dies, only what you persisted remains. We'll walk a five-row table, catch the mistake of calling a compacted summary "memory," and run a required demo that restarts Python without a store so a preference spoken only in chat is gone. Persistent app memory lives in your application — a file, a database, or the client-side memory tool whose /memories files you execute — and we do not write a store yet. That is the next lecture. Everything runs offline. No API key is required.
What you'll learn:
Sort conversation history, retrieved snippets, persistent app memory, the prompt cache, and the context window, and explain each in one sentence
Apply the restart test: if the process dies, only what you persisted remains
Refuse to call compacted history "memory" — a summary put back into the messages array is still conversation history
Explain why the prompt cache (a short-TTL cost and latency optimization) and the context window (a per-request token budget) are not a preference store
The previous lecture showed that a preference spoken only in chat is gone when Python restarts with no store. This lecture writes that preference — and a new fact, "Alex prefers concise citations." — under a per-user root your application owns: data/users/<id>/memories/. You'll learn the MemoryRecord fields (text, source, created_at, expires_at), resolve every path before a write, and refuse "..", absolute paths, and symlink escapes so nothing lands outside that user's folder. A client-side memory tool, if you use one, still means your app stores the file and enforces the policy. We'll write two records for alex, run the required path-traversal failure case, then restart Python and load alex's store so the earlier preference now survives. Everything runs offline. No API key is required.
What you'll learn:
Write a MemoryRecord with text, source, created_at, and expires_at under data/users/<id>/memories/
Explain why the application, not the API, owns storage and path policy
Reject path traversal (".."), absolute paths, and symlink escapes, and write nothing when a path is refused
Load a per-user store after a process restart so a preference spoken in chat now survives
U26 wrote a preference under a per-user root your application owns. This lecture proves two things about that store. Persistence means a new process can load the same application data root — not the same Python object still sitting in memory. After we quit, MemoryStore.load for alex still has “Alex prefers concise citations.” Isolation means Blair cannot list Alex’s files: the same data root, user_id blair, returns an empty list. The required failure case is accidentally passing Alex’s memories folder as data_root when user_id is blair. That load is refused with DataRootRejected, and Alex’s files are not listed. Everything runs offline. No API key is required.
What you'll learn:
Explain why persistence means a new process can load the same application data root
Load Alex’s store after a real process quit and still see the preference
Show that MemoryStore.load for blair against the same data root does not list Alex’s files
Reject a per-user folder passed as data_root (the required failure case) so Alex’s files are not listed
U27 left expires_at on the MemoryRecord and did not filter on it. This lecture adds three rules to that store. If expires_at is in the past, list_memories does not return the record — the file may still be on disk. delete removes the file, so a scratch note is actually gone. And a write whose text contains a secret is rejected: the only token we use is the synthetic dummy sk-ant-dummy-not-real from data/synthetic_secrets/dummy.env. It is not a real key. Do not paste real credentials into memory. The required failure case is a filter miss that would write that dummy token; scan_for_secrets catches it. U31 will not auto-save raw MCP text without this filter. Everything runs offline. No API key is required.
What you'll learn:
Skip a MemoryRecord whose expires_at is in the past, without deleting the file
Delete a memory file so it is gone from disk and from the list
Reject a write that contains the synthetic dummy secret, and write nothing
Show a filter miss being caught by a test, so a dummy secret cannot silently land on disk
U02 introduced two MCP transports: local stdio and remote HTTP(S). This lecture stays on local stdio. Your Python process is the MCP client. It spawns a read-only MCP server rooted at data/mcp_sources/, lists the tools (list_dir and read_file — there is no write tool), and reads ranger_probe_bulletin.md, which contains the phrase "Replace the dust cap after every logging run." Listing that root does not show Alex's memories under data/users/. A path such as ../../users/alex/memories/citations.json is rejected. The Messages API mcp_servers parameter is for remote HTTP servers only; local stdio is a client you run. We do not call the Claude API in this lecture, and no API key is required. Allowlisting those tools in your agent loop is the next lecture. Remote-connector auth is U31.
What you'll learn:
Explain the U02 contrast in one minute: local stdio (your process spawns the server and speaks JSON-RPC on stdin/stdout) versus remote HTTP(S)
Root a local read-only MCP server at data/mcp_sources/ so a directory listing cannot see data/users/ memories
Spawn the server from Python, list the read-only tools, and read ranger_probe_bulletin.md
Reject path traversal through the MCP root (and absolute paths and symlink escapes) so Alex's memories are not read
Ready to build powerful applications fueled by leading Large Language Models? This course gives developers the practical skills to use the OpenAI API ecosystem and the Google Gemini API — plus a separate Cloud Translation project. Go beyond theory and learn to integrate AI capabilities into your projects, from setup and prompt engineering to agents and deployment.
We cover the essential concepts and provide hands-on examples so you can build real-world AI solutions. Whether you want to create chatbots, automate content, translate languages, generate images, or analyze images with vision models, this course provides the roadmap.
In this course, you will learn:
LLM & Prompt Engineering Fundamentals: Understand transformers, prompt patterns (zero-shot, few-shot, chain of thought, frameworks, evaluation), RAG, AI agents, and open vs closed source models.
OpenAI API Setup & Architecture: Get an OpenAI API key, set up your environment, understand pricing and limits, and learn essential AI application architecture. Check current pricing before you spend; amounts on screen are from the time of recording.
Core OpenAI APIs (Text & Chat): The course still includes Completions and Chat Completions examples for translation, summarization, sentiment analysis, classification, and a chatbot project. Completions is a legacy endpoint. For new work, the current official default is the Responses API.
OpenAI Multimodal APIs: Image generation, text-to-speech, and vision, with practical examples (phone wallpapers, blog-post narration, calorie counting). The recordings use the model names of the time, including DALL·E and GPT-4 Vision; check current model names before you ship code.
Google Gemini and Cloud Translation: Get started with the Gemini API (the current Python library is google-genai) via AI Studio and Colab, and explore large-context use cases. A separate Cloud Translation sequence walks through a subtitle-translation project.
Building RAG Pipelines: Implement retrieval-augmented generation from scratch to ground model answers in your own data.
AI Agents: Design a bounded tool-using loop, keep tool-call history valid, build a citing research assistant, and write persistent per-user memory in your application.
Fine-Tuning, Deployment, and Ethics: Learn when fine-tuning is the right tool. The recorded OpenAI fine-tuning demo uses GPT-3.5 Turbo and is a historical walkthrough — confirm current fine-tuning availability before you run a job. You'll also see GPT Builder, a deployment walkthrough, and the dos and don'ts of responsible AI development.
This course is designed for developers, engineers, and technical individuals aiming to build practical AI applications. By the end, you'll have the skills to use the OpenAI and Google AI ecosystems effectively and ethically.
Enroll today and start building the next generation of AI-powered applications!