curl --request POST \
--url https://api.interhuman.ai/v2/upload/analyze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form wait_seconds=0import requests
url = "https://api.interhuman.ai/v2/upload/analyze"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "wait_seconds": "0" }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
form.append('wait_seconds', '0');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.interhuman.ai/v2/upload/analyze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.interhuman.ai/v2/upload/analyze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"wait_seconds\"\r\n\r\n0\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.interhuman.ai/v2/upload/analyze"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"wait_seconds\"\r\n\r\n0\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.interhuman.ai/v2/upload/analyze")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"wait_seconds\"\r\n\r\n0\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.interhuman.ai/v2/upload/analyze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"wait_seconds\"\r\n\r\n0\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"job_id": "3f1c2b7a9d4e4c8fa1b2c3d4e5f60718",
"status": "completed",
"model": "inter-2-audio",
"created_at": "2026-09-11T10:00:00Z",
"expires_at": "2026-09-11T11:00:00Z",
"status_url": "/v2/upload/jobs/3f1c2b7a9d4e4c8fa1b2c3d4e5f60718",
"result": {
"duration_seconds": 10,
"window_seconds": 5,
"windows": [
{
"index": 0,
"start_seconds": 0,
"end_seconds": 5,
"engagement_status": "engaged",
"signals": [
{
"type": "confidence",
"start": 0,
"end": 5,
"probability": "high",
"rationale": "Steady pace and a firm, even tone throughout.",
"modality": [
"audio"
]
}
]
},
{
"index": 1,
"start_seconds": 5,
"end_seconds": 10,
"engagement_status": "neutral",
"signals": []
}
]
}
}Inter-2 Upload Analyze
Submit an audio or video file for analysis by an Inter-2 model as an asynchronous job. Answers 202 with the queued job envelope, or 200 with the finished job when wait_seconds is set and the job finishes in time.
curl --request POST \
--url https://api.interhuman.ai/v2/upload/analyze \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form wait_seconds=0import requests
url = "https://api.interhuman.ai/v2/upload/analyze"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "wait_seconds": "0" }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
form.append('wait_seconds', '0');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.interhuman.ai/v2/upload/analyze', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.interhuman.ai/v2/upload/analyze",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"wait_seconds\"\r\n\r\n0\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.interhuman.ai/v2/upload/analyze"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"wait_seconds\"\r\n\r\n0\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.interhuman.ai/v2/upload/analyze")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"wait_seconds\"\r\n\r\n0\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.interhuman.ai/v2/upload/analyze")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"wait_seconds\"\r\n\r\n0\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"job_id": "3f1c2b7a9d4e4c8fa1b2c3d4e5f60718",
"status": "completed",
"model": "inter-2-audio",
"created_at": "2026-09-11T10:00:00Z",
"expires_at": "2026-09-11T11:00:00Z",
"status_url": "/v2/upload/jobs/3f1c2b7a9d4e4c8fa1b2c3d4e5f60718",
"result": {
"duration_seconds": 10,
"window_seconds": 5,
"windows": [
{
"index": 0,
"start_seconds": 0,
"end_seconds": 5,
"engagement_status": "engaged",
"signals": [
{
"type": "confidence",
"start": 0,
"end": 5,
"probability": "high",
"rationale": "Steady pace and a firm, even tone throughout.",
"modality": [
"audio"
]
}
]
},
{
"index": 1,
"start_seconds": 5,
"end_seconds": 10,
"engagement_status": "neutral",
"signals": []
}
]
}
}Response Headers
f47ac10b-58cc-4372-a567-0e02b2c3d479Authorizations
API key authentication. Include your API key in the Authorization header as 'Bearer <api_key>'.
Headers
Optional identifier supplied by the client to correlate this request with their own logs. When provided, the value is recorded alongside the server-assigned correlation ID in Interhuman logs to aid lookup and support investigations. This header is not echoed back in the response; the server returns its own correlation ID in the X-Correlation-ID HTTP response header.
Optional client SDK identity as <sdk-name>/<semver> (e.g. typescript/0.13.0), sent automatically by the first-party Interhuman SDKs. It is recorded in Interhuman telemetry so SDK adoption and version distribution are visible. The value is self-declared and not authenticated: it never affects authentication, authorization, scopes, quotas, or billing, and a missing, malformed, or unrecognized value is ignored rather than rejected.
Body
The file to analyze. For inter-2-audio: wav, flac, mp3, m4a, ogg, or a webm or mp4 file with an audio track. At least 3 seconds of media, at most 32 MB, and no longer than the deployment's maximum duration (30 minutes by default).
The Inter-2 model to analyze with. inter-2-audio is served; inter-2 and inter-2-deep are reserved and answer ih4020 until available on this route. The credential must carry the interhumanai.upload.<model> scope for the model it names.
inter-2, inter-2-audio, inter-2-deep Hold the request open for up to this many seconds waiting for the job to finish. 0 (the default) answers 202 at once. Values above the deployment's bound are rejected with ih4005.
x >= 0Response
The job reached a terminal state within wait_seconds: completed with result, or failed with error.
The job envelope, returned by both v2 upload routes.
Identifier of the job. Use it with GET /v2/upload/jobs/{job_id}.
"3f1c2b7a9d4e4c8fa1b2c3d4e5f60718"
Where the job is: queued (accepted, not started), running, completed (result is set) or failed (error is set).
queued, running, completed, failed "queued"
The model the job was submitted for.
inter-2, inter-2-audio, inter-2-deep "inter-2-audio"
When the job was accepted (UTC).
"2026-09-11T10:00:00Z"
When the job record, and its result, stop being readable (UTC). A read after this time answers ih4021.
"2026-09-11T11:00:00Z"
Path of the job's status resource, relative to the API base URL: /v2/upload/jobs/{job_id}.
"/v2/upload/jobs/3f1c2b7a9d4e4c8fa1b2c3d4e5f60718"
The result of a completed upload job: one entry per analyzed window.
Show child attributes
Show child attributes
Structured error returned by all HTTP error paths.
Only error_id is required. The other fields are included when available.
Show child attributes
Show child attributes