Anthropic Claude API
Access Anthropic Claude instantly with Puter.js, and add AI to any app in a few lines of code without backend or API keys.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.chat("Explain AI like I'm five!", {
model: "anthropic/claude-haiku-4-5"
}).then(response => {
console.log(response);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain AI like I'm five!", {
model: "anthropic/claude-haiku-4-5"
}).then(response => {
console.log(response);
});
</script>
</body>
</html>
List of Anthropic Claude Models
Claude Sonnet 4.6
anthropic/claude-sonnet-4-6
Claude Sonnet 4.6 is Anthropic's latest mid-tier model released February 2026, delivering near-flagship Opus-level performance in coding, computer use, and agentic tasks at a fraction of the cost ($3/$15 per million tokens). It features a 1M token context window in beta, scores 79.6% on SWE-bench Verified and 72.5% on OSWorld. Developers preferred it over both Sonnet 4.5 (~70% of the time) and even Opus 4.5 (~59%) in real-world coding tests.
ChatClaude Opus 4.6
anthropic/claude-opus-4-6
Claude Opus 4.6 is Anthropic's latest model, released February 2026. It is a powerful model for coding and agentic tasks, with a 200K token context window and a 64K output context window.
ChatClaude Opus 4.5
anthropic/claude-opus-4-5
Claude Opus 4.5 was released in November 2025. It sets the standard for production code, sophisticated agents, and complex enterprise tasks—scoring higher than Anthropic's own engineering candidates on technical tests.
ChatClaude Haiku 4.5
anthropic/claude-haiku-4-5
Claude Haiku 4.5 is Anthropic's small, fast model released October 2025, optimized for low latency and cost. Despite being the cheapest option ($1/$5 per million tokens), it matches Sonnet 4 on coding benchmarks (73.3% SWE-bench).
ChatClaude Sonnet 4.5
anthropic/claude-sonnet-4-5
Claude Sonnet 4.5 is Anthropic's most capable model for agents and computer use, released September 2025. It can maintain focus for 30+ hours on complex tasks, supports a 1M token context window (beta), and is described as their "most aligned frontier model."
ChatClaude Opus 4.1
anthropic/claude-opus-4-1
Claude Opus 4.1 is an August 2025 incremental upgrade to Opus 4 focused on agentic tasks and real-world coding. It improved coding accuracy to 74.5% on SWE-bench with finer-grained refactoring and more precise bug fixes.
ChatClaude Opus 4
anthropic/claude-opus-4
Claude Opus 4 is the flagship model from the May 2025 Claude 4 launch, designed for complex long-running tasks. It can work continuously for several hours (7+ hour coding sessions demonstrated) and leads on coding benchmarks at 72.5% SWE-bench.
ChatClaude Sonnet 4
anthropic/claude-sonnet-4
Claude Sonnet 4 is the May 2025 successor to Sonnet 3.7 with enhanced steerability and coding (72.7% SWE-bench). It excels at following complex instructions precisely and autonomous multi-feature app development with near-zero navigation errors.
ChatClaude 3.7 Sonnet (Thinking)
anthropic/claude-3.7-sonnet:thinking
Claude 3.7 Sonnet (Thinking Mode) is Claude 3.7 Sonnet with extended thinking enabled by default. It excels at advanced math, competitive programming, and complex problem-solving by showing visible step-by-step reasoning.
ChatClaude 3.7 Sonnet
anthropic/claude-3-7-sonnet
Claude 3.7 Sonnet is Anthropic's first hybrid reasoning model, released February 2025. It combines instant responses with an extended thinking mode where users can control the "thinking budget" to balance speed vs. depth.
ChatClaude 3.5 Sonnet
anthropic/claude-3-5-sonnet
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.
ChatClaude 3 Haiku
anthropic/claude-3-haiku
Claude 3 Haiku is the fastest and most compact model from the Claude 3 family. It's optimized for near-instant responses and cost-efficiency, ideal for real-time chatbots, content moderation, and high-volume tasks.
Frequently Asked Questions
The Anthropic Claude API gives you access to models for AI chat. Through Puter.js, you can start using Anthropic Claude models instantly with zero setup or configuration.
Puter.js supports a variety of Anthropic Claude models, including Claude Sonnet 4.6, Claude Opus 4.6, Claude Opus 4.5, and more. Find all AI models supported by Puter.js in the AI model list.
With the User-Pays model, users cover their own AI costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.
Puter.js is a JavaScript library that provides access to AI, storage, and other cloud services directly from a single API. It handles authentication, infrastructure, and scaling so you can focus on building your app.
Yes — the Anthropic Claude API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building. See the documentation for more details.