01Chapter 1: Why batch? Synchronous calls versus asynchronous jobsYou should know basic Python, file I/O, JSON, JSON Lines, and the basics of calling an LLM API. You should also understand that API rate limits restrict how many requests you can send in a period.2 min read
02Chapter 2: Using custom_id to match results to inputsAssume you know basic Python, JSON Lines, and how to call an LLM API. A batch API processes many requests asynchronously. Because results may finish in a different order than inputs, position is not a reliable way to match them.1 min read
03Chapter 3: Resubmitting only what failedAssume you know basic Python, JSON Lines, LLM API calls, and rate limits. A batch job can partially succeed, so retrying the entire input wastes time and money.2 min read