Skip to content

Build with AI

Build PyAI voice with Cursor, Codex, or Claude Code

Connect your coding agent to the live API contract and give it a complete SDK starter. Build with Hear, Speak, or Omni using public commands and readable source.

1. Pick what you’re building
2. Tweak the prompt
3. Open your tool

Auto-open where the tool supports it; otherwise copy the command or prompt. Editor tools (Claude Code, Codex) run in your terminal. Or try it live in the Playground →

Cursor

Open a prompt in Cursor and let the agent build.

Open in Cursor
Lovable

Start a new Lovable project from this prompt.

Open in Lovable
Claude Code

Run in your terminal - paste the command.

claude 'Help me build with the PyAI voice API (https://api.pyai.com). Before writing code, fetch the machine-readable contract so you never invent endpoints: - OpenAPI spec: https://api.pyai.com/openapi.json - Curated agent index: https://api.pyai.com/llms.txt - Reusable skill: https://pyai.com/skill.md - Complete runnable SDK starters: https://pyai.com/sdks.md Use the official SDK where possible: `npm install @pyai/sdk` (TS) or `pip install pyai-sdk` (Python). Read PYAI_API_KEY from the environment. Keep keys out of prompts and browser bundles; never hardcode them. PyAI is OpenAI-compatible for /v1/audio/transcriptions and /v1/audio/speech, so you can also point an OpenAI client at base_url https://api.pyai.com/v1. Handle errors by branching on the stable error.code (e.g. 402 credit_exhausted, 429 rate_limit_exceeded). Task: Add streaming text-to-speech to my app: call POST /v1/audio/speech with model "pyai-speak" and play the audio progressively from the first byte.'
Try it live →
Codex

Run in your terminal - paste the command.

codex 'Help me build with the PyAI voice API (https://api.pyai.com). Before writing code, fetch the machine-readable contract so you never invent endpoints: - OpenAPI spec: https://api.pyai.com/openapi.json - Curated agent index: https://api.pyai.com/llms.txt - Reusable skill: https://pyai.com/skill.md - Complete runnable SDK starters: https://pyai.com/sdks.md Use the official SDK where possible: `npm install @pyai/sdk` (TS) or `pip install pyai-sdk` (Python). Read PYAI_API_KEY from the environment. Keep keys out of prompts and browser bundles; never hardcode them. PyAI is OpenAI-compatible for /v1/audio/transcriptions and /v1/audio/speech, so you can also point an OpenAI client at base_url https://api.pyai.com/v1. Handle errors by branching on the stable error.code (e.g. 402 credit_exhausted, 429 rate_limit_exceeded). Task: Add streaming text-to-speech to my app: call POST /v1/audio/speech with model "pyai-speak" and play the audio progressively from the first byte.'
Try it live →

Connect your coding agent

These commands work from your project. No internal repository checkout required.

Connect PyAI through browser OAuth, select your project, then ask your agent to call get_started and whoami. View setup for ChatGPT, Claude and other apps.

Codex · terminal
codex mcp add pyai --url https://api.pyai.com/mcp
codex mcp login pyai
Claude Code · terminal
claude mcp add --transport http pyai https://api.pyai.com/mcp
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "pyai": {
      "url": "https://api.pyai.com/mcp"
    }
  }
}

Merge the pyai entry into your existing mcpServers configuration. Enable it in Cursor’s MCP settings.

Paste into your coding agent
Read https://pyai.com/skill.md and https://pyai.com/sdks.md.
Use the matching starter to add PyAI voice to this project.
Keep credentials in environment variables. Run a short synthetic
audio test and report the result and any missing credentials.
Do not place a phone call or send a message unless I ask.

Want a reusable local skill? Copy the Codex and Claude Code skill install commands. Any tool that reads Markdown can use skill.md.

Questions about building with AI

Do I need to paste my API key into a prompt?

No. Connect the hosted MCP server through browser OAuth. For local stdio, reuse your PyAI CLI login. Application SDKs use credentials from your secret environment.

Where can I get a complete codebase?

The SDK hub has downloadable Python, TypeScript, Twilio, LiveKit and Pipecat starters, each with dependencies, source, configuration and run instructions.

Start with working audio.

Get a free key, keep it in your environment, and run a starter in your own project.