Users Pricing

forum

Home Forums What happens to DeepSeek JSON output if the response hits the token limit? – MindStick

What happens to DeepSeek JSON output if the response hits the token limit?

Gabriela Gómez 57 26 Oct 2026

I’m testing JSON output with the DeepSeek API and wondering what happens when a response reaches its token limit before the object is complete. Does the API return a partial JSON string with a finish reason, or does it handle the incomplete output differently?

For anyone using the result in an application, how do you distinguish a complete response from a truncated one before trying to parse it? I’m interested in the behavior at the limit, rather than whether the model usually produces valid JSON on shorter prompts.


0 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md