# Error 402 while using smolagents with a valid token

**URL:** <https://discuss.huggingface.co/t/error-402-while-using-smolagents-with-a-valid-token/152624>\
**Category:** Inference Endpoints on the Hub\
**Created:** [April 28, 2025, 10:05am UTC](https://discuss.huggingface.co/t/error-402-while-using-smolagents-with-a-valid-token/152624 "2025-04-28T10:05:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 28, 2025, 12:53pm UTC](https://discuss.huggingface.co/t/error-402-while-using-smolagents-with-a-valid-token/152624/2 "2025-04-28T12:53:13Z")

</div>

Maybe this?

> [@Exceeded your montly...credits. But I am ENTERPRISE?](https://discuss.huggingface.co/t/exceeded-your-montly-credits-but-i-am-enterprise/150888):
>
> I have a fine-grained token, with the following enabled a the source account level: At the Enterprise level the same token shows: Enterprise Inference Providers shows: You have exceeded your monthly included credits for Inference Providers. Subscribe to PRO to get 20x more monthly included credits.

---

_[View the full topic](https://discuss.huggingface.co/t/error-402-while-using-smolagents-with-a-valid-token/152624)._
