Limits and errors
A request to Hume Audio Decisions takes one audio file of 1 second to 5 minutes and up to 25,000,000 bytes, up to 20 noul, choice, and score questions, and up to 5 span questions. Each organization can send 600 requests per minute. Each limit table names the error a request outside that limit returns, and Codes says what each code means.
Audio
To evaluate a recording longer than 5 minutes, split it into files of 5 minutes or less and send one request per file. Keep every part at least 1 second long, and at least 5 seconds for most questions.
Which limit a file reaches first
Uncompressed WAV usually reaches the size limit before 5 minutes. The request part adds little, so the size of the audio file decides which limit applies:
To fit a longer WAV file under the size limit, convert it to 16 kHz mono. The model hears audio as one channel at 16 kHz, so a higher sample rate or a second channel does not improve answers, and 5 minutes of 16 kHz mono WAV fits in 9.6 MB:
Questions and context
Rate limits
The limit counts requests to every Hume Audio Decisions endpoint over a sliding 60-second window, and every API key in an organization shares it. A 429 carries a Retry-After header with the number of seconds to wait before retrying. See Handling errors.
Response format
Every Hume Audio Decisions endpoint returns an error as a JSON body with a 4xx or 5xx status. The status says how the request failed, and code says why. Branch on code in your application, and use message for logs and debugging.
Always error.
A stable string to branch on. See Codes.
A description for logs and debugging. The wording may change without notice.
Where the error was found: a JSON Pointer into the request part or the input tokens body, or the name of a part or header. For a field that is missing, unknown or of the wrong type, it can name an enclosing object, such as the question, instead of the field. Absent when the error has no narrower location than the whole request.
Identifies the request in Hume’s records. Quote it when contacting support.
Gateway errors
Hume’s API gateway answers three errors before the request reaches the service: a 401 for a missing or invalid credential, a 429 for a rate limit and a 404 for a path or HTTP method the API does not serve. Their body has a message but no type or code, so branch on the status for these.
Of these, a 404 always carries a request_id, a 401 carries one only when an API key was rejected, and a 429 never does.
Codes
Handling errors
Reporting a problem
When contacting support, include the request ID. Every response from the service, including a success, carries it in the X-Request-Id header, and every error body from the service carries it as request_id.