Anthropic Claude AI
Add AI to your application with Claude.
Access Claude AI through a single API with puter.js.
AI Chat API
World-Class Coding Performance
Industry-leading results on real-world software engineering benchmarks, with models scoring up to 80.9% on SWE-bench Verified. Excels at code generation, debugging, multi-file refactoring, and autonomous codebase navigation.
Extended Thinking & Hybrid Reasoning
Supports both instant responses and deep, step-by-step reasoning. Models can alternate between thinking and tool use (web search, code execution, file editing) for more accurate, nuanced outputs.
Massive 200K Context Window
Process lengthy documents, extended conversations, and large codebases in a single request. Maintains coherence and accuracy across long interactions with up to 64K output tokens.
Flexible Model Tiers for Any Use Case
From Haiku (fastest and most cost-efficient) to Opus (most intelligent and capable), choose the right balance of speed, cost, and capability for your application.
Superior Instruction Following
Precisely adheres to complex instructions, system prompts, and output format requirements. Reduced error rates and improved reliability for structured outputs, API integrations, and automated workflows.
Advanced Safety & Alignment
Built with robust safeguards including prompt injection resistance, reduced sycophancy, and strong refusal of harmful requests. Designed for reliable, trustworthy deployment in production.
Claude Models
Access all Claude models through a single API.
Claude Opus 4.5
Most intelligent model with exceptional reasoning, analysis, and creative capabilities.
claude-opus-4-5
Claude Opus 4.1
Advanced model with strong reasoning and comprehensive understanding for complex tasks.
claude-opus-4-1
Claude Opus 4
Powerful flagship model optimized for sophisticated reasoning and nuanced responses.
claude-opus-4
Claude Sonnet 4.5
Balanced performance with excellent speed and capability for everyday tasks.
claude-sonnet-4-5
Claude Sonnet 4
Fast and capable model ideal for production workloads and general assistance.
claude-sonnet-4
Claude Haiku 4.5
Fastest and most cost-efficient model for quick responses and high-volume tasks.
claude-haiku-4-5
Add AI Chat in Seconds
Add Claude AI 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: "claude-sonnet-4-5"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
Related Resources
Learn how to use Claude and other AI models with Puter.js.