Cookie settings

We use cookies to deliver and improve our services, analyze site usage, and if you agree, to customize or personalize your experience and market our services to you. You can read our Cookie Policy here.

Claude Platform Docs
Claude Platform

Start building with Claude

Everything you need to integrate Claude into your applications. From first API call to production.

What do you want to build?
⌘K
import anthropic

client = anthropic.Anthropic()

message = client.messages.create(
  model="claude-opus-4-8",
  max_tokens=1024,
  messages=[{
    "role": "user",
    "content": "Hello, Claude"
  }]
)
print(message.content[0].text)
Platform

Choose how you build

Pick the developer surface that matches your approach, and the infrastructure that fits your stack.

Messages

Direct model access. You construct every turn, manage conversation state, and write your own tool loop.

Managed Agents

Fully managed agent infrastructure. Deploy and manage autonomous agents in stateful sessions with persistent event history.

Developer journey

From idea to production

Follow the lifecycle or jump to what you need.

Models

The Claude model family

Choose the right model for your use case.

Most capable
Fable 5

Highest capability for the most demanding reasoning and long-horizon agentic work.

Advanced
Opus 4.8

Excellent for complex analysis, coding, and creative tasks requiring deep reasoning.

Best balance
Sonnet 4.6

Ideal balance of intelligence and speed for most production workloads.

Fastest
Haiku 4.5

Lightning-fast responses for high-volume, latency-sensitive applications.

Resources

Keep learning