# Serverless Inference API \[error 500\]

**URL:** <https://discuss.huggingface.co/t/serverless-inference-api-error-500/136950>\
**Category:** Inference Endpoints on the Hub\
**Created:** [January 22, 2025, 11:34pm UTC](https://discuss.huggingface.co/t/serverless-inference-api-error-500/136950 "2025-01-22T23:34:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon18354447](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@anon18354447](https://discuss.huggingface.co/u/anon18354447)\
**Post date:** [January 22, 2025, 11:35pm UTC](https://discuss.huggingface.co/t/serverless-inference-api-error-500/136950/1 "2025-01-22T23:35:00Z")

</div>

HF Inference endpoint @ [hexgrad/Kokoro-82M · Hugging Face](https://huggingface.co/hexgrad/Kokoro-82M) throws Internal server error

When calling it with correct credentials. (I see it count against my daily quota).

I suspect its something misconfigured on the model’s creator side?

I brought it up there and the creator isn’t sure and referred me to bring it up with HF. And if it’s on his side to report it back.

Can someone here help me pin-point the issue?

Thank you very much!

---

<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:** [January 23, 2025, 6:05am UTC](https://discuss.huggingface.co/t/serverless-inference-api-error-500/136950/2 "2025-01-23T06:05:11Z")

</div>

In order to use a model via the Serverless Inference API, it must correspond to one of the libraries built into the HF server, and this is recognized to some extent automatically. In cases of ambiguity, it is necessary to specify the library\_name as shown below, but currently this is not specified. Also, it seems that Kokoro does not support transformers…

HF staff may know of some more precise means…

```markdown
---
license: apache-2.0
language:
  - en
base_model:
  - yl4579/StyleTTS2-LJSpeech
pipeline_tag: text-to-speech
library_name: transformers
---

```

---

<div class="post-metadata">

**Author:** ![anon18354447](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@anon18354447](https://discuss.huggingface.co/u/anon18354447)\
**Post date:** [January 23, 2025, 10:24am UTC](https://discuss.huggingface.co/t/serverless-inference-api-error-500/136950/3 "2025-01-23T10:24:59Z")

</div>

thank you John!
