Secure AI API Gateway: Rate Limits, Auth and Safety