Tutorials

Free, Unlimited Nvidia Nemotron API

This tutorial will show you how to use Puter.js to access Nvidia Nemotron models, including Nemotron Nano 9B, Nano 12B Vision, and Nemotron Super, completely free, without any API keys or usage restrictions.

With Puter's "User-Pays" model, developers can incorporate AI capabilities into their applications with each user covering their own usage costs. This enables developers to access advanced AI capabilities for free, without any infrastructure setup.

Getting Started

You can use Puter.js without any API keys or sign-ups. To start using Puter.js, include the following script tag in your HTML file, either in the <head> or <body> section:

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

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

Example 1Regular chat with Nemotron Nano 9B V2

To generate text using Nemotron Nano 9B V2, use the puter.ai.chat() function:

puter.ai.chat("Explain the concept of neural networks in simple terms", { model: "nvidia/nemotron-nano-9b-v2" })
.then(response => {
    puter.print(response);
});

Full code example:

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain the concept of neural networks in simple terms", { model: "nvidia/nemotron-nano-9b-v2" })
            .then(response => {
                puter.print(response);
            });
    </script>
</body>
</html>

Example 2Image analysis with Nemotron Nano 12B V2 VL

To analyze images, simply provide an image URL to puter.ai.chat() using the vision model Nemotron Nano 12B V2 VL:

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat(
            "Describe this image in detail and identify any objects you see.",
            "https://assets.puter.site/doge.jpeg",
            { model: 'nvidia/nemotron-nano-12b-v2-vl' }
        ).then(response => {
            puter.print(response);
        });
    </script>
</body>
</html>

Example 3Complex reasoning with Nemotron Super

Nemotron Super excels at complex reasoning and problem-solving tasks. Here's how to use it for advanced analytical tasks:

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat(
            "Analyze the potential impacts of quantum computing on current encryption methods and suggest strategies for post-quantum cryptography.",
            { model: "nvidia/llama-3.3-nemotron-super-49b-v1.5" }
        )
        .then(response => {
            puter.print(response);
        });
    </script>
</body>
</html>

Example 4Stream responses for longer queries

For longer responses, use streaming to get results in real-time:

async function streamResponse() {
    const response = await puter.ai.chat(
        "Explain the complete process of training a large language model, from data collection to deployment",
        { model: "nvidia/nemotron-nano-9b-v2", stream: true }
    );

    for await (const part of response) {
        puter.print(part?.text);
    }
}

streamResponse();

Full code example:

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        async function streamResponse() {
            const response = await puter.ai.chat(
                "Explain the complete process of training a large language model, from data collection to deployment",
                { model: "nvidia/nemotron-nano-9b-v2", stream: true }
            );

            for await (const part of response) {
                if(part?.reasoning)
                    puter.print(part?.reasoning);
                else
                    puter.print(part?.text);
            }
        }

        streamResponse();
    </script>
</body>
</html>

List of supported models

The following Nvidia Nemotron models are supported by Puter.js:

nvidia/llama-3.1-nemotron-70b-instruct
nvidia/llama-3.1-nemotron-ultra-253b-v1
nvidia/llama-3.3-nemotron-super-49b-v1.5
nvidia/nemotron-nano-12b-v2-vl
nvidia/nemotron-nano-12b-v2-vl:free
nvidia/nemotron-nano-9b-v2
nvidia/nemotron-nano-9b-v2:free
togetherai:nvidia/NVIDIA-Nemotron-Nano-9B-v2



That's it! You now have a free alternative to the Nvidia Nemotron API using Puter.js. This allows you to access Nemotron Nano, Nemotron Vision, and Nemotron Super capabilities without needing an API key or a backend. True serverless AI!

Related

Free, Serverless AI and Cloud

Start creating powerful web applications with Puter.js in seconds!

Get Started Now

Read the Docs Try the Playground