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 ↗

Taught In

  • Monday, 7/6 — API key safety · Calling an LLM API · JS image processing · MP2 Class Favorite