Past session · Wed, Nov 18
11PM. The AI's fix did not work. You paste the new error. What do you do first?
Myles Ngicu on what to check before you ask for another fix, and what to ask for instead.
Recording availableAired Wed 18 Nov · 8:00 PM EAT
500+ developers already learning together every week
What the hour looks like
No slides read aloud. A feature, built.
The session in three movements — watch it happen live, then do it yourself with the template.
app/api/ai/route.ts
// live: shipping an AI feature
const ai = new Anthropic();
export async function POST(req) {
const { prompt } = await req.json();
const stream = await ai.messages.stream({
model: "claude-sonnet-4-6",
messages: [{ role: "user", content: prompt }],
});
return stream.toResponse();
}
Forty minutes of live coding — a real feature on a real Next.js app.
COST / 1K REQUESTS
GPT-4 CLASSKES 1,940
CLAUDE SONNETKES 1,290
OPEN-SOURCE (HOSTED)KES 610
ILLUSTRATIVE — WE PULL THE REAL NUMBERS LIVE
The per-request costs nobody puts in the tutorial.
PRE-FLIGHT
Streaming responses working
Fallback when the API is slow
Spend alerts before the surprise
Template pushed to registrants
DEPLOYED · LIVEYou leave with the template — and your questions answered.
