PyAI MCP server

Endpoint: https://api.pyai.com/mcp · Authentication: Sign in with OAuth

Generate speech, transcribe audio, and work with voice agents. Sign in to PyAI with OAuth for account operations.

How do I authenticate?

Add the endpoint in your client, start Connect or Sign in, approve the requested scopes, and return to the client. OAuth discovery finds the authorization server; client registration requirements vary by provider. Follow the provider guidance and client setup below.

Authentication and connection guide

Connection specification

Remote endpoint
https://api.pyai.com/mcp
Browser access
Not yet measured
Declared MCP transport
Streamable HTTP
Live-validated MCP transport
Not yet verified — Latest validation did not verify a transport
Declared authentication
OAuth 2.1
Protocol lifecycle
Not yet negotiated
Authorization server
https://api.pyai.com

Product documentation · Official listing documentation · ChatGPT app directory listing

Provider guidance

  • A direct anonymous session negotiated MCP 2025-11-25 and listed tools. The default validator received an OAuth challenge.

More Communication MCP servers · Browse all MCP servers · Test this endpoint in the MCP Playground

Authorization setup

Registration requirements not verified

The OAuth authorization and app-registration requirements for this exact endpoint have not been verified. A compatible client will request authorization, but follow the publisher documentation and do not guess client credentials or callbacks.

Publisher evidence reviewed .

Publisher documentation

Connect it

Live-validated endpoint: https://api.pyai.com/mcp · Streamable HTTP. Registration requirements not verified: The OAuth authorization and app-registration requirements for this exact endpoint have not been verified. A compatible client will request authorization, but follow the publisher documentation and do not guess client credentials or callbacks.

Agent prompt for Claude Code or Codex
Add the PyAI MCP server to my MCP client configuration and verify that it works.

What it is: Generate speech, transcribe audio, and work with voice agents. Sign in to PyAI with OAuth for account operations.
Server URL: https://api.pyai.com/mcp
Transport: Streamable HTTP (remote MCP server, no local install).
Authentication: OAuth 2.1. Registration requirements not verified: The OAuth authorization and app-registration requirements for this exact endpoint have not been verified. A compatible client will request authorization, but follow the publisher documentation and do not guess client credentials or callbacks.
Tools (first 25 of 59, as last observed by mcptest): calls_get, calls_list, configure_amd, configure_trace, create_agent, create_dub, create_recap, create_trace_rule_pack, create_transcription_job, direct_cast_script, discover_tools, draft_website_widget, enable_recap, get_agent, get_amd_call, get_cast_audio, get_cast_capabilities, get_cast_render, get_dub_audio, get_dub_capabilities, get_dub_job, get_recap, get_recap_config, get_started, get_trace_config.
Reference: https://mcptest.io/servers/pyai/

Steps:
1. Work out which MCP client I use (Claude Code, Codex, Cursor, VS Code or another) and add the server under the name "pyai" in that client's MCP configuration, user scope unless I ask otherwise.
   Claude Code: claude mcp add --transport http --scope user 'pyai' 'https://api.pyai.com/mcp'
   Other clients: use the setup for that client on the reference page.
2. Never write a credential value into a file that could be committed; reference an environment variable or the client's secret store, and ask me for any value you need.
3. Verify: connect to the server and call tools/list. Confirm the tools above are listed, and report any sign-in step I still have to complete.
MCP client

Claude Code setup

Run in a terminal. This user-scoped entry is available across projects.

claude mcp add --transport http --scope user 'pyai' 'https://api.pyai.com/mcp'
  • After adding the server, open Claude Code, run /mcp, select the server, and follow the browser flow to authenticate.

Codex CLI setup

Run in a terminal; Codex stores the entry in ~/.codex/config.toml.

codex mcp add 'pyai' --url 'https://api.pyai.com/mcp'
codex mcp login 'pyai'

Cursor setup

Add to .cursor/mcp.json for this project, or ~/.cursor/mcp.json for all projects.

{
  "mcpServers": {
    "pyai": {
      "url": "https://api.pyai.com/mcp"
    }
  }
}

VS Code setup

Add to .vscode/mcp.json, or run “MCP: Open User Configuration” for a private user-level entry.

{
  "servers": {
    "pyai": {
      "type": "http",
      "url": "https://api.pyai.com/mcp"
    }
  }
}

