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.
Everything you need to integrate Claude into your applications. From first API call to production.
import anthropic
client = anthropic.Anthropic()
message = client.messages.create(
model="claude-sonnet-4-6",
max_tokens=1024,
messages=[{
"role": "user",
"content": "Hello, Claude"
}]
)
print(message.content[0].text)Pick the developer surface that matches your approach, and the infrastructure that fits your stack.
Send a request, get a response. You construct every turn, manage conversation state, and write your own tool loop.
Claude Code as a library. Give Claude a task and the SDK runs the loop with built-in file, shell, and web tools.
Follow the lifecycle or jump to what you need.
Choose the right model for your use case.