Claude 3.5 Sonnet API

Access Claude 3.5 Sonnet from Anthropic using Puter.js AI API.

Get Started

Model Card

Claude 3.5 Sonnet balances intelligence and speed, and was the first Claude model to introduce computer use capabilities (screen navigation, clicking, typing) in public beta. It offered performance close to Claude 3 Opus at one-fifth the cost.

Context Window

200K

tokens

Max Output

8,192

tokens

Input Cost

$3

per million tokens

Output Cost

$15

per million tokens

API Usage Example

Add Claude 3.5 Sonnet to your app with just a few lines of code.
No API keys, no backend, no configuration required.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain quantum computing in simple terms", {
            model: "anthropic/claude-3-5-sonnet"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

View full documentation →

Get started with Puter.js

Add Claude 3.5 Sonnet to your app without worrying about API keys or setup.

Read the Docs View Tutorials