What do you mean run an API locally? For anyone to answer your question, we need more details. Please follow the question format that autofills when you start the question and refer to how to ask a good question.