Tutorials

Free, Unlimited DeepSeek API

On this page

This tutorial will show you how to use Puter.js to access DeepSeek's powerful language models for free, without setting up an AI server or using any API keys. Using Puter.js, you can leverage models such as DeepSeek v3.2, DeepSeek R1, DeepSeek Chat, DeepSeek Reasoner, DeepSeek Prover and more for various tasks like text generation, analysis, and complex reasoning.

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 their AI usage.

Getting Started

Puter.js works without any API keys. 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>

You're now ready to use Puter.js for free access to DeepSeek capabilities.

Example 1: Basic Text Generation

DeepSeek v3.2 is suitable for everyday Q&A use with its balanced reasoning and efficient output.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain quantum entanglement in simple terms", {
            model: 'deepseek/deepseek-v3.2'
        }).then(response => {
            puter.print(response.message.content);
        });
    </script>
</body>
</html>

Using the puter.ai.chat() function, you can generate text using DeepSeek v3.2.

Example 2: Complex Reasoning

DeepSeek v3.2 Speciale excels at complex problem solving, thanks to its long thinking and maximum reasoning effort.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("What would be the environmental impact of replacing all cars with electric vehicles? Consider both positive and negative effects.", {
            model: 'deepseek/deepseek-v3.2-speciale'
        }).then(response => {
            puter.print(response.message.content);
        });
    </script>
</body>
</html>

Example 3: Comparing Models

Here's how to compare responses from different DeepSeek models:

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
    (async () => {
        const chat_resp = await puter.ai.chat(
            'Solve this puzzle: If you have 9 coins and one is counterfeit (lighter), how can you identify it with just 2 weighings on a balance scale?',
            {model: 'deepseek/deepseek-v3.2', stream: true}
        );
        document.write('<h2>DeepSeek v3.2 Solution:</h2>');
        for await (const part of chat_resp) {
            if (part?.reasoning) puter.print(part?.reasoning);
            else puter.print(part?.text);
        }

        const reasoner_resp = await puter.ai.chat(
            'Solve this puzzle: If you have 9 coins and one is counterfeit (lighter), how can you identify it with just 2 weighings on a balance scale?',
            {model: 'deepseek/deepseek-v3.2-speciale', stream: true}
        );
        document.write('<h2>DeepSeek v3.2 Speciale Solution:</h2>');
        for await (const part of reasoner_resp) {
            if (part?.reasoning) puter.print(part?.reasoning);
            else puter.print(part?.text);
        }
    })();
    </script>
</body>
</html>

List of Supported DeepSeek Models

The following DeepSeek models are supported by Puter.js:

deepseek/deepseek-chat
deepseek/deepseek-chat-v3-0324
deepseek/deepseek-chat-v3-0324:free
deepseek/deepseek-chat-v3.1
deepseek/deepseek-chat-v3.1:free
deepseek/deepseek-prover-v2
deepseek/deepseek-r1
deepseek/deepseek-r1-0528
deepseek/deepseek-r1-0528-qwen3-8b
deepseek/deepseek-r1-0528-qwen3-8b:free
deepseek/deepseek-r1-0528:free
deepseek/deepseek-r1-distill-llama-70b
deepseek/deepseek-r1-distill-llama-70b:free
deepseek/deepseek-r1-distill-llama-8b
deepseek/deepseek-r1-distill-qwen-14b
deepseek/deepseek-r1-distill-qwen-14b:free
deepseek/deepseek-r1-distill-qwen-32b
deepseek/deepseek-r1:free
deepseek/deepseek-v3.1-base
deepseek/deepseek-v3.1-terminus
deepseek/deepseek-v3.2-exp
deepseek/deepseek-v3.2
deepseek/deepseek-v3.2-speciale

Conclusion

Using Puter.js, you can gain access to DeepSeek's powerful language 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.

Free, Serverless AI and Cloud

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

Get Started Now

Read the Docs Try the Playground