Hugging Face
Protect Any Hub Model

Secure Cloud Model Hosting
Protect your Replicate model deployments with Wardstone Guard. Secure open-source models running on Replicate's infrastructure from prompt attacks.
Replicate runs models without modifying them, including any safety gaps.
Stable Diffusion and other image models can generate harmful visual content.
Different model versions may have different vulnerability profiles.
Replicate hosts models as-is without additional safety layers
Prediction pricing means security should be lightweight
Image models can generate harmful visual content
Wardstone protects both text and describes image generation prompts
Install Wardstone SDK alongside the Replicate client.
Screen prompts before calling replicate.run() or predictions.create().
Validate text model outputs for harmful content.
Block harmful image generation prompts before they reach Stable Diffusion.
Replicate charges per prediction. Wardstone's lightweight inference adds minimal latency and cost.
# Step 1: Check user input with Wardstonecurl -X POST "https://api.wardstone.ai/v1/detect" \ -H "Authorization: Bearer YOUR_WARDSTONE_KEY" \ -H "Content-Type: application/json" \ -d '{"text": "User message here"}' # Response: { "prompt_attack": { "detected": false, ... } } # Step 2: If safe, send to Replicatecurl -X POST "https://api.replicate.com/v1/predictions" \ -H "Authorization: Bearer YOUR_REPLICATE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "version": "meta/llama-4-scout-109b-instruct", "input": {"prompt": "User message here", "max_tokens": 500} }' # Step 3: Check Replicate response with Wardstone before returning to userWardstone Guard protects all Replicate models with the same comprehensive security coverage. Whether you're using the latest releases or legacy models still in production, every API call is protected.
Protect Any Hub Model
Secure Open Models at Scale
Secure Open-Weight AI
Try Wardstone Guard in the playground to see detection in action.