Claude setup

Add the endpoint above in Claude:

  • Customize > Connectors > Add custom connector
  • Team/Enterprise: Organization settings > Connectors > Add > Custom > Web

Claude Desktop setup

Add the endpoint above in Claude Desktop:

  • Remote: Customize > Connectors (same as claude.ai)
  • Local: Settings > Developer > Edit Config, or Settings > Extensions for .mcpb files
  • ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), local servers only

ChatGPT setup

Add the endpoint above in ChatGPT:

  • ChatGPT web: Plugins > Add custom MCP server, then configure authentication and accept the risk warning

Windsurf setup

Add the endpoint above in Windsurf:

  • ~/.config/devin/mcp_config.json (%APPDATA%\devin\mcp_config.json on Windows), serverUrl or url
  • Cascade panel > ... > MCPs > Open MCP config file

Gemini CLI setup

Add the endpoint above in Gemini CLI:

  • gemini mcp add --transport http <name> <url>
  • ~/.gemini/settings.json (user) or .gemini/settings.json (project), mcpServers

MCP SDK setup

Add the endpoint above in MCP SDK:

  • Programmatic: new Client(...).connect(new StreamableHTTPClientTransport(url))

Notes for every client

  • Publisher evidence (reviewed 2026-11-25): https://pyai.com/mcp
  • Provider guidance: A direct anonymous session negotiated MCP 2025-11-25 and listed tools. The default validator received an OAuth challenge.

Client compatibility

ClientStatusWhy
Claude CodeSupportedClaude Code supports Streamable HTTP servers and OAuth sign-in.
CodexPartialCodex CLI ignores resources: The server can still connect, but Codex CLI does not consume the advertised resources capability. Codex CLI ignores prompts: The server can still connect, but Codex CLI does not consume the advertised prompts capability.
CursorSupportedCursor supports Streamable HTTP servers and OAuth sign-in.
VS CodeSupportedVS Code supports Streamable HTTP servers and OAuth sign-in.
ClaudeSupportedClaude supports Streamable HTTP servers and OAuth sign-in.
Claude DesktopSupportedClaude Desktop supports Streamable HTTP servers and OAuth sign-in.
ChatGPTPartialChatGPT ignores resources: The server can still connect, but ChatGPT does not consume the advertised resources capability. ChatGPT ignores prompts: The server can still connect, but ChatGPT does not consume the advertised prompts capability.
WindsurfPartialWindsurf's documentation does not state support for OAuth sign-in.
Gemini CLISupportedGemini CLI supports Streamable HTTP servers and OAuth sign-in.
MCP SDKSupportedMCP SDK supports Streamable HTTP servers and OAuth sign-in.

Computed from this server's validated transport, protocol and authentication against documented client support. Checks the catalog has not observed are not counted.

Similar servers

  • Slack — Remote MCP server for Slack messages, channels, users, canvases, and collaboration context. OAuth 2.1
  • Intercom — Intercom's hosted MCP server provides customer-support context through conversations, contacts, search, and retrieval tools. OAuth 2.1
  • Resend — Sends and schedules email and manages Resend domains, audiences, contacts, broadcasts, and API keys. Requires Resend sign-in through OAuth. OAuth 2.1
  • Vapi — Lists, creates, and updates Vapi voice assistants, phone numbers, and tools and places outbound calls. Sign in with your Vapi account over OAuth; the hosted server no longer accepts API keys. OAuth 2.1
  • Courier — Sends notifications and manages Courier users, lists, templates, journeys, preferences, tenants, and brands through the Courier API. Requires a Courier API key in the api_key header. API key
  • AgentMail — Creates and manages AgentMail inboxes, threads, messages, drafts, and attachments for AI agents. Requires AgentMail sign-in through OAuth; an x-api-key header is also documented. OAuth 2.1

Guides for this server

Watch this server for breaking changes

Share and embed

Maintain PyAI? Embed this badge in your README. It follows the latest catalog validation result and links to this server profile.

mcptest.io: auth required

Latest validation evidence

Validation status
Online when last tested
Validation checked at
Nov 25, 2026 at 10:23 AM
Validation detail
Authentication challenge at https://api.pyai.com/mcp returned HTTP 401; endpoint was reachable but did not complete an MCP probe; authentication oauth

Tool inventory

