Installation & Setup

Install and initialize the Branofy Voice SDK in Node.js or Python.

Install

npm install @branofy/voice-sdk-node
# or: yarn add / pnpm add / bun add @branofy/voice-sdk-node
pip install branofy-voice-sdk
# or: poetry add / uv add branofy-voice-sdk

Requires Python 3.10+.

Initialize

import { BranofyVoiceSdk } from "@branofy/voice-sdk-node";

const voice = new BranofyVoiceSdk({
  baseUrl: "https://api.branofy.cloud",
  apiKey: process.env.BRANOFY_VOICE_API_KEY,
});
import os
from branofy_voice_sdk import BranofyVoiceClient

client = BranofyVoiceClient(
    base_url="https://api.branofy.cloud",
    api_key=os.environ["BRANOFY_VOICE_API_KEY"],
)
OptionTypeRequiredDescription
baseUrl / base_urlstringYesBase URL of the Voice API (without the /v1 suffix).
apiKey / api_keystringNoSecret API key, sent as the X-API-Key header.

Keep your API key on the server. Never embed it in client-side bundles.

On this page