Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Getting Started with the SDK

Installation

npm install cortex-ts
pip install trycortex

Create a CortexAPI

Create environment variables for your cortex API key.

Use the API key to create a CortexAPI.

import { CortexAPI } from 'cortex-ts';
const {CORTEX_API_KEY} = process.env;

const cortex = new CortexAPI(CORTEX_API_KEY);
import cortex

CortexAPI = cortex.CortexAPI(API_KEY)

Last updated