Syllabus

  1. 01Keys, Endpoints and HTTPAuthenticate with an API key, send requests with cURL, and understand the three text-generation endpoints and their response shapes.3 lessons
    1. 01API Keys and Authentication
    2. 02Calling the API with cURL
    3. 03Responses, Chat Completions and Legacy Completions
  2. 02The Python SDKMake requests with the official Python library, list models, stream output and request JSON.2 lessons
    1. 01Requests with the Python SDK
    2. 02Streaming and JSON Output
  3. 03Controlling the OutputCap length and detect truncation, understand how temperature and top P shape sampling, use penalties against repetition, and build requests that respect each model's supported parameters.3 lessons
    1. 01Length Limits and Stop Sequences
    2. 02Temperature, Top P and Determinism
    3. 03Frequency and Presence Penalties
  4. 04Project: A Safe Request BuilderBuild request bodies for either endpoint that use the right parameter names and drop settings a model doesn't support.1 lesson
    1. 01Project: Building Requests That Respect the Model