# How do I increase the max token limit in HuggingChat?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-increase-the-max-token-limit-in-huggingchat%2F49107%3E%5C
**Category:** Beginners\
**Created:** [August 2, 2023, 8:48am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-increase-the-max-token-limit-in-huggingchat%2F49107 "2023-08-02T08:48:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AI-Is-Cool-22](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@AI-Is-Cool-22](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAI-Is-Cool-22)%5C
**Post date:** [August 2, 2023, 8:48am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-increase-the-max-token-limit-in-huggingchat%2F49107%2F1 "2023-08-02T08:48:29Z")

</div>

Hello everyone. Can someone give me a very detailed explanation about how to increase the max token limit in HuggingChat, please? I am trying to get the AI to write long stories, but the responses almost always get cut off. I have researched for two hours and tried editing the API, but coding is confusing and nothing I do works.
