Installation
Install the Tenzro Cloud SDK in your project.
TypeScript SDK
The official TypeScript SDK for Node.js, Deno, and Bun:
npm install @tenzro/cloud# orpnpm add @tenzro/cloud# oryarn add @tenzro/cloud
Python SDK
The official Python SDK with sync and async support:
pip install tenzro-cloud# orpoetry add tenzro-cloud# oruv add tenzro-cloud
Requirements
| Package | Requirements |
|---|---|
| @tenzro/cloud | Node.js >= 18.0, TypeScript >= 5.0 |
| tenzro-cloud | Python >= 3.10 |
Environment Setup
Create a .env file in your project root:
# RequiredTENZRO_API_KEY=sk_your_api_key_here# Optional - set default projectTENZRO_PROJECT_ID=your_project_id
TypeScript Configuration
Recommended tsconfig.json settings:
{"compilerOptions": {"target": "ES2022","module": "ESNext","moduleResolution": "bundler","strict": true,"esModuleInterop": true,"skipLibCheck": true}}
Verify Installation
TypeScript:
import { Tenzro } from '@tenzro/cloud';const client = new Tenzro({apiKey: process.env.TENZRO_API_KEY!,projectId: process.env.TENZRO_PROJECT_ID,});// Test with a simple AI chatconst response = await client.ai.chat('Hello, Tenzro!');console.log(response);
Python:
from tenzro_cloud import Tenzroimport osclient = Tenzro(api_key=os.environ["TENZRO_API_KEY"],project_id=os.environ.get("TENZRO_PROJECT_ID"),)# Test with a simple AI chatresponse = client.ai.chat("Hello, Tenzro!")print(response)