Getting Started

Quick Start Guide

Get started with CatLove Cloud in minutes

Installation

Install the CatLove SDK using your preferred package manager:

npm install @catlove/sdk
# or
yarn add @catlove/sdk
# or
pnpm add @catlove/sdk

Configuration

Create a new CatLove client with your API key:

import { CatLoveAI } from '@catlove/sdk';

const client = new CatLoveAI({
  apiKey: process.env.CATLOVE_API_KEY,
});

Your First API Call

Make your first chat completion request:

const response = await client.chat.completions.create({
  model: 'gpt-4o',
  messages: [
    { role: 'user', content: 'Hello!' }
  ],
});

console.log(response.choices[0].message.content);