PyAI Console creations API

The Console creations API from PyAI — 4 operation(s) for console creations.

GitHub OpenAPI

Operations 5

GET /projects/{projectId}/studio/pricing/{product} Preview current creation rates #
PUT /projects/{projectId}/creation-jobs/{id} Start a durable Speech or Transcription job #
GET /projects/{projectId}/creation-jobs/{id} Get background creation progress #
GET /projects/{projectId}/creation-jobs/{id}/input Restore a background transcription's original recording #
POST /projects/{projectId}/dub/library/{id}/revisions Regenerate Dubbing passages and save the revision to My work #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pyai-com:pyai-com-console-creations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pyai-com-console-creations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PyAI Console creations API
  version: 2.14.0
  description: 'Telephony-native Voice AI behind one bearer key:


    - **Hear**, speech-to-text · `POST /v1/audio/transcriptions` (streaming + batch)

    - **Speak**, text-to-speech · `POST /v1/audio/speech`, `GET /v1/voices`

    - **Clone**, custom voices from a short clip · `/v1/voice/clones`

    - **Cast**, auto-directed expressive voiceovers · `/v1/cast`

    - **Dub**, asynchronous audio and video dubbing · `POST /v1/dub` (guide)

    - **Cue configuration frames (reserved)**; Hear streams skip knowledge-base retrieval by default

    - **Omni**, full-duplex agentic voice (speech-to-speech, grounded in your knowledge bases + tools) · `/v1/omni`

    - **Knowledge Bases**, hosted grounding for Omni: create bases, add documents (file, URL, or text), crawl a public website, bind to agents or org defaults · `/v1/knowledgebases`

    - **AMD API**, answering-machine detection: know *who or what* answered a call (human, voicemail, IVR, iPhone/Google screening, dead number) with the reason it decided · `wss …/v1/amd/stream` (Twilio Media Streams drop-in), `POST /v1/amd/config`, `GET /v1/amd/calls/{id}`

    - **Agents Beta**, the live console feature to create, configure, test, and connect Omni voice agents without code. Beta features and limits may change. ## Identity, billing and authentication

    - Before any generation or transcription, call GET /v1/me (MCP: whoami). Verify org_id, project_id, environment, scopes, limits and billing/credit context against the intended project. Do not infer identity or free usage from a key prefix or tool name. Stop on a mismatch or unknown budget; never switch to a live project automatically. - Test usage has enforced limits; live usage is billed. Current meters and rates: https://pyai.com/pricing. Agree a bounded input/request count before generating, and do not retry uncertain billable submissions blindly. Create a key in the console (it is shown once) and send it as a bearer token:


    ```

    Authorization: Bearer pyai_live_... ```


    Keys are environment-scoped: `pyai_live_...` (production) and `pyai_test_...` (sandbox). `POST /v1/sandbox/keys` creates an instant, short-lived test key without login or billing. Account signup also creates a sandbox key. Live keys consume prepaid credit; phone verification may unlock promotional credit under graduated-signup rules, but credit is not guaranteed at signup. Keys are self-validating signed tokens: they work on every PyAI surface the instant they are created, no activation or propagation delay. Treat them as opaque strings (up to 512 chars) and never parse their contents. Keep long-lived keys on trusted servers. For Omni browsers, mint an origin-locked short-lived token on your backend with POST /v1/omni/sessions; never expose a live or test API key in browser code. Offer the protocol marker and session token:


    ```

    Sec-WebSocket-Protocol: pyai.v1, pyai-key. ```


    (server-side clients may instead append `?api_key=...` to the URL). Your key is authenticated on the upgrade and never reaches the model. ## Quickstart, Hear (speech-to-text)


    ```

    curl https://api.pyai.com/v1/audio/transcriptions \

    -H "Authorization: Bearer $PYAI_API_KEY" \

    -F file=@audio.wav -F model=pyai-hear

    # -> { "text": "..." }

    ```


    ## Quickstart, Speak (text-to-speech)


    ```

    curl https://api.pyai.com/v1/audio/speech \

    -H "Authorization: Bearer $PYAI_API_KEY" \

    -H "Content-Type: application/json" \

    -d ''{"model":"pyai-speak","input":"Hello from PyAI.","voice":"voice_abc"}'' \

    --output speech.wav

    ```


    `voice` is a stock voice id from `GET /v1/voices` (the curated prebuilt catalog with personas and avatars) or a cloned voice id from `/v1/voice/clones`. Omit it to use the platform default voice (`stock_dorit_en_us`).'
  contact:
    name: PyAI
    url: https://pyai.com
servers:
- url: https://api.pyai.com
  description: Production
