Claude

Anthropic's AI assistant — safe, helpful, and honest by design

Anthropic Constitutional AI RLHF API Claude Code
API Quick Start
# Install the SDK pip install anthropic # Basic message (Python) import anthropic client = anthropic.Anthropic() message = client.messages.create( model="claude-sonnet-4-6", max_tokens=1024, messages=[ {"role": "user", "content": "Explain neural networks in 3 sentences."} ] ) print(message.content[0].text) # With system prompt message = client.messages.create( model="claude-opus-4-6", max_tokens=2048, system="You are an expert software architect.", messages=[ {"role": "user", "content": "Design a microservices architecture for a food delivery app."} ] )