- Symptom
- response.output_text is an empty stringstatus incomplete with incomplete_details.reason max_output_tokensUsage shows many output tokens but no visible answer
- Cause
- max_output_tokens caps reasoning tokens and visible tokens together, so a small cap can be spent entirely on reasoning before any answer is written. Those reasoning tokens are billed as output.
- Fix
- Leave a large budget, OpenAI suggests at least 25000 tokens when starting out, and check status before reading the text.
- Apply
const res = await client.responses.create({ model, input, max_output_tokens: 25000 }); if (res.status === 'incomplete' && res.incomplete_details?.reason === 'max_output_tokens') { // retry with a larger budget or lower reasoning effort }- Affected
- OpenAI Responses and Chat Completions with reasoning models, checked October 2026
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders