Getting Started


To begin using Puter.js, simply add it to your web application. There's no need for configuration, keys, or passwords. Just include the Puter.js script, and you're ready to start:

Code copied
<script src="https://js.puter.com/v2/"></script>

Basic Usage

Once you've added the Puter.js script to your web application, a global puter object will be available for you to use. This object contains all of the functionality provided by Puter.js. For example, to use GPT-3.5 Turbo, you can call the puter.ai.chat function:

Code copied
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat(`Why did the chicken cross the road?`).then((response) => {
            puter.print(response);
        });
    </script>
</body>
</html>

This is all you need to use GPT-3.5 Turbo in your app. No backend code, no configuration, and no API keys. Just include the Puter.js script, and you're ready to start.