security:
- apiKey: []
- xApiKey: []
tags:
- name: Console creations
paths:
  /projects/{projectId}/studio/pricing/{product}:
    get:
      tags:
      - Console creations
      operationId: getCreatorPricing
      summary: Preview current creation rates
      security:
      - sessionCookie: []
      description: Read-only standard USD rates from the billing engine. Optional source duration produces a usage estimate for Transcription and Dubbing. Speech and Cast return a rate only because generated duration is not known beforehand. Estimates are not reservations or final charges; measured usage and account terms determine billing.
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
      - name: product
        in: path
        required: true
        schema:
          type: string
          enum:
          - speak
          - hear
          - dub
          - cast
      - name: seconds
        in: query
        schema:
          type: number
          exclusiveMinimum: 0
          maximum: 86400
      responses:
        '200':
          description: Current standard rate and optional estimate.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatorPricing'
        '400':
          description: Invalid product or source duration.
        '401':
          description: Sign in to the console.
        '403':
          description: Project membership or a creation role is required.
        '404':
          description: Creation not found in this project.
  /projects/{projectId}/creation-jobs/{id}:
    put:
      tags:
      - Console creations
      operationId: submitCreatorJob
      summary: Start a durable Speech or Transcription job
      security:
      - sessionCookie: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
          pattern: ^crj_[a-f0-9-]{36}$
      description: Console cookie authentication and a trusted console Origin are required. Choose a client UUID prefixed crj_. Speech accepts JSON metadata. Transcription accepts multipart metadata (a JSON string) plus media (up to 25 MiB). For product hear, traceReview=true also saves a deterministic personal data review in Trace under trup_{creation_id}. It uses the actual transcription, does not require a provider, and does not change future call settings. The recording and transcript remain in My work. Review completion is part of job completion, including worker recovery. No speech produces trace_no_speech, never a PASS. A 202 means the input is stored and the job will continue after the browser closes. Repeat the same ID and payload after a lost response; a changed payload returns 409. Uses workspace credits through the normal product meter. Do not automatically create another ID after an uncertain response.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatorJobInput'
          multipart/form-data:
            schema:
              type: object
              required:
              - metadata
              - media
              properties:
                metadata:
                  type: string
                  description: JSON-encoded CreatorJobInput for product hear.
                media:
                  type: string
                  format: binary
      responses:
        '202':
          description: Durably accepted, or the existing job for this request ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatorJob'
        '400':
          description: Invalid input.
        '401':
          description: Sign in to the console.
        '403':
          description: Project membership or a creation role is required.
        '404':
          description: Creation not found in this project.
        '409':
          description: idempotency_conflict or no active live billing project.
        '413':
          description: Recording exceeds 25 MiB.
        '503':
          description: Background creation unavailable; retain the input.
    get:
      tags:
      - Console creations
      operationId: getCreatorJob
      summary: Get background creation progress
      security:
      - sessionCookie: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
          pattern: ^crj_[a-f0-9-]{36}$
      description: Poll queued/running jobs. completed exposes creation_id, available through the project's creations API and My work. Failed jobs preserve their original input. charge is not_started, unconfirmed, or metered; unconfirmed requires checking usage before an explicit retry. A worker interruption never silently repeats a potentially paid inference request.
      responses:
        '200':
          description: Public creation state, original metadata and charge status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatorJob'
        '401':
          description: Sign in to the console.
        '403':
          description: Project membership or a creation role is required.
        '404':
          description: Creation not found in this project.
  /projects/{projectId}/creation-jobs/{id}/input:
    get:
      tags:
      - Console creations
      operationId: downloadCreatorInput
      summary: Restore a background transcription's original recording
      security:
      - sessionCookie: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
          pattern: ^crj_[a-f0-9-]{36}$
      responses:
        '200':
          description: Private original recording, available for an explicit retry.
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '401':
          description: Sign in to the console.
        '403':
          description: Project membership or a creation role is required.
        '404':
          description: Creation not found in this project.
  /projects/{projectId}/dub/library/{id}/revisions:
    post:
      tags:
      - Console creations
      operationId: createConsoleDubRevision
      summary: Regenerate Dubbing passages and save the revision to My work
      security:
      - sessionCookie: []
      parameters:
      - name: projectId
        in: path
        required: true
        schema:
          type: string
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          pattern: ^[A-Za-z0-9_-]{16,128}$
      description: Requires a signed-in creator, trusted console Origin, and a parent job saved in this project. Accepts DubRevisionInput. The backend creates an idempotent revision and saves it to the project library before responding, so browser departure does not discard the accepted job. Retry with the same key after an interrupted response.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DubRevisionInput'
      responses:
        '202':
          description: Revision saved to My work.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConsoleDubRevision'
        '400':
          description: Invalid selection.
        '401':
          description: Sign in to the console.
        '403':
          description: Project membership or a creation role is required.
        '404':
          description: Creation not found in this project.
        '409':
          description: Edits or retry key conflict.
        '503':
          description: Interrupted or unavailable. Retry the same request key.
