Syllabus

  1. 01APIs and the OpenAI PlatformWhat an API is, which endpoints the OpenAI platform offers, and how to handle API keys and data safely before you write a line of code.3 lessons
    1. 01What an API Is
    2. 02What the OpenAI API Offers
    3. 03API Keys, Billing and Your Data
  2. 02Models, Tokens and CostHow to choose among OpenAI's models, what tokens and context windows are, and how to estimate and control what requests cost.2 lessons
    1. 01Choosing a Model
    2. 02Tokens, Context Windows and Cost
  3. 03Making RequestsSend your first request with the Responses API, read the response object, steer behavior with instructions and roles, and carry context across turns of a conversation.3 lessons
    1. 01Your First Request
    2. 02Instructions and Message Roles
    3. 03Conversations and State
  4. 04Controlling and Shaping OutputTune reasoning effort and output length, understand sampling randomness, get guaranteed-structure JSON with Structured Outputs, and stream responses for a better user experience.3 lessons
    1. 01Effort, Length and Randomness
    2. 02Structured Outputs
    3. 03Streaming Responses
  5. 05Building Reliably and ResponsiblyHandle errors and rate limits gracefully, and build in safety: moderation, protection against prompt injection, human oversight and honest disclosure.2 lessons
    1. 01Errors, Retries and Rate Limits
    2. 02Safety and Responsible Use