# Inference API error with Whisper, return\_timestamps parameter

**URL:** <https://discuss.huggingface.co/t/inference-api-error-with-whisper-return-timestamps-parameter/150043>\
**Category:** Inference Endpoints on the Hub\
**Created:** [April 12, 2025, 2:08am UTC](https://discuss.huggingface.co/t/inference-api-error-with-whisper-return-timestamps-parameter/150043 "2025-04-12T02:08:35Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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 18, 2025, 3:03am UTC](https://discuss.huggingface.co/t/inference-api-error-with-whisper-return-timestamps-parameter/150043/9 "2025-04-18T03:03:23Z")

</div>

> <https://github.com/huggingface/hub-docs/issues/1694>
>
> \*\*Bug description.\*\*
> Hi team, been using the inference endpoint for whisper for …months at https://api-inference.huggingface.co/models/openai/whisper-large-v3-turbo. Today, all of a sudden, the API started throwing this error
> 
> \> You have passed more than 3000 mel input features (\> 30 seconds) which automatically enables long-form generation which requires the model to predict timestamp tokens. Please either pass \`return\_timestamps=True\` or make sure to pass no more than 3000 mel input features.', 'warnings': \['There was an inference error: You have passed more than 3000 mel input features (\> 30 seconds) which automatically enables long-form generation which requires the model to predict timestamp tokens. Please either pass \`return\_timestamps=True\` or make sure to pass no more than 3000 mel input features.
> 
> This of course only happens when passing in samples longer than 30 seconds, and is replicable through the UI. 
> 
> Passing a \`return\_timestamp\` parameter in the HTTP request does not solve the issue, either in boolean or string form (True/"true")
> 
> \`parameters = {
> "language": "en",
> "temperature": "0.0",
> "return\_timestamps": True}\` 
> 
> Using \`generation\_params\` also fails here. 
> 
> \*\*Describe the expected behaviour\*\*
> The endpoint should run inference as it has previously. Samples exceeding 30 seconds were supported without any issues and no parameter had to be provided. 
> 
> !\[Image\](https://github.com/user-attachments/assets/efb8aa59-be1e-4c64-a240-8351ccd9ee76)

Hmm, I only know the staff who are visible…

If it’s related to Whisper, Serverless Inference API, or servers, then _michellehbn_, _Wauplin_, _pierric_, or _victor_?  
You could also ask _meganariley_…  
The last resort is _julien-c_.

> [@500 Internal Error - We're working hard to fix this as soon as possible](https://discuss.huggingface.co/t/500-internal-error-were-working-hard-to-fix-this-as-soon-as-possible/150333/28):
>
> Hi everyone, thanks for reporting. We’re investigating and we’ll get back to you all real soon. Thanks in advance for bearing with us hugs

---

_[View the full topic](https://discuss.huggingface.co/t/inference-api-error-with-whisper-return-timestamps-parameter/150043)._
