v43

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-0953227392.1 KB
interactions-v1_other

Prompt Analyzer

Analyze LLM Prompt and Response

post/api/v1/submit/prompt-analyzer

Request body

promptstring required
outputstring
modelstring

Example request

{
  "prompt": "Hello World",
  "output": "Hello, how can I help you today?",
  "model": "mistral-tiny"
}

Response

Successful Prompt Analyzer response

providerstring
modelstring
verdictboolean

The overall verdict of the analysis

elapsed_msnumber

The time in milliseconds it took to process the request

upstream_elapsed_msnumber

The time in milliseconds the upstream LLM took to process the request

Example response

{
  "results": {
    "input_block_list_results": {
      "verdict": true,
      "matches": [
        "badToken"
      ],
      "elapsed_ms": 10
    },
    "prompt_injection_classifier_results": [
      {
        "version": 1,
        "verdict": true,
        "probabilities": [
          1
        ],
        "elapsed_ms": 100
      }
    ],
    "input_pii_results": {
      "verdict": true,
      "entities": [
        "PHONE_NUMBER"
      ],
      "elapsed_ms": 20
    },
    "output_pii_results": {
      "verdict": true,
      "entities": [
        "LOCATION"
      ],
      "elapsed_ms": 20
    }
  },
  "policy": {
    "prompt_injection_scan_type": "quick",
    "redact_type": "entity",
    "entity_type": "strict",
    "input_dos_detection_threshold": 4096
  },
  "frameworks": {
    "mitre": [
      {
        "name": "LLM Prompt Injection",
        "label": "AML.T0051"
      }
    ],
    "owasp": [
      {
        "name": "Prompt Injection",
        "label": "LLM01"
      }
    ],
    "owasp:2025": [
      {
        "name": "Prompt Injection",
        "label": "LLM01:2025"
      }
    ]
  }
}