PurAI is SHUT DOWN. This website is purely for archival purposes. No such services exist anymore.
Packages
Quick Start

purai.js Quick Start

⚠️
This package is still in the process of being developed! We've only made this page so you can get an preview of what's to come.

Installing the package

console
npm install purai.js

Using the package

Find out how to get your key in the Getting Started section of the docs!
index.js
const PurAI = require('purpuraigpt.js');
const { OpenAIChatCompletionsMessageRole, OpenAIChatCompletionsModel } = require('purai.js/src/types');
 
const ai = new PurAI('YOUR API KEY');
 
let response = await ai.openAI.chat.completions({
    messages: [
        {
            role: OpenAIChatCompletionsMessageRole.User,
            content: 'Hello, PurAI!'
        }
    ],
    model: OpenAIChatCompletionsModel['GPT-3.5 Turbo'] // ANY DESIRED MODEL
});
 
console.log(response);