What the catalog validator observed on at https://api.pyai.com/mcp without credentials. The live server may have changed since; connect in the Playground for the current list.

Tools provided by PyAI 59

  • calls_getNo outputSchema

    Read the current state of an outbound call by returned ID. dispatch_unknown needs inspection, not another call. Recap and Omni recordings are separate resources.

    Input id: string
    • id: stringrequired
  • calls_listNo outputSchema

    List outbound calls and normalized network outcomes before retrying a dispatch.

    Input cursor?: string, direction?: string, limit?: integer, status?: string
    • cursor?: stringoptional

      Last call id from the previous page. Tenant and project scoped.

    • direction?: stringoptional
    • limit?: integeroptional
    • status?: stringoptional
  • configure_amdNo outputSchema

    Set the PyAI AMD (answering-machine detection) operating point + webhook (POST /v1/amd/config). `aggressiveness` is one dial 0-1: near 0 is human-safe (never hang up on a person), near 1 fires 'machine' fast. The realtime detection itself is a Twilio Media Streams WebSocket (wss /v1/amd/stream), a one-line-TwiML drop-in, not an MCP tool.

    Input aggressiveness?: number, webhook_url?: string
    • aggressiveness?: numberoptional

      Operating point 0-1 (default 0.25).

    • webhook_url?: stringoptional

      https URL to POST amd.call.completed events to.

  • configure_traceNo outputSchema

    Configure Trace compliance monitoring for the selected workspace.

    Input body: object
    • body: objectrequired

      Per-agent Trace config (spec §5.1). May be wrapped as { agent_id, config } or sent raw.

  • create_agentNo outputSchema

    Create a reusable voice Agent profile: persona, greeting, voice, language, tools and knowledge. Does not place a call. Use saved tool IDs; configure connection settings privately in the PyAI console. Never supply credentials.

    Input body: object
    • body: objectrequired

      Writable agent fields. On update, present fields are set, `null` clears, absent fields are untouched.

  • create_dubNo outputSchema

    Fetch audio from the user-authorized HTTPS source URL and start a translation and dubbing job. Accesses an external source and consumes usage. Keep job_id and poll get_dub_job; do not submit again after a timeout.

    Input source_lang: string, source_url: string, target_lang: string
    • source_lang: stringrequired

      Source language from get_dub_capabilities.

    • source_url: stringrequired
    • target_lang: stringrequired

      Target language from get_dub_capabilities.

  • create_recapNo outputSchema

    Submit speaker-labelled utterances and get a recap.call (POST /v1/recap/calls/{call_id}). Requires recap:create and Recap enabled. To poll with get_recap, also request recap:lookup.

    Input call_direction?: string, call_id: string, customer_name?: string, pack_id?: string, utterances: array
    • call_direction?: stringoptional
    • call_id: stringrequired

      Stable id you will read back.

    • customer_name?: stringoptional
    • pack_id?: stringoptional
    • utterances: arrayrequired
  • create_trace_rule_packNo outputSchema

    Create a workspace Trace compliance rule pack. This creates persistent configuration.

    Input body: object
    • body: objectrequired

      An authored rule pack in the Trace DSL (rule_pack_schema.json).

  • create_transcription_jobNo outputSchema

    Submit an async speech-to-text job for an audio URL (https). Returns a job_id; poll with get_transcription_job. Supports diarization.

    Input audio_url: string, call_direction?: string, call_id?: string, channel?: boolean, customer_name?: string, diarize?: boolean, model?: string, output_formats?: array, pack_id?: string, transcription_language?: string
    • audio_url: stringrequired

      https URL of the audio to transcribe.

    • call_direction?: stringoptional
    • call_id?: stringoptional

      Stable id for the post-call Recap. Defaults to the job id.

    • channel?: booleanoptional

      Dual-channel (stereo) per-channel speakers.

    • customer_name?: stringoptional
    • diarize?: booleanoptional

      Single-track speaker diarization.

    • model?: stringoptional
    • output_formats?: arrayoptional

      Defaults to [json].

    • pack_id?: stringoptional

      Optional Recap pack (default sales_outbound).

    • transcription_language?: stringoptional

      Spoken-language hint applied to every channel, chunk and speech span. Omit for automatic detection. Independent of the Recap summary language.

  • direct_cast_scriptNo outputSchema

    Turn a narration script into directed Cast lines before rendering. Consumes usage.

    Input body: object
    • body: objectrequired
  • discover_toolsNo outputSchema

    Find the right PyAI tools and a short recipe for speech, STT, LiveKit or Pipecat integration, voice agents, compliance, summaries, dubbing or narration. No credentials or usage.

    Input query?: string, task?: string
    • query?: stringoptional

      Product, framework or task, e.g. “LiveKit”, “Pipecat integration”, “translate audio”, “voice agent”, “TTS”.

    • task?: stringoptional

      Alias for query. If both are supplied, they must match after trimming.

  • draft_website_widgetNo outputSchema

    Save an unpublished website voice widget for a saved agent in the connected project. Specify the exact HTTPS origin and both daily session limits. The hosted widget sends visitor microphone audio to PyAI. Its session quotas cannot enforce a hard total spending cap. To replace a draft, first preview it and pass its expected_revision. A published widget cannot be edited here.

    Input body: object, id: string
    • body: objectrequired
    • id: stringrequired

      Saved agent ID in the authenticated project.

  • enable_recapNo outputSchema

    Enable Recap for the key's org (PUT /v1/recap/config). Sandbox keys already mint with Recap on; call this to set a webhook or pack, or to enable Recap on a signup/live key. Requires recap:configure.

    Input default_pack_id?: string, enabled?: boolean, webhook_url?: string
    • default_pack_id?: stringoptional

      Defaults to sales_outbound.

    • enabled?: booleanoptional

      Defaults to true.

    • webhook_url?: stringoptional

      https URL for recap.complete events.

  • get_agentNo outputSchema

    Read a saved voice Agent profile and its current configuration.

    Input id: string
    • id: stringrequired

      Agent id, e.g. `agent_7f3a…`.

  • get_amd_callNo outputSchema

    Get one PyAI AMD decision by call id (GET /v1/amd/calls/{id}): who/what answered, with the reason.

    Input call_id: string
    • call_id: stringrequired

      The call id the decision was recorded under.

  • get_cast_audioNo outputSchema

    Retrieve completed Cast narration as playable audio or a download.

    Input job_id: string
    • job_id: stringrequired

      The ID returned by the original submission; do not invent one.

  • get_cast_capabilitiesNo outputSchema

    Discover Cast voices, emotions, formats and supported rendering capabilities.

    Input No parameters

  • get_cast_renderNo outputSchema

    Check a durable Cast render job. Preserve the original job ID.

    Input job_id: string
    • job_id: stringrequired

      The ID returned by the original submission; do not invent one.

  • get_dub_audioNo outputSchema

    Retrieve completed dubbed audio as a playable result or download. Call only when get_dub_job reports done.

    Input job_id: string
    • job_id: stringrequired

      The ID returned by the original submission; do not invent one.

  • get_dub_capabilitiesNo outputSchema

    Read currently supported Dub input and output languages before submitting a translation.

    Input No parameters

  • get_dub_jobNo outputSchema

    Retrieve the status and available results of an existing dubbing job by job_id. This read does not start or repeat a job. Poll pending/processing states without resubmitting.

    Input job_id: string
    • job_id: stringrequired

      The ID returned by the original submission; do not invent one.

  • get_recapNo outputSchema

    Read one Recap by call id (GET /v1/recap/calls/{call_id}). When complete, `record` is recap.record.v1 (tldr, summary, action_items, disposition, next_steps, talk_ratio, signals, fields). Requires recap:lookup and Recap enabled.

    Input call_id: string
    • call_id: stringrequired

      The call_id passed to create_recap or the Hear job.

  • get_recap_configNo outputSchema

    Read Recap summarization configuration before changing it.

    Input No parameters

  • get_startedNo outputSchema

    Return a concise, correct quickstart for building with PyAI (auth, SDK install, TTS/STT/realtime snippets, error handling). No key or network needed, read this before writing PyAI code so you use the right endpoints and the official SDK.

    Input No parameters

  • get_trace_configNo outputSchema

    Inspect Trace call-compliance configuration.

    Input agent_id?: string
    • agent_id?: stringoptional

      Agent to read config for; omit for the org default.

  • get_trace_exposureNo outputSchema

    Read aggregate compliance exposure for the workspace.

    Input window_days?: integer
    • window_days?: integeroptional

      Trailing window in days.

  • get_trace_interactionNo outputSchema

    Read one monitored interaction and its compliance evidence.

    Input id: string
    • id: stringrequired

      The call_id.

  • get_transcription_jobNo outputSchema

    Get the status + result of a transcription job by id.

    Input job_id: string
    • job_id: stringrequired

      The job_id from create_transcription_job.

  • list_agentsNo outputSchema

    List saved voice Agent profiles before creating or changing one.

    Input No parameters

  • list_amd_callsNo outputSchema

    List recent PyAI AMD decisions (GET /v1/amd/calls). Each carries answered_by (human/voicemail/ivr/screening/sit_invalid/…), answered_by_twilio (Twilio's enum, for routing parity), confidence, decision_ms, and the word-level reason.

    Input limit?: number, session_label?: string
    • limit?: numberoptional

      Max results (1-100, default 20).

    • session_label?: stringoptional

      Filter by the opaque connect-URL/TwiML tag.

  • list_modelsNo outputSchema

    List the available PyAI models (catalog). No arguments.

    Input No parameters

  • list_published_website_widgetsNo outputSchema

    Look up published managed website voice widgets in the connected project without an agent ID. Read their public embed snippets, exact origins and effective daily session limits. Follow next_cursor while has_more before concluding no match. Ask which widget if multiple match. This read does not create a widget or start a session.

    Input cursor?: string, limit?: integer
    • cursor?: stringoptional

      Pass next_cursor from the previous page.

    • limit?: integeroptional
  • list_recap_callsNo outputSchema

    List existing Recap records for the organization (GET /v1/recap/calls). Requires recap:lookup and Recap enabled.

    Input limit?: number, status?: string
    • limit?: numberoptional

      Max results (1-100, default 20).

    • status?: stringoptional
  • list_trace_findingsNo outputSchema

    Find compliance findings with source evidence. Findings are signals for review, not legal conclusions.

    Input action?: string, check_id?: string, cursor?: string, interaction_id?: string, limit?: integer, severity?: string
    • action?: stringoptional
    • check_id?: stringoptional
    • cursor?: stringoptional
    • interaction_id?: stringoptional
    • limit?: integeroptional
    • severity?: stringoptional
  • list_trace_interactionsNo outputSchema

    Find monitored calls and interactions for compliance review.

    Input agent_id?: string, cursor?: string, limit?: integer, verdict?: string
    • agent_id?: stringoptional
    • cursor?: stringoptional
    • limit?: integeroptional
    • verdict?: stringoptional
  • list_trace_rule_packsNo outputSchema

    Discover available Trace compliance rule packs before enabling monitoring.

    Input No parameters

  • list_trace_violationsNo outputSchema

    List Trace rule violations for compliance review.

    Input cursor?: string, interaction_id?: string, limit?: integer, rule_id?: string, severity?: string
    • cursor?: stringoptional
    • interaction_id?: stringoptional
    • limit?: integeroptional
    • rule_id?: stringoptional
    • severity?: stringoptional
  • list_transcription_jobsNo outputSchema

    Find existing audio processing and transcription jobs before submitting duplicates.

    Input cursor?: string, limit?: integer
    • cursor?: stringoptional

      Opaque token from a previous page's `next_cursor`. Omit for the first page.

    • limit?: integeroptional

      Max items to return (1-100).

  • list_voicesNo outputSchema

    List PyAI stock + cloned voices. Optionally filter by gender or region. Use a returned voice id as the `voice` for synthesize_speech.

    Input gender?: string, region?: string
    • gender?: stringoptional

      Filter by voice gender (e.g. female, male).

    • region?: stringoptional

      Filter by accent/region (e.g. en_us, en_gb).

  • omni_get_callNo outputSchema

    Read an Omni session's transcript, recording availability and summary. For outbound calls use artifacts.omni_call_id from calls_get.

    Input call_id: string
    • call_id: stringrequired

      Stable opaque PyAI-owned call identifier. Use it unchanged across every Omni call sub-resource.

  • omni_get_recordingNo outputSchema

    Get the canonical authenticated recording resource URL. Requires response=url. This URL is not public playable audio; recording must have been enabled.

    Input call_id: string, response: string
    • call_id: stringrequired

      Stable opaque PyAI-owned call identifier. Use it unchanged across every Omni call sub-resource.

    • response: stringrequired

      Set to `url` to return the canonical authenticated PyAI recording resource as JSON.

  • omni_get_summaryNo outputSchema

    Read the structured summary for an Omni call when generated; a missing summary is not an empty result.

    Input call_id: string
    • call_id: stringrequired

      Stable opaque PyAI-owned call identifier. Use it unchanged across every Omni call sub-resource.

  • omni_get_transcriptNo outputSchema

    Read the complete Omni call transcript through the authenticated API.

    Input call_id: string
    • call_id: stringrequired

      Stable opaque PyAI-owned call identifier. Use it unchanged across every Omni call sub-resource.

  • omni_list_callsNo outputSchema

    List Omni sessions, including inbound calls. Filter by session_label and preserve each returned call_id.

    Input cursor?: string, limit?: integer, session_label?: string
    • cursor?: stringoptional

      Pass the previous page's `next_cursor`.

    • limit?: integeroptional
    • session_label?: stringoptional

      Only calls connected with this opaque session tag.

  • openapi_getNo outputSchema

    Fetch live API operation discovery with a SHA-256 digest. Supply path and method for one operation and its referenced schemas, or include_document=true for the entire contract. Pin sha256 to detect contract drift. No API key required.

    Input include_document?: boolean, method?: string, path?: string, sha256?: string
    • include_document?: booleanoptional
    • method?: stringoptional
    • path?: stringoptional
    • sha256?: stringoptional
  • preview_cast_lineNo outputSchema

    Generate one directed Cast line. Consumes usage. Check get_cast_capabilities for supported voice, emotion and intensity.

    Input emotion: string, intensity: any, text: string, voice: string
    • emotion: stringrequired

      Supported emotion.

    • intensity: anyrequired

      Use a tier from Cast capabilities: subtle, balanced or bold; or a number from 0 to 1. Legacy low/med/high aliases are normalized by MCP.

    • text: stringrequired

      Narration text.

    • voice: stringrequired

      A supported Cast voice.

  • preview_website_widgetNo outputSchema

    Read the saved managed website voice widget for this agent. Show its project, exact origins, session limits, status, embed snippet, readiness and revision before asking to publish. Does not publish or start a session.

    Input id: string
    • id: stringrequired

      Saved agent ID in the authenticated project.

  • publish_website_widgetNo outputSchema

    Publish the managed website voice widget only after the user explicitly approves the displayed project, origins, limits and embed for that exact preview revision. Set body.approved=true and pass body.revision. Return the snippet verbatim. The hosted widget sends visitor microphone audio to PyAI. Sessions may consume project credit and session quotas cannot enforce a hard total spending cap. After an uncertain result, preview the widget before any further action.

    Input body: object, id: string
    • body: objectrequired
    • id: stringrequired

      Saved agent ID in the authenticated project.

  • render_castNo outputSchema

    Submit script text or directed lines using one top-level voice from get_cast_capabilities for the entire render. Per-line voices and a console project are not required or supported inputs. Returns a job; preserve its ID, poll get_cast_render and retrieve get_cast_audio when done. Consumes usage; do not resubmit on timeout.

    Input body: object
    • body: objectrequired
  • set_agent_knowledgeNo outputSchema

    Replace the knowledge bases bound to an Agent. Read its existing bindings first.

    Input body: array, id: string
    • body: arrayrequired
    • id: stringrequired
  • set_agent_toolsNo outputSchema

    Replace the tools bound to an Agent. Read the current Agent first; this replaces its bindings. Use saved tool IDs; configure connection settings privately in the PyAI console. Never supply credentials.

    Input body: array, id: string
    • body: arrayrequired

      Replace bindings using saved tool IDs. Existing settings are preserved for retained bindings. Credentials and connection settings are not accepted through MCP.

    • id: stringrequired
  • synthesize_speechoutputSchema declared

    Generate speech from input. Consumes usage in the connected project; live usage can be billed. Before generation, use whoami to verify project, environment, scopes, credit and limits. Returns inline MCP audio or an expiring resource_link, never a local file path. Host playback support varies. For integration code only, use get_started.

    Input input: string, model?: string, response_format?: string, voice?: string
    • input: stringrequired

      Text to synthesize. Maximum 2000 characters; longer text answers `400 input_too_long` naming the limit and the length you sent. Split longer scripts into several requests.

    • model?: stringoptional

      Defaults to pyai-speak.

    • response_format?: stringoptional

      Defaults to mp3.

    • voice?: stringoptional

      Voice id from list_voices. Omit for the account default.

  • telephony_bind_numberNo outputSchema

    Bind an owned number to an Agent using body.agent_id; null unassigns. Read existing bindings first. Changes inbound routing.

    Input body: object, id: string
    • body: objectrequired
    • id: stringrequired
  • telephony_create_callNo outputSchema

    Place a real outbound call only to a user-authorized destination. Requires confirm=true and a stable idempotency_key. This is not a sandbox simulation. Preserve the returned ID; never redial after an uncertain timeout.

    Input body: object, confirm?: boolean, idempotency_key: string
    • body: objectrequired
    • confirm?: booleanoptional

      Set true only after the user authorizes this exact purchase or destination.

    • idempotency_key: stringrequired

      Required safe-retry key. Identical retries return the original call; a different body returns 409.

  • telephony_list_numbersNo outputSchema

    List owned numbers and current Agent bindings before changing inbound routing.

    Input include_released?: boolean
    • include_released?: booleanoptional
  • telephony_search_numbersNo outputSchema

    Search available managed numbers and inspect provisioning requirements before purchase.

    Input area_code?: string, contains?: string, country?: string, limit?: integer
    • area_code?: stringoptional

      3-digit US or Canada area code (NPA).

    • contains?: stringoptional

      Digit pattern the number should contain.

    • country?: stringoptional

      ISO-2 country to search in.

    • limit?: integeroptional
  • transcribe_audioNo outputSchema

    Transcribe a small audio attachment supplied as base64 (up to 8 MiB decoded). Returns the synchronous transcript without diarization controls. For word timestamps and speaker labels, use create_transcription_job with diarize=true for mono or channel=true for stereo, then get_transcription_job. Consumes usage.

    Input audio_base64: string, filename: string, language?: string
    • audio_base64: stringrequired

      Base64-encoded audio bytes, without a data: prefix.

    • filename: stringrequired
    • language?: stringoptional
  • update_agentNo outputSchema

    Update a voice Agent profile. Read it first and change only user-requested fields. Use saved tool IDs; configure connection settings privately in the PyAI console. Never supply credentials.

    Input body: object, id: string
    • body: objectrequired

      Writable agent fields. On update, present fields are set, `null` clears, absent fields are untouched.

    • id: stringrequired
  • whoamiNo outputSchema

    Introspect the active key (GET /v1/me): org, environment (test/live), granted scopes, and rate-limit/credit posture. Organization and project names and IDs, billing guidance, and any managed payer/budget appear in text and structuredContent. Names are display labels; verify IDs and environment too. Use verbose=true for key identity details. Use it before usage and to diagnose a 401/403/402.

    Input verbose?: boolean
    • verbose?: booleanoptional

      Include authorized identity details in text. Credentials are always omitted.

Resources 2

  • PyAI integration guidetext/markdown

    Authentication, safe workflows, audio results and API conventions.

  • PyAI use-case recipesapplication/json

    Speak, Hear, voice agents, Trace, Recap, dubbing and Cast workflows.

Prompts 18

  • agents

    Create an appointment-booking voice agent that greets callers and hands off when it cannot answer.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • agents_list

    List my voice agents.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • agents_web

    Add an AI receptionist to my website.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • amd

    Find calls answered by voicemail, IVR or screening.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • calling

    Set up an inbound receptionist, or place an authorized test call and retrieve its summary.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • cast

    Turn this script into an expressive, multi-line narration with pauses.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • dub

    Dub this English recording into Hindi.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • hear

    Transcribe this interview and distinguish the speakers.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • hear_stream

    Transcribe microphone audio in real time.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • interpret

    Translate a live telephone conversation between two people.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • livekit

    LiveKit integration with PyAI speech.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • pipecat

    Pipecat integration with PyAI speech.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • recap

    Summarize this sales call, list objections, and extract next steps.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • speak

    Say “Your appointment is confirmed” in a warm English voice.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • speak_stream

    Stream TTS into an existing phone application.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • trace

    Find calls with missing recording disclosures and show the supporting evidence.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • translate_text

    Translate this call transcript into Spanish text.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.

  • voices

    List available English voices without generating audio.

    Arguments task: any
    • task: anyrequired

      The user-authorized task, without credentials.