Views:
Integrate AI Guard within your application to scan your AI usage for harmful content generation, sensitive information leakage, and prompt injections. For self-hosted integration, see Integrate self-hosted AI Guard.

Procedure

  1. Configure the AI Guard settings.
    1. Type a Name for the settings.
    2. Select a security level from the following:
      • Cautious
      • Moderate
      • Aggressive
      Note
      Note
      Trend Micro recommends selecting Moderate.
    3. Use the toggles to determine which content types AI Guard scans for:
      • Scan for harmful content
      • Scan for sensitive information
      • Scan for prompt attacks
    4. Click Copy settings code to test the AI Guard settings in your environment.
    5. Click Apply to save the settings.
  2. Create an application programming interface (API) key for your AI model.
    Important
    Important
    When adding the API key, you must select a role with all AI Scanner permissions. If your organization does not have an existing user role with the necessary permissions, create a custom role or contact your administrator.
    For more information, see API keys.
    1. Go to AdministrationAPI Keys.
    2. Click Add API key.
    3. Enter a name, role, expiration time, and description.
      Trend Micro recommends storing your API key for AI Guard under the name $V1_API_KEY.
    4. Click Add.
    5. Copy and retain the API key.
  3. Integrate AI Guard with your application. Refer to the following code snippet for the integration.
    <https://api.{region}.xdr.trendmicro.com/beta/aiSecurity>
    Note
    Note
    Unless your Trend Vision One account region is the US (the default region), replace {region} with the applicable region code in the base URL:
    • eu
    • jp
    • au
    • in
    • sg
    • mea