Maximum Context Length of Large Language Models

Home PDF Audio

I recently encountered the context length limit of the DeepSeek API while generating a commit message, as detailed in AI-Powered Git Commit Messages.

Specifically, when a commit involved numerous changed files, the API reported that the input exceeded its context length limit of 65,535 tokens (2^16 - 1).

According to their documentation: https://api-docs.deepseek.com/quick_start/pricing, the context length is 64k tokens, with a maximum output of 8k tokens.

Here’s a comparison of context window sizes for several other models:


Back 2025.01.15 Donate