ProsodyAI Docs
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_...');
OptionDescription
apiKeyDashboard psk_* key — sent as X-API-Key
baseUrlAPI origin — default https://api.prosodyai.app
timeoutMsDefault 30000
retryRetry on 408 / 429 / 5xx
debugLog 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.

On this page