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
- Configure the AI Guard settings.
- Type a Name for the settings.
- Select a security level from the following:
-
Cautious
-
Moderate
-
Aggressive

Note
Trend Micro recommends selecting Moderate. -
- Use the toggles to determine which content types AI Guard scans for:
-
Scan for harmful content
-
Scan for sensitive information
-
Scan for prompt attacks
-
- Click Copy settings code to test the AI Guard settings in your environment.
- Click Apply to save the settings.
- Create an application programming interface (API) key for your AI model.

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.- Go to .
- Click Add API key.
- Enter a name, role, expiration time, and description.Trend Micro recommends storing your API key for AI Guard under the name
$V1_API_KEY. - Click Add.
- Copy and retain the API key.
- Integrate AI Guard with your application. Refer to the following code snippet for
the integration.
<https://api.{region}.xdr.trendmicro.com/beta/aiSecurity>
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
For more information, see the AI Guard API Reference and code examples and the Trend Micro Automation Center. -
