Documentation

Quickstart

Get up and running with Tenzro Cloud in under 5 minutes.

Prerequisites

  • Node.js 18+, Python 3.10+, or Rust 1.70+
  • A Tenzro Cloud account (sign up at cloud.tenzro.com)
1

Install the SDK

Choose your preferred language and install the Tenzro Cloud SDK.

typescript
npm install @tenzro/cloud
python
pip install tenzro
rust
cargo add tenzro
2

Get your API key

Sign up at cloud.tenzro.com and create an API key in your dashboard.

3

Initialize the client

Create a client instance with your API key.

typescript
import { TenzroCloud } from '@tenzro/cloud'

const client = new TenzroCloud({
  apiKey: process.env.TENZRO_API_KEY
})
python
from tenzro import TenzroCloud

client = TenzroCloud(
    api_key=os.environ["TENZRO_API_KEY"]
)
rust
use tenzro::TenzroCloud;

let client = TenzroCloud::new()
    .api_key(std::env::var("TENZRO_API_KEY")?)
    .build()?;
4

Make your first request

Run AI inference, store vectors, or access any of the 17 cloud services.

typescript
// AI chat completion
const response = await client.ai.chat({
  model: 'llama-3.3-70b',
  messages: [
    { role: 'user', content: 'Explain quantum computing' }
  ]
})

console.log(response.choices[0].message.content)
python
# AI chat completion
response = client.ai.chat(
    model="llama-3.3-70b",
    messages=[
        {"role": "user", "content": "Explain quantum computing"}
    ]
)

print(response.choices[0].message.content)
rust
// AI chat completion
let response = client.ai().chat()
    .model("llama-3.3-70b")
    .messages(vec![
        Message::user("Explain quantum computing")
    ])
    .send()
    .await?;

println!("{}", response.choices[0].message.content);

Available Services

Access all 17 Tenzro Cloud services through the same client

AI
Chat, embeddings, vision, code
Agents
Autonomous AI agents
Workflows
Multi-step pipelines
Vector
Similarity search
Graph
Knowledge graphs
Key-Value
Fast KV storage
File
Object storage
Hub
Model registry

Run AI at the Edge

For edge inference, install the Light Node SDK instead

Browser / Node.js
npm install @tenzro/light-node
Python
pip install tenzro-light
TypeScript - Edge AI
import { LightNode } from '@tenzro/light-node'

const node = new LightNode({
  network: 'testnet',
  rpcEndpoint: 'https://rpc.tenzro.network'
})

// Run inference locally with WebGPU
const response = await node.ai.infer({
  model: 'phi-3-mini',
  prompt: 'Hello from the edge!'
})

// Access blockchain data via SPV proofs
const balance = await node.getBalance(address)

Next Steps