Securing LLM and NLP APIs