Vapi
The Vapi Python library provides convenient access to the Vapi API from Python. It simplifies making calls to Vapi's voice AI platform, handling authentication, retries, and pagination. It is for Python developers building voice-based applications.
✨ Key features
- Synchronous and asynchronous clients
- Automatic retries with exponential backoff
- Configurable timeouts and custom HTTP clients
- Pagination support for list endpoints
- Exception handling with ApiError
- Type-safe request options
🎯 Use cases
- Create and manage voice calls programmatically
- Retrieve logs of calls and interactions
- Integrate Vapi voice AI into Python applications
- Build asynchronous voice automation workflows
📦 Installation
🧰 Requirements: Python environment with pip; requires a Vapi API token.
pip install vapi_server_sdk
🚀 Usage
from vapi import Vapi
client = Vapi(
token="YOUR_TOKEN",
)
client.calls.create()
⚠️ Good to know
The library is generated programmatically; direct contributions are not merged, but issues and README contributions are welcome.
❓ FAQ
How do I install the Vapi Python library?
Install it using pip: pip install vapi_server_sdk.
How do I handle API errors?
Catch ApiError from vapi.core.api_error and inspect its status_code and body attributes.
Can I use the library asynchronously?
Yes, the SDK exports an AsyncVapi client for non-blocking calls, as shown in the README.
Does the SDK support retries?
Yes, it automatically retries requests with exponential backoff for status codes 408, 429, and 5XX, configurable via max_retries.
📊 Repository
🤖 Overview, features, install steps and FAQ were generated from the project's README on Sep 4, 2026. Always check the original source before running commands.