Calling an LLM API
Topics Covered
- POST with fetch (body + headers)
- OpenAI Responses API (model, input, instructions)
- reading the reply JSON (output array)
- shared course key via config.js + .gitignore
- same pattern across providers (OpenAI/Anthropic/DeepSeek)
Content Slides Open fullscreen β
Open slides ↗Taught In
- Thursday, 10/29 — Async and fetch, continued
- Tuesday, 11/03 — API keys and calling an LLM API
- Thursday, 11/05 — Calling an LLM API, continued
- Thursday, 11/12 — Browser extensions