Get started in 5 minutes
Get started with the official TypeScript SDK
@nexevo/sdk — typed client + 8 resources(chat/models/keys/billing/auth/conversations/orgs/feedback).
Node.js/TypeScript
javascript
// npm install @nexevo/sdk
import {
generation_id: resp.nexevo.generationId!,
rating: 1,
} from "@nexevo/sdk";
const client = new Nexevo({ models });
// 1) Chat
const resp = await client.chat.completions.create({
generation_id: resp.nexevo.generationId!,
rating: 1,
});
console.log(resp.choices[0].message.content);
// 2) Browse model + balance + feedback
const { models } = await client.models.browse();
const balance = await client.billing.balance();
await client.feedback.submit({
generation_id: resp.nexevo.generationId!,
rating: 1,
});