# HFAPIModel pricing

**URL:** <https://discuss.huggingface.co/t/hfapimodel-pricing/153001>\
**Category:** Inference Endpoints on the Hub\
**Created:** [April 30, 2025, 10:39am UTC](https://discuss.huggingface.co/t/hfapimodel-pricing/153001 "2025-04-30T10:39:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gboezio](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gboezio](https://discuss.huggingface.co/u/gboezio)\
**Post date:** [April 30, 2025, 10:39am UTC](https://discuss.huggingface.co/t/hfapimodel-pricing/153001/1 "2025-04-30T10:39:47Z")

</div>

I am using smolagents library with HfAPIModel. Where can I find the pricing related to the models I can use with it? Do I pay based on tokens or amount of requests?

---

<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 30, 2025, 12:10pm UTC](https://discuss.huggingface.co/t/hfapimodel-pricing/153001/2 "2025-04-30T12:10:12Z")

</div>

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

Probably the number of requests multiplied by the price of the GPU used for that model. For exact details, please consult Hugging Face. [billing@huggingface.co](mailto:billing@huggingface.co)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](https://discuss.huggingface.co/u/system)\
**Post date:** [May 2, 2025, 8:00am UTC](https://discuss.huggingface.co/t/hfapimodel-pricing/153001/3 "2025-05-02T08:00:24Z")

</div>

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