SDKs

Client libraries for popular programming languages

Node.js SDK

Install the Node.js SDK:
npm install dendrer-sdk

Basic Usage

import { Dendrer } from "dendrer-sdk";

const client = new Dendrer("YOUR_API_KEY");
const response = await client.inference.run({
  model: "mistral-7b-instruct",
  input: "Write a haiku about neural networks",
});
console.log(response.choices[0].message.content);

Python SDK

Install the Python SDK:
pip install dendrer

Python Example

import dendrer

client = dendrer.Client("YOUR_API_KEY")
response = client.inference.run(
  model="mistral-7b-instruct",
  input="Write a haiku about neural networks"
)
print(response.choices[0].message.content)
Dendrer - AI Model-as-a-Service Platform