Python SDK
Python bindings for Cactus Engine via FFI. Auto-installed when you runsource ./setup.
Installation
Quick Example
Completion with Options
Vision (VLM)
Pass images in the messages content for vision-language models:API Reference
All functions are module-level and mirror the C FFI directly. Handles are plainint values (C pointers).
Init / Lifecycle
Completion
Returns a JSON string withresponse, function_calls, timing stats, and cloud_handoff.
Transcription
Embeddings
Tokenization
VAD
RAG
Vector Index
Telemetry
RuntimeError on failure.
Requirements
- Python 3.7+
- macOS or Linux
- CMake and C++20 compiler
See Also
C API Reference
Full C API reference that the Python bindings wrap
Vector Index API
Vector database API for RAG applications
Swift SDK
Swift bindings for iOS/macOS
Kotlin SDK
Kotlin bindings for Android