How to pass trust_remote_code to API request?

API_URL = ""
headers = {"Authorization": f"Bearer {API_TOKEN}"}
def query(payload):
    response =, headers=headers, json=payload)
    return response.json()
data = query({"inputs": prompt})

Got an error

{'error': 'The repository for microsoft/phi-2 contains custom code which must be executed to correctly load the model. You can inspect the repository content at\nPlease pass the argument `trust_remote_code=True` to allow custom code to be run.'}

How to fix this, how to pass the argument trust_remote_code=True ?

cc @osanseviero. The inference API does not support trust_remote_code=True for now.