@basetenlabs/client
v0.1.0
Published
Baseten JS/TS SDK
Keywords
Readme
@basetenlabs/client
JS/TS SDK for Baseten.
⚠️ Under active development. Nothing should be considered stable at this time.
Install
npm install @basetenlabs/clientUsage
import { ManagementClient } from "@basetenlabs/client";
const client = new ManagementClient({ apiKey: "my-api-key" });
for (const model of (await client.api.getModels()).models) {
console.log(model.name);
}Generated API types and error classes are available under subpath exports:
import { ResponseError } from "@basetenlabs/client/managementapi";The @basetenlabs/client/inferenceapi and @basetenlabs/client/modelconfig subpaths are exported the same way.
