Models API
All Models API endpoints require authentication via an API key. This section covers how to pass your key correctly for each endpoint type, what errors to expect when authentication fails, and how rate limiting works.API keys
API keys can be generated in the web interface. API keys are tied to your organization and determine your access to models and your usage limits. These settings cannot be changed once an API key is generated.
Passing your API key
The method differs depending on whether you are using an HTTP or WebSocket endpoint.HTTP batch endpoints
Include your key in theX-API-Key request header on every request.
POST /api/velma-2-stt-batchPOST /api/velma-2-stt-batch-english-vfastPOST /api/velma-2-stt-batch-multilingual-vfastPOST /api/velma-2-synthetic-voice-detection-batchPOST /api/velma-2-pii-phi-redaction-batch
WebSocket streaming endpoints
Pass your key as theapi_key query parameter when opening the connection. It cannot be passed as a header after the WebSocket handshake.
wss /api/velma-2-stt-streamingwss /api/velma-2-synthetic-voice-detection-streamingwss /api/velma-2-pii-phi-redaction-streaming
Authentication error codes
HTTP endpoints
The Deepfake Detection batch endpoint returns
403 for both unauthorized keys and exceeded usage limits, rather than a separate 401. Check the detail field in the error response body to distinguish the cause.WebSocket endpoints
Authentication failures during the WebSocket handshake result in a close code rather than an HTTP status.Rate limits
Three independent limits apply to your usage. They are enforced separately, so hitting one has no effect on the others. Concurrent request limit — the number of requests or connections that can be in-flight simultaneously, applied per model. Submitting a new request beyond this limit results in an immediate error rather than queuing. New accounts start with a limit of 1–5 concurrent streams per model; see Requesting more concurrency below to raise it. Monthly Usage Quota — a per-model cap on audio processed each month, set by Modulate for your organization. When a model’s quota is reached, further requests to that model are rejected until the monthly period resets; other models are unaffected. Your organization cannot change this value directly — submit the support form to request a higher quota on a specific model. Monthly Credit Limit — an optional, organization-wide cap on total credit spend that you set for yourself. It is off by default and has no per-model configuration. When enabled and reached, further processing is blocked across all models until an admin raises or removes the limit. An admin controls this value in Organization settings.Rate limit error codes
Retry guidance
When you receive a rate limit error:- Concurrent limit hit — wait a short interval (a few seconds) and retry. The limit frees up as in-flight requests complete.
- Monthly Usage Quota hit (single model) — no retry will succeed until the monthly period resets. If you need a higher quota for that model, submit the support form.
- Monthly Credit Limit hit (all models blocked) — no retry will succeed until the limit is raised or the monthly period resets. An admin can review or change it in Organization settings.
Python semaphore pattern
Python semaphore pattern
Requesting more concurrency
The concurrent request limit is adjustable per model from the Concurrency Limits page in your dashboard. New accounts start at 1–5 concurrent streams per model.- Up to 25 concurrent streams — you can raise a model to this ceiling yourself; the increase applies automatically.
- More than 25 — requests above 25 go to the Modulate team for evaluation. We may follow up for more information about your use case and expected traffic before approving.
Modulate Platform API
The Modulate Platform API (cloud-processing-api.modulate.ai) is the orchestration surface for submitting jobs that combine transcription with optional analysis features (emotion, demographics, deepfake detection, behavioral insights). It uses a different auth scheme from the Models API.
Authentication headers
Every Platform API request requires two headers:accountuuid— your account’s UUID, available from your account administrator or the Platform dashboard.apikey— your Platform API key. This is separate from your Models API keys and is issued through the Platform.
Submission types
The Platform API supports three job submission patterns through a singlePOST /api_service endpoint:
- Real-time WebSocket — submit with
submission_type: "realtime_websocket"and no files. The response returns arealtime_urlfor streaming via the Pipecat Client SDK. - Single-file batch — upload one audio file (≤ 5 MB) in a single POST.
- Multi-file batch — POST each file in turn with the same
job_id; setfinalize_job: trueon the final upload.
GET /api_service/job_status/{job_id} until status='completed', then retrieve results from the response.
See the API Reference → Modulate Platform API tab for full request/response schemas.