| Batch | Streaming | |
|---|---|---|
| Use case | Classify a complete audio file | Real-time frame-by-frame classification |
| Protocol | HTTP POST | WebSocket |
| Output | Full response after processing | Frames emitted progressively as audio arrives |
| Latency | Proportional to file length | ~192ms per frame |
Authentication
Batch uses theX-API-Key header. Streaming uses an api_key query parameter at connection time. See Authentication and rate limits.