# Inference endpoint data privacy

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-endpoint-data-privacy%2F36783%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [April 17, 2023, 2:11am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-endpoint-data-privacy%2F36783 "2023-04-17T02:11:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![asresearch7428](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@asresearch7428](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasresearch7428)%5C
**Post date:** [April 17, 2023, 2:11am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-endpoint-data-privacy%2F36783%2F1 "2023-04-17T02:11:56Z")

</div>

Is data sent to and received back from the hugging face inference API thoroughly private (i.e. LLM prompts and completions)? Is it safe to send proprietary and confidential information in prompts?

This, I know, is not the case, for example, with the openai API.

Any insight would be helpful. Thanks!

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphilschmid)%5C
**Post date:** [April 17, 2023, 7:09am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-endpoint-data-privacy%2F36783%2F2 "2023-04-17T07:09:42Z")

</div>

Here are the [security & compliance information for Hugging Face Inference Endpoints](https://huggingface.co/docs/inference-endpoints/security) (not the free public inference API)

---

<div class="post-metadata">

**Author:** ![asresearch7428](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@asresearch7428](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasresearch7428)%5C
**Post date:** [April 17, 2023, 11:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-endpoint-data-privacy%2F36783%2F3 "2023-04-17T11:02:57Z")

</div>

Thanks philshmid! Seems pretty clear. The following makes me think Hugging Face is storing access logs for 30 days (like request history) but not the actual prompt tokens. Would you agree?:

“Hugging Face does not store any customer data in terms of payloads or tokens that are passed to the Inference Endpoint. We are storing logs for 30 days.”

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphilschmid)%5C
**Post date:** [April 17, 2023, 11:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-endpoint-data-privacy%2F36783%2F4 "2023-04-17T11:40:17Z")

</div>

In inference Endpoints, we are not storing any payload.  
But as a user, you can create [custom handlers](https://huggingface.co/docs/inference-endpoints/guides/custom_handler), and if you `print` something in there it is stored for 30 days since its logged.

To be clear again this only counts for the Inference Endpoints product and not the Inference API

---

<div class="post-metadata">

**Author:** ![asresearch7428](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@asresearch7428](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasresearch7428)%5C
**Post date:** [April 17, 2023, 12:43pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-endpoint-data-privacy%2F36783%2F5 "2023-04-17T12:43:23Z")

</div>

That makes sense, thanks. I’d probably just use the paid inference endpoint. I see that there’s a range of prices, depending upon instance specs. My needs will be medium range, for inference on one of the new Open Assistant LLM models. I’m assuming that my costs will only be charged for active inference time and that I don’t need to pay to keep a compute instance live or in “listening state” when I’m not sending requests? In other words: Is usage and access on demand?

---

<div class="post-metadata">

**Author:** ![asresearch7428](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@asresearch7428](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasresearch7428)%5C
**Post date:** [April 17, 2023, 4:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Finference-endpoint-data-privacy%2F36783%2F6 "2023-04-17T16:08:27Z")

</div>

Ok. It seems my assumption was wrong. From what I can tell, using a paid inference endpoint involves paying to instantiate a compute instance and keep it alive, incessantly. I was hoping for something more “on demand,” but it makes sense, I suppose. I think the inference API is a better fit for the early stages of my project.

Phil, (or someone else who knows) would you mind explaining a little more about how and if payloads and tokens are stored and accessed on the inference API? My goal is to interact with my chosen model, regarding proprietary projects, and privacy and security are, thus, important. I can’t find this information in the documentation. Also, what are usage/rate limits?

Sorry for all the questions, and thanks in advance for your support!
