vapi-server-sdk
What it is and what it does
Vapi-server-sdk is a generated Python client library for the Vapi voice API. It wraps HTTP calls via httpx and pydantic for type safety, offering both synchronous and asynchronous interfaces. The SDK handles common API patterns: automatic retries on transient failures (408, 429, 5xx), configurable timeouts, pagination through SyncPager and AsyncPager generators, and structured exception handling via ApiError subclasses.
You instantiate a client with an API token, then call methods like `client.calls.create()` or `client.logs.get()` to interact with the Vapi service. The library is actively maintained and supports modern Python versions (3.10–3.15). It is designed to be generated programmatically, so direct contributions are discouraged in favor of upstream changes.
Use it for:
- Build a voice call application that creates and retrieves call records via the Vapi API with automatic retry handling.
- Integrate Vapi voice services into an async Python application using AsyncVapi for non-blocking API calls.
- Fetch paginated logs or call histories from Vapi, iterating through results page-by-page or as a continuous stream.
- Customize HTTP behavior (proxies, transports, timeouts) by passing a configured httpx.Client to the Vapi constructor.
- Handle API errors gracefully by catching ApiError exceptions and inspecting status codes and response bodies.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python SDK for the Vapi API, providing synchronous and asynchronous clients to create and manage voice calls and logs with built-in retry logic and pagination.
Yes, if you are building a Python application that needs to call the Vapi voice API. The SDK has low install friction, active maintenance, and no known vulnerabilities. However, verify the license terms first—license treatment is currently unclear in the package metadata. The library is suitable for both sync and async workflows and handles retries and pagination automatically.
Install
vapi-server-sdk on PyPI
pip
pip install vapi-server-sdkuv
uv add vapi-server-sdkpoetry
poetry add vapi-server-sdkInstalling vapi-server-sdk
Before you install
Low friction install with a pure-Python wheel and four lightweight dependencies (httpx, pydantic, pydantic-core, typing_extensions). Repository is actively maintained with recent commits and no archived status.
License in practice
License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license terms before adopting this in a commercial or restricted context.
Quickstart
pip install vapi-server-sdk
from vapi import Vapi
client = Vapi(token="YOUR_TOKEN")
client.calls.create()
Requires Python 3.10 or later (supports up to 3.15); API token must be provided at client instantiation.
Verify before relying
- Exact scope of Vapi API endpoints and call/log operations supported by this version.
- Whether the default 60-second timeout and retry limit (default: 2) are suitable for your use case.
- Rate-limiting behavior and whether 429 retries align with Vapi's actual rate-limit headers.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — httpx, pydantic, pydantic-core, typing_extensions |
| Maintenance | actively maintained — 86 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 157,134/month — #10,763 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: vapi_server_sdk-1.11.1-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
merakiA Python client library for the Cisco Meraki…
permissive · top 5,000 on PyPI
pipedreamProvides a Python client library for accessing…
unclear · top 15,000 on PyPI
python-intercomA Python client library for the Intercom API,…
unclear · top 15,000 on PyPI
vers-sdkProvides async Python bindings to the Vers REST…
permissive · top 5,000 on PyPI
reka-apiProvides a Python client library for accessing…
permissive · top 15,000 on PyPI
groundxA Python client library for the GroundX API…
permissive · top 15,000 on PyPI
sarvamaiPython SDK for the Sarvam API, providing access…
unclear · top 15,000 on PyPI
metronome-sdkProvides a Python client library for the…
permissive · top 15,000 on PyPI
vmware-vapi-runtimeVMware vAPI Runtime provides HTTP client,…
permissive · top 15,000 on PyPI
retell-sdkProvides a Python client library for the Retell…
permissive · top 15,000 on PyPI