Python SDK
The official Python SDK for deAPI. Generate images, videos, audio, transcriptions, embeddings, and more — through a type-safe Python interface with sync and async support.GitHub Repository
deapi-ai/deapi-python-sdk
Installation
Quick Start
Features
- Full API coverage — images, video, audio (TTS, voice cloning, music), transcription, embeddings, OCR, prompt enhancement
- Sync + Async —
DeapiClientandAsyncDeapiClient - Job polling — automatic exponential backoff with
.wait() - Auto-retry — built-in retry on rate limits (429) and server errors (5xx)
- Type-safe — full type hints, Pydantic v2 models,
py.typedmarker - Webhook verification — HMAC-SHA256 signature validation
- Price calculation — every method has a
_pricecounterpart to check cost before submitting
Coming Soon
We’re working on official SDKs for:- Node.js / TypeScript