Package Exports
- snowcell
Readme
Snowcell Node.js / TypeScript SDK
Official Node/TS client for Snowcell’s API. The official Node SDK for Snowcell Cloud.
Snowcell Node.js / TypeScript SDK
Installation
npm i snowcell
Quickstart
import { Snowcell } from "snowcell";
const client = new Snowcell({
apiToken: process.env.SNOWCELL_API_TOKEN ?? "",
timeoutMs: 300_000, // 5 minutes
});
const res = await client.chat.create({
model: "qwen2.5:0.5b-instruct",
messages: [{ role: "user", content: "Give me a one-sentence bedtime story about a cat." }],
max_tokens: 50,
});
console.log(res.choices[0].message.content);