Use facebook/musicgen-medium with Inference API

I’m deploying the facebook/musicgen-medium model with the inference API using the Python code snippet available on facebook/musicgen-medium · Hugging Face.

The call returns the following error message:

{‘error’: ‘unknown error’, ‘warnings’: [“There was an inference error: unknown error: argument ‘ids’: ‘list’ object cannot be interpreted as an integer”]}

I can’t seem to be able to find a solution in the docs, any help is greatly appreciated.