Analyze media with streaming
curl --request POST \
--url https://api.illocution.ai/analyze/stream \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form file='@example-file'import requests
url = "https://api.illocution.ai/analyze/stream"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
options.body = form;
fetch('https://api.illocution.ai/analyze/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"detail": "Invalid or missing API key"
}{
"detail": "Invalid or missing API key"
}Analysis
Analyze media with streaming
Identical payload to /analyze, but the response is an SSE stream. The service emits partial transcripts in real time before the full analysis is available.
POST
/
analyze
/
stream
Analyze media with streaming
curl --request POST \
--url https://api.illocution.ai/analyze/stream \
--header 'Content-Type: multipart/form-data' \
--header 'X-API-Key: <api-key>' \
--form file='@example-file'import requests
url = "https://api.illocution.ai/analyze/stream"
files = { "file": ("example-file", open("example-file", "rb")) }
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
options.body = form;
fetch('https://api.illocution.ai/analyze/stream', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"detail": "Invalid or missing API key"
}{
"detail": "Invalid or missing API key"
}