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