Skip to main content
POST
/
guardrails
/
detect-audio
Analyze audio with text for safety threats using multimodal guardrails.
curl --request POST \
  --url https://api.enkryptai.com/guardrails/detect-audio \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "text_input": "<string>",
  "audio_data": "<string>",
  "need_explanation": false
}
'
{
  "response": "The content is UNSAFE",
  "is_unsafe": true
}

Authorizations

apikey
string
header
required

Body

application/json
text_input
string
required

The text prompt to accompany the audio for analysis.

audio_data
string
required

Base64-encoded audio file content.

need_explanation
boolean
default:false

Whether to include a detailed explanation of the safety assessment in the response.

Response

200 - application/json

Multimodal audio detection results.

response
string
required

The safety assessment result. When need_explanation is true, includes a detailed explanation.

is_unsafe
boolean
required

Whether the analyzed content was determined to be unsafe.