# Ajay Hinduja Geneva, Switzerland (Swiss) - How to Purchase Additional Serverless Inference API Credits?

**URL:** <https://discuss.huggingface.co/t/ajay-hinduja-geneva-switzerland-swiss-how-to-purchase-additional-serverless-inference-api-credits/161164>\
**Category:** Beginners\
**Created:** [June 30, 2025, 9:10am UTC](https://discuss.huggingface.co/t/ajay-hinduja-geneva-switzerland-swiss-how-to-purchase-additional-serverless-inference-api-credits/161164 "2025-06-30T09:10:05Z")\
**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:** [June 30, 2025, 10:17am UTC](https://discuss.huggingface.co/t/ajay-hinduja-geneva-switzerland-swiss-how-to-purchase-additional-serverless-inference-api-credits/161164/2 "2025-06-30T10:17:49Z")

</div>

> [@Hugging Face Payment Error 402 & You've Exceeded Monthly Quota](https://discuss.huggingface.co/t/hugging-face-payment-error-402-youve-exceeded-monthly-quota/144968/20):
>
> Hi @Yannael We offer pay-as-you-go billing support for PRO and Enterprise Hub users at this time - subscribe to PRO here: [Hugging Face – The AI community building the future.](https://huggingface.co/settings/billing/subscription) to receive $2 free inference credits and [more](https://huggingface.co/docs/hub/en/billing#pro-subscription). We also have some additional info about Inference Providers pricing here: [Pricing and Billing](https://huggingface.co/docs/inference-providers/en/pricing). Hope this helps!

> **[Pricing and Billing](https://huggingface.co/docs/inference-providers/en/pricing)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

Regarding the PAYG service for Inference Provider, I believe it is available if you have a Pro subscription and payments are enabled. For more details, please refer to the information above. Additionally, in the Agents course, you can use a local LLM via Ollama or substitute another company’s Endpoint API. The following is an example.

> [@How to run agents from \`smolagents\` locally?](https://discuss.huggingface.co/t/how-to-run-agents-from-smolagents-locally/152874/3):
>
> I have been running everything locally by using either the TransfomerModel or MLXModel classes instead of the HfApiModel class. from smolagents import CodeAgent, MLXModel model = MLXModel( "mlx-community/Qwen2.5-Coder-32B-Instruct-4bit", { "temperature": 0.7, "top\_k": 20, "top\_p": 0.8, "min\_p": 0.05, "num\_ctx": 32768, }, ) agent = CodeAgent(tools=[], model=model, add\_base\_tools=True) agent.run( "Could you give me the 40th number in the…

> [@Alternative options for API endpoints](https://discuss.huggingface.co/t/alternative-options-for-api-endpoints/153276):
>
> I just posted in the Discord as well, but figured I’d post over here for those who are only checking one or the other. Hi all, I have been reading a lot of questions around what to do if the examples for use the HfApiModel fail, or you run out of credits. I was in a similar situation, and went down the path of running locally to begin with using the MLXModel class and Qwen2.5-Coder-32B, but that was leading to very long waits even with my maxed out M4 Max. So I wanted to share another solution…

---

_[View the full topic](https://discuss.huggingface.co/t/ajay-hinduja-geneva-switzerland-swiss-how-to-purchase-additional-serverless-inference-api-credits/161164)._
