How to pass trust_remote_code to API request?

API_URL = "https://api-inference.huggingface.co/models/microsoft/phi-2"
headers = {"Authorization": f"Bearer {API_TOKEN}"}
def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.json()
data = query({"inputs": prompt})
print(data)

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 https://hf.co/microsoft/phi-2.\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.