Perform spam check analysis on a given text in seconds.
import { JigsawStack } from "jigsawstack"; const jigsaw = JigsawStack({ apiKey: "your-api-key" }); const response = await jigsaw.validate.spamcheck({ "text": "Congratulations! You've won a free iPhone! Click here to claim now!" })
{ "success": true, "check": { "score": 0.95, "is_spam": true }, "_usage": { "input_tokens": 20, "output_tokens": 14, "inference_time_tokens": 513, "total_tokens": 547 } }
Show _usage
Hide check
Was this page helpful?