Use max_output_tokens with the Responses API, max_completion_tokens with o3 and o4-mini, max_tokens with Chat Completions. Code samples and the error each one fixes.
Loading full article...