Video course · 15 chapters · 151 min · certificate
Intro to AI Engineering – OpenAI JavaScript Tutorial
Scrimba's intro to AI engineering in JavaScript: a stock-prediction app built with the Polygon and OpenAI APIs, covering models, the messages array, prompt engineering, tokens, temperature, few-shot, stop sequences, penalties, fine-tuning, DALL-E 3, AI safety, and secure deployment with Cloudflare Workers, AI Gateway and Pages.
What you'll learn
- Call the OpenAI API with the messages array
- Apply prompt engineering, few-shot and temperature
- Control output with tokens, stop sequences and penalties
- Fine-tune models and generate images with DALL-E 3
- Apply AI safety best practices
- Deploy securely with Cloudflare Workers, AI Gateway and Pages
Chapters
15 chapters · 150:44-
10:22
01Setup Members
AI engineering basics and API keys
Stock predictions app.
-
8:36
02API Members
How the API works
Models and instances.
-
11:47
03Messages Members
The messages array and models
System, user, assistant.
-
9:42
04Prompts Members
Prompt engineering and adding AI to the app
Design inputs.
-
11:56
05Settings Members
Tokens, playground and temperature
Cost and creativity.
-
8:10
06Few-shot Members
The few-shot approach
Teach by example.
-
6:16
07Control Members
Stop sequences and penalties
When to stop.
-
10:00
08Fine-tune Members
Fine-tuning
Adjust the weights.
-
10:57
09DALL-E 3 Members
Images with DALL-E 3
Generate images.
-
5:32
10Safety Members
Introduction to AI safety
Know the risks.
-
12:24
11Secure Members
Safety best practices and Cloudflare Workers
Protect your app.
-
8:46
12Worker Members
Connecting the worker to OpenAI
Server-side calls.
-
12:25
13Gateway Members
CORS, preflight and AI Gateway
Cache and limit.
-
9:33
14Robustness Members
Error handling and the Polygon worker
Consistent responses.
-
14:18
15Deploy Members
Deploying with Cloudflare Pages
Ship it.
Jobs this course suits
Our AI checked this course against 500 jobs; these get the most out of it. Each job links to its learning path.