components:
  schemas:
    CreatorJobInput:
      type: object
      required:
      - product
      - name
      - format
      properties:
        traceReview:
          type: boolean
          description: 'For hear only: save a real deterministic personal data review to Trace after transcription. Uses workspace transcription credits. No future call settings change.'
        product:
          type: string
          enum:
          - speak
          - hear
        name:
          type: string
          minLength: 1
          maxLength: 160
        text:
          type: string
          description: Speech script, up to 2,000 Unicode characters. Empty for transcription.
        voiceId:
          type: string
          maxLength: 200
          description: Required for Speech.
        voiceName:
          type: string
          maxLength: 200
        format:
          type: string
          enum:
          - mp3
          - wav
          - txt
        language:
          type: string
          enum:
          - ''
          - en
          - es
          - fr
          - de
          - hi
          - it
          - pt
          - nl
          - zh
          - yue
          - ar
          - id
          - ko
          - th
          - vi
          - ja
          - tr
          - ms
          - sv
          - da
          - fi
          - pl
          - cs
          - fil
          - fa
          - el
          - hu
          - mk
          - ro
          description: Spoken language for Transcription; empty detects it.
        sourceName:
          type: string
          maxLength: 240
    CreatorPricing:
      type: object
      required:
      - product
      - currency
      - pricing_version
      - basis
      - rate_micros_per_minute
      - estimated_micros
      properties:
        product:
          type: string
          enum:
          - speak
          - hear
          - dub
          - cast
        currency:
          type: string
          const: USD
        pricing_version:
          type: string
        basis:
          type: string
          enum:
          - source_audio
          - generated_audio
        rate_micros_per_minute:
          type: integer
          minimum: 0
        estimated_micros:
          type:
          - integer
          - 'null'
          minimum: 0
    ConsoleDubRevision:
      type: object
      required:
      - job_id
      - name
      - created_at
      - status
      - parent_job_id
      properties:
        job_id:
          type: string
        name:
          type: string
        created_at:
          type: integer
        status:
          type: string
          enum:
          - queued
          - running
          - done
          - error
        parent_job_id:
          type: string
    CreatorJob:
      type: object
      required:
      - id
      - product
      - name
      - status
      - stage
      - input
      - error_code
      - charge
      - created_at
      - updated_at
      - creation_id
      properties:
        id:
          type: string
        product:
          type: string
          enum:
          - speak
          - hear
        name:
          type: string
        status:
          type: string
          enum:
          - queued
          - running
          - completed
          - failed
        stage:
          type: string
          enum:
          - queued
          - connecting
          - generating
          - transcribing
          - saving
          - completed
          - failed
        input:
          $ref: '#/components/schemas/CreatorJobInput'
        error_code:
          type:
          - string
          - 'null'
        charge:
          type: string
          enum:
          - not_started
          - unconfirmed
          - metered
        created_at:
          type: integer
          description: Unix milliseconds.
        updated_at:
          type: integer
          description: Unix milliseconds.
        creation_id:
          type:
          - string
          - 'null'
    DubRevisionInput:
      type: object
      additionalProperties: false
      required:
      - revision
      - segment_ids
      properties:
        revision:
          type: integer
          minimum: 1
        segment_ids:
          type: array
          minItems: 1
          maxItems: 50
          uniqueItems: true
          items:
            type: string
            pattern: ^seg_[1-9][0-9]*$
  securitySchemes:
    interpretationUpload:
      type: http
      scheme: bearer
      description: Short-lived write-only upload_capability returned by POST /v1/audio/interpretations/recordings. Never use it for reads.
    sessionCookie:
      type: apiKey
      in: cookie
      name: pyai_session
      description: Console session cookie. PyAI-admin routes also require the configured platform-admin email allowlist.
    apiKey:
      type: http
      scheme: bearer
      description: 'Use `Authorization: Bearer pyai_live_...` (or `pyai_test_...`).'
    xApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Header alias for bearer auth on HTTP endpoints. WebSocket auth uses the subprotocol pair `pyai.v1, pyai-key.<API_KEY>`.
x-pyai-agent-notes:
  guide: https://pyai.com/agents/speech-calling.md
  omni_frames: https://api.pyai.com/omni-frames.json
  discovery: Inspect live operation schemas; preserve IDs and required Idempotency-Key headers. SDK-first for realtime. Never infer a simulated PSTN call endpoint.