CAST AI SDK Patterns Overview CAST AI uses a REST API with header authentication. There is no official SDK -- build typed wrappers around or . These patterns cover singleton clients, typed responses, retry with backoff, and multi-cluster management. Prerequisites - Completed setup - TypeScript 5+ or Python 3.10+ - Familiarity with async/await patterns Instructions Step 1: TypeScript API Client Step 2: Singleton with Retry Step 3: Python Client Error Handling | Status | Meaning | Action | |--------|---------|--------| | 401 | Invalid API key | Rotate key at console.cast.ai | | 403 | Insufficie…