Installation
The Python SDK is currently in private beta. Contact us for early access.
Quick Start
The SDK is fully async and uses standard Python async/await patterns:- Async (Recommended)
- Sync Wrapper
What can you build?
The SDK provides two main APIs for different use cases:Process API
Generate and transform videos and images on-demand
Realtime API
Transform video streams in realtime with WebRTC
Client Setup
Both APIs share the same client initialization:api_key
(required) - Your Decart API key from the platformbase_url
(optional) - Custom API endpoint (defaults to Decart’s production API)
Available Models
Import models from the SDK to use with either API:Async/Await
All SDK methods are asynchronous and must be called withawait
. If you’re new to async Python:
- Use
async def
for functions that call SDK methods - Call async functions with
await
- Run async code with
asyncio.run(main())
- For scripts or notebooks, you can use the sync wrapper pattern shown above