Skip to content
Navigation

Create a realtime transcription

Creates a live transcription session and returns a websocket.url for one client.

Call this from your backend with your API key. Give websocket.url to the browser (or any client). The URL carries a single-use ticket that expires after 60 seconds. The client opens the socket and sends raw PCM16 little-endian audio, 16 kHz, mono, as binary frames. The session sends back partial and final text. The WebSocket upgrade is not an API operation: it is documented on the capability page, not here. Use POST /v1/realtime/transcriptions/{id}/tickets to get a new ticket for a reconnect.

Pricing. A 5-credit session fee, charged when the first decoder joins, or when a session that no client connected to expires. Then 2 credits per started minute of decoded audio. When the session fails on our side (no capacity, no decoder), you pay nothing. With finalPass: true, the batch diarized transcription is billed by the normal audio meters on top (20 credits per minute, minimum 1 minute).

Data. Montreal decode, North America session state, the final pass may run in the US; no residency guarantee. The server keeps no transcript: persist the finals your client receives. Without finalPass, no audio is kept after close.

Limits. A session lasts at most 4 hours (2 hours with finalPass). It closes after 5 minutes without audio. It expires when no client connects within 10 minutes. A revoked API key does not end its live sessions.

MCP code mode can create a session, but it cannot stream audio. Send an idempotency-key: a retry with the same key and body returns the same session with a fresh ticket and the idempotent-replay: true header.

Learn more: Realtime transcription

POST
https://api.cloudraker.com/v1/realtime/transcriptions
Try it
Header parameters
Request body
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Header parameters

  • idempotency-key
    optional
    string

    A retry with the same key and body returns the same session.

    maxLength: 255 · minLength: 1

Request body JSON required

  • finalPass
    optional
    boolean

    Archive the audio as a file and run batch diarized transcription at close. Billed by the normal audio meters (minimum 1 diarized minute).

    default: false
  • maxDurationSeconds
    optional
    integer

    Hard cap on received audio. Default and max 14400 (4 h); default and max 7200 with finalPass.

    maximum: 14400 · minimum: 60
  • metadata
    optional
    map of
    string

    Kept 30 days after close. Do not put personal data here.

Returns

201

The session, with websocket for the first client.

JSON
  • object
    string
    required
  • id
    string
    required
  • status
    created
    or
    active
    or
    closing
    or
    closed
    or
    expired
    or
    failed
    required
  • closeReason
    required

    Any of the following:

    • string
      client_end
      or
      stopped
      or
      idle_timeout
      or
      max_duration
      or
      credits_exhausted
      or
      worker_unavailable
      +2 more
    • null
  • audio
    object
    required
    • encoding
      string
      required
    • sampleRate
      number
      required
    • channels
      number
      required
  • maxDurationSeconds
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • audioSeconds
    number
    required

    Received audio, in seconds.

  • billedMinutes
    integer
    required

    Minutes charged so far.

    maximum: 9007199254740991 · minimum: -9007199254740991
  • finalPass
    object
    required
    • enabled
      boolean
      required
    • status
      disabled
      or
      recording
      or
      uploading
      or
      processing
      or
      ready
      or
      failed
      +1 more
      required
    • fileId
      string | null
      required

      A normal /v1 file (GET /v1/files/{id}).

  • metadata
    required

    Any of the following:

    • map<string>
    • null
  • createdAt
    string
    required
    format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
  • connectedAt
    required

    Any of the following:

    • string
    • null
  • closedAt
    required

    Any of the following:

    • string
    • null
  • connectBy
    required

    Connect before this time, or the session expires. Null once a client connected.

    Any of the following:

    • string
    • null
  • websocket
    optional
    object

    Only in the create response.

    • object
      string
      required
    • url
      string
      required

      The wss:// URL to open. It carries a single-use ticket that expires after 60 seconds.

    • expiresAt
      string
      required
      format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$

400

invalid_request — the body failed validation.

401

Missing or invalid credential.

402

credits_exhausted, or feature_not_in_plan — your plan does not include realtime transcription.

403

The credential may not use the /v1 API.

409

idempotency_conflict — the key was used with another body.

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

503

capacity_unavailable — no capacity is free. Nothing was charged. Retry.

Type to search…

↑↓ navigate↵ selectEsc close