Interpretation

Mint a browser interpretation token

Call from your server with a live secret key holding interpret:session. The token carries only that scope, one concurrent session and the exact allowed origins, with a default lifetime of 60 seconds (maximum 600). Credit and concurrency checks still apply at connect. A browser token cannot mint another token. A parent key with a monthly spending limit cannot delegate browser sessions; its limit continues to apply to direct server connections.

post/v1/audio/interpretations/sessions

Request

  • Base URL: https://api.pyai.com
  • URL: https://api.pyai.com/v1/audio/interpretations/sessions
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Request body

allowed_originsstring[] required
ttl_secondsinteger

Response

Origin-locked browser capability

object'interpretation.session' required
tokenstring required
url'wss://api.pyai.com/v1/audio/interpretations/stream' required
expires_atinteger required

Unix milliseconds.

project_idstring required
billing'credits' required

Changes

No recorded changes to this operation across all 1 revision of this API.