SDKs
CHRT provides official SDKs for TypeScript and Python to help you integrate with our API quickly and safely. Our SDKs are built with Fern, ensuring type-safety and up-to-date API coverage.
Available SDKs
TypeScript/JavaScript
Install the SDK using npm:
Basic usage example:
Python
Install the SDK using pip:
Synchronous Client
Async Client
The Python SDK also provides an async client for non-blocking API calls:
Advanced Features
Request Timeouts
Both SDKs support configurable request timeouts:
Automatic Retries
Our SDKs include automatic retries with exponential backoff for the following status codes:
- 408 (Request Timeout)
- 429 (Too Many Requests)
- 5XX (Server Errors)
Configure maximum retries:
Custom Configuration
TypeScript Runtime Support
The TypeScript SDK works in:
- Node.js 18+
- Vercel
- Cloudflare Workers
- Deno v1.25+
- Bun 1.0+
- React Native
Python Custom Client
Configure the Python SDK with custom HTTP client options:
For more information about our APIs and integrations, check out our API Reference or contact our Support team.