Ship a Full-Stack App with One Prompt

Copy this prompt into your AI coding agent, or open it in one below.

Give this to your AI Create a to-do list app using Puter.js
Tutorials

Free, Unlimited Aion Labs API

On this page

This tutorial will show you how to use Puter.js to access Aion Labs models, including Aion 3.0, Aion 3.0 Mini, Aion 2.0 and Aion RP 1.0 completely free, without any API keys.

Puter.js uses the User-Pays model, where users of your application cover their own AI costs. This means you as a developer don't pay anything for your users' usage, making your app practically free to run. You can scale to unlimited users and pay nothing for the AI or server usage.

To use Puter.js, import our npm module in your project:

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

Or alternatively, add our script via CDN if you are working directly with HTML, simply add it to the <head> or <body> section of your code:

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

Nothing else is required to start using Puter.js for free access to Aion Labs models and capabilities.

Roleplay with Aion 3.0

Aion 3.0 is a multi-model roleplaying and storytelling system built on the GLM family of models, where multiple specialized models contribute to each response for stronger narrative structure, tension, and conflict.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat(
            "You are the captain of a smuggling ship caught in a blockade. Your crew is divided on whether to surrender or run. Narrate the confrontation on the bridge as tensions boil over.",
            { model: "aion-labs/aion-3.0" }
        )
        .then(response => {
            puter.print(response);
        });
    </script>
</body>
</html>

Roleplay with Aion 3.0 Mini

Aion 3.0 Mini uses the same collaborative multi-model generation as Aion 3.0, but is built on the DeepSeek family of models and costs roughly a quarter of Aion 3.0's price.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat(
            "You are a court jester who secretly runs the kingdom's spy network. A noble has just asked you, in front of the whole court, a question that could expose you. Respond in character.",
            { model: "aion-labs/aion-3.0-mini" }
        )
        .then(response => {
            puter.print(response);
        });
    </script>
</body>
</html>

Roleplay with Aion 2.0

Aion 2.0 is optimized for immersive roleplaying and storytelling, excelling at tension, conflict, and nuanced narratives.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat(
            "You are a grizzled detective in a noir city. A mysterious stranger walks into your office late at night with a case that could change everything. Set the scene and begin the story.",
            { model: "aion-labs/aion-2.0" }
        )
        .then(response => {
            puter.print(response);
        });
    </script>
</body>
</html>

Roleplay with Aion RP 1.0

Aion RP 1.0 is fine-tuned for roleplaying and creative writing with 131K context, excelling at character consistency and immersive storytelling.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat(
            "You are an ancient dragon who has lived for thousands of years and has seen civilizations rise and fall. A young adventurer has stumbled into your lair. Respond in character.",
            { model: "aion-labs/aion-rp-llama-3.1-8b" }
        )
        .then(response => {
            puter.print(response);
        });
    </script>
</body>
</html>

List of Models

The following Aion Labs models are supported by Puter.js:

aion-labs/aion-3.0
aion-labs/aion-3.0-mini
aion-labs/aion-2.0
aion-labs/aion-rp-llama-3.1-8b

Conclusion

Using Puter.js, you can gain access to Aion Labs models without having to set up the AI server yourself. And thanks to the User-Pays model, your users cover their own AI usage, not you as the developer. This means you can build powerful applications without worrying about AI usage costs.

You can find all AI features supported by Puter.js in the documentation.

Ship a Full-Stack App with One Prompt

Give this to your AI Build an AI chat app using Puter.js