Upload a short file and receive the classified emotion
curl --request POST \
  --url https://api.getvalenceai.com/emotionprediction \
  --header 'x-api-key: <api-key>'

Parameters

  • file_path (string): Path to the audio file

Response

Returns: prediction [string] - Emotion prediction results Throws: Error if file doesn’t exist, API key missing, or request fails