Skip to main content

Installation

Install the SDK using your favorite package manager.
npm install secton
Pin the version in your package.json to avoid unexpected breaking changes.

Authentication

Authentication is handled via API keys. For detailed instructions, see our Authentication guide.

Quick Example

import { createClient } from 'secton';

const client = createClient({
  apiKey: process.env.SECTON_API_KEY
});

// simple chat
const response = await client.ask('Hello, how are you?');
console.log(response);

Explore Further

I