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)

Taught In

  • Monday, 7/6 — API key safety · Calling an LLM API · MP2 Class Favorite
  • Wednesday, 7/8 — Calling an LLM API (part 2) · code organization · MP3 work time