Claude Platform
Start building with Claude
Everything you need to integrate Claude's AI capabilities into your applications.
⌘K
from anthropic import Anthropic
client = Anthropic(
api_key="my_api_key",
)
message = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello, Claude"}
]
)
client = Anthropic(
api_key="my_api_key",
)
message = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello, Claude"}
]
)
Models
The Claude model family
Choose the right model for your use case.
Most capable
Opus 4.7
claude-opus-4-7 📋
Best for complex analysis, coding, and creative tasks requiring deep reasoning.
Best balance
Sonnet 4.6
claude-sonnet-4-6 📋
Strong performance for everyday tasks with excellent speed and cost efficiency.
Fastest
Haiku 4.5
claude-haiku-4-5 📋
Lightning-fast responses for high-volume applications and simple queries.
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 with built-in tool use and state.