# Hosted Inference API for custom code

**URL:** <https://discuss.huggingface.co/t/hosted-inference-api-for-custom-code/56038>\
**Category:** Beginners\
**Created:** [September 22, 2023, 6:37pm UTC](https://discuss.huggingface.co/t/hosted-inference-api-for-custom-code/56038 "2023-09-22T18:37:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tensorgirl](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/tensorgirl/32/19678_2.png) [@tensorgirl](https://discuss.huggingface.co/u/tensorgirl)\
**Post date:** [September 22, 2023, 6:37pm UTC](https://discuss.huggingface.co/t/hosted-inference-api-for-custom-code/56038/1 "2023-09-22T18:37:32Z")

</div>

![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/2/e/2e7adacc88ca36b05f3d95c386d45ac1fead8193.png)

Does Hosted Inference API work for custom code ? Where should this argument be passed ?  
`trust_remote_code=True`
