# Environment Variables now supported on endpoints?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fenvironment-variables-now-supported-on-endpoints%2F86741%3E%5C
**Category:** Inference Endpoints on the Hub\
**Created:** [May 14, 2024, 10:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fenvironment-variables-now-supported-on-endpoints%2F86741 "2024-05-14T22:29:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frase](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Frase](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FFrase)%5C
**Post date:** [May 14, 2024, 10:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fenvironment-variables-now-supported-on-endpoints%2F86741%2F1 "2024-05-14T22:29:11Z")

</div>

Hey, I was trying to deploy a gated model recently and found it was failing to download the model files, even though I had accepted the user agreement and gotten access on the same account I was trying to deploy from.  
I found this ticket [here](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsecrets-for-custom-inference-endpoint%2F68264) that described a similar problem.

This morning I noticed a spot for environment tokens in my endpoint, wondering if this is purely coincidence. Env variables seem to be supported, but I couldn’t find an announcement or docs.

Thanks!

 ![Screenshot 2024-05-14 at 3.28.48 PM](https://us1.discourse-cdn.com/hellohellohello/original/3X/4/7/472895d7594229e63e755f78062a7e7aa5f2f125.png)

---

<div class="post-metadata">

**Author:** ![meganariley](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/meganariley/32/56966_2.png) [@meganariley](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmeganariley)%5C
**Post date:** [May 16, 2024, 3:26pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fenvironment-variables-now-supported-on-endpoints%2F86741%2F2 "2024-05-16T15:26:11Z")

</div>

Hi @Frase! 🤗 This is a new feature we just added to Inference Endpoints. Let us know if you have any questions or feedback!

---

<div class="post-metadata">

**Author:** ![Frase](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Frase](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FFrase)%5C
**Post date:** [May 16, 2024, 4:03pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fenvironment-variables-now-supported-on-endpoints%2F86741%2F3 "2024-05-16T16:03:31Z")

</div>

So awesome and coincidental! Thank you! It’s super helpful and works as I’d expect it to.
