# Payment Required huggingface...Qwen2.5-Coder-32B-Instruct

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpayment-required-huggingface-qwen2-5-coder-32b-instruct%2F151620%3E%5C
**Category:** Beginners\
**Created:** [April 21, 2025, 11:58am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpayment-required-huggingface-qwen2-5-coder-32b-instruct%2F151620 "2025-04-21T11:58:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PavelKruchinin](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pavelkruchinin/32/46005_2.png) [@PavelKruchinin](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPavelKruchinin)%5C
**Post date:** [April 21, 2025, 11:58am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpayment-required-huggingface-qwen2-5-coder-32b-instruct%2F151620%2F1 "2025-04-21T11:58:24Z")

</div>

I work with unit2 course: [Building Agents That Use Code - Hugging Face Agents Course](https://huggingface.co/learn/agents-course/unit2/smolagents/code_agents)  
And on secondrun of example i got this…  
How to resolve it ?

402 Client Error: Payment Required for url: [/static-proxy?url=https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2FQwen%2FQwen2.5-Coder-32B-Instruct%2Fv1%2Fchat%2Fcompletions%5D(https%3A%2F%2Fapi-inference.huggingface.co%2Fmodels%2FQwen%2FQwen2.5-Coder-32B-Instruct%2Fv1%2Fchat%2Fcompletions) (Request ID: Root=1-68063243-7ef4317d76eacb46003d4813;485422fc-79dd-43ff-8361-7cfd309a5eab)  
You have exceeded your monthly included credits for Inference Providers. Subscribe to PRO to get 20x more monthly included credits.  
python-BaseException

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [April 21, 2025, 12:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpayment-required-huggingface-qwen2-5-coder-32b-instruct%2F151620%2F2 "2025-04-21T12:54:09Z")

</div>

```py
model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud/'

# Initialize the model

model = HfApiModel(model_id=model_id)

```

From HF Discord. I hope this still works…

Well, it might be easier to use other models or [local models](https://huggingface.co/docs/smolagents/reference/models#smolagents.TransformersModel).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [April 22, 2025, 2:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpayment-required-huggingface-qwen2-5-coder-32b-instruct%2F151620%2F3 "2025-04-22T14:45:46Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
