Installation
Install @fleeex/sdk and its OpenAI peer dependency, and check your runtime.
Install
npm install @fleeex/sdk openaiopenai is a peer dependency, so you bring your own version and the SDK never pins you
to a different one. Any openai v4 or later works.
pnpm add @fleeex/sdk openaiyarn add @fleeex/sdk openaiRequirements
- Node.js 18+, because the SDK uses the global
fetch. On older runtimes, pass afetchimplementation via thefetchoption. - Server-side only. The API key is a secret, and the SDK is meant for your backend rather than a browser or mobile bundle. See Authentication.
Module format
@fleeex/sdk ships both ESM and CommonJS with TypeScript types, so both import styles
work:
import { FleeexClient } from "@fleeex/sdk";const { FleeexClient } = require("@fleeex/sdk");Next
Head to the Quickstart to make your first call.