Skip to main content
Base URL for API CallsThe base URL for API calls will vary based on the location of the API call or the networking setup in your environment. For calls originating from the machine where AI Runtime Security is installed, use localhost concatenated with a path.

Request Schema

Method: POST Path: /api/v1/submit/prompt-analyzer Content-Type: application/json Request Body: {"prompt": prompt, "model": "gpt-3.5-turbo", "output": output}
Best Practice: Exclude the System PromptAs a best practice, the prompt field should contain only the end-user’s input message. Avoiding the inclusion of your application’s system prompt in this field is recommended, as system prompts contain instructional language that may trigger false positive detections (e.g., prompt injection), since the classifiers are optimized for user-generated content.

Example Curl Request - Analyze Input

Example Curl Request - Analyze Output

Response Codes

Response Schema

The highest level values are the following:

Example detection categories:

Example detection results:

Example policy:

Example frameworks: