Diarization / MODEL API
pyannote Speaker Diarization 3.1
Input $4 / 1M tokens
OVERVIEW
Model overview
Speaker diarization — detects who spoke when. Returns speaker turns with start/end times; pair with a transcription model for labelled transcripts.
Specifications
- Category
- Diarization
MODEL PRICING
Model API pricing
Diarization
USD per 1M tokens| Model | Input | Output |
|---|---|---|
| pyannote Speaker Diarization 3.1 | $4 | — |
Public platform rates refresh every five minutes. A dash means a rate is not provided; it does not mean free. Check the console for final charges.
BUILT FOR YOUR STACK
API quickstart
Expand connection setup and run the preparation commands first. Then save and run the Python or cURL example.
Connection setup & preparationActual API address, model ID, and environment variables
- API address
https://api.ecohash.com/v1- API model ID
pyannote-diarization-3-1
Replace YOUR_API_KEY with the full inference API key issued in the console. Run setup in macOS/Linux or a compatible shell. JSON cURL examples use the Python standard library to build the request body.
python -m pip install requests
export GIGACOMMA_API_BASE_URL='https://api.ecohash.com/v1'
export GIGACOMMA_MODEL_ID='pyannote-diarization-3-1'
export GIGACOMMA_API_KEY="YOUR_API_KEY"GIGACOMMA_API_KEY is the environment variable name. Its value is an inference API key from the console, not an OpenAI API key. Get an API key
Prepare this local audio file before running the example: audio.mp3
import osimport requestsMODEL_ID = os.environ["GIGACOMMA_MODEL_ID"]BASE_URL = os.environ["GIGACOMMA_API_BASE_URL"].rstrip("/")headers = {"Authorization": f"Bearer {os.environ['GIGACOMMA_API_KEY']}"}with open("audio.mp3", "rb") as audio: response = requests.post( f"{BASE_URL}/audio/diarizations", headers=headers, data={"model": os.environ["GIGACOMMA_MODEL_ID"]}, files={"file": audio}, timeout=120, )response.raise_for_status()print(response.json())