Skip to main content
Use these fields before you pass scraped text to a model. checkPromptInjection and redactPII need an API key. This request scans a page for instructions aimed at a model and hides names, emails and phone numbers:
Names in data.markdown come back as tags such as <PERSON>. Check data.warning for a cut or incomplete scan.

Limits and errors

  • The scan reads the first 150,000 characters. A longer page, or one the scan cannot finish, comes back with a warning that it was not fully checked.
  • A page the model cannot redact is refused, not returned unredacted. That happens for PERSON and LOCATION on a page longer than 300,000 characters. The call returns 400 invalidRequest and costs nothing. Use mode: "fast", or leave those two out of entities.
  • checkPromptInjection, redactPII and onlyCleanContent without an API key return 401 apiKeyRequired.
  • checkPromptInjection adds a fee when the scan runs. redactPII and lockdown add none. See Pricing.
To remove banners and prompts, see Content filtering. To keep nothing from a call, see Zero data retention. For what Stophy reads, see Responsible use.