Free, Unlimited Claude 3.5 Sonnet API

PHOTO EMBED

Mon Mar 17 2025 13:56:44 GMT+0000 (Coordinated Universal Time)

Saved by @TuckSmith541

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        async function streamClaudeResponse() {
            const response = await puter.ai.chat(
                "Write a detailed essay on the impact of artificial intelligence on society", 
                {model: 'claude-3-5-sonnet', stream: true}
            );
            
            for await (const part of response) {
                puter.print(part?.text);
            }
        }

        streamClaudeResponse();
    </script>
</body>
</html>
content_copyCOPY

https://developer.puter.com/tutorials/free-unlimited-claude-35-sonnet-api/