TypeScript SDK
Client Configuration
ProsodyClient options
Read Integration first.
Setup
const client = new ProsodyClient({
apiKey: process.env.PROSODY_API_KEY!, // psk_* from dashboard
});Or pass the key as a string:
const client = new ProsodyClient('psk_...');| Option | Description |
|---|---|
apiKey | Dashboard psk_* key — sent as X-API-Key |
baseUrl | API origin — default https://api.prosodyai.app |
timeoutMs | Default 30000 |
retry | Retry on 408 / 429 / 5xx |
debug | Log requests |
Batch methods (analyze*, createStream) and createRealtimeStream() share this config.
Environment
PROSODY_API_KEY=psk_...Create keys under Organization → API keys in the dashboard.
Override baseUrl only for staging or private deployments. Production integrations use api.prosodyai.app.