Secure AI API Gateway: Rate Limits, Authentication and Safet