Retired Mar 4, 2024. Replaced by the Claude 3 family (Haiku, Sonnet, Opus) in March 2024.“100K context was revolutionary. Now it's the minimum.”
Claude 2 performance data on RIVAL is based on blind head-to-head community voting. Overall win rate: 41.9% across 31 duels. All vote data is part of RIVAL's open dataset of 21,000+ human preference judgments across 200+ AI models. Model responses are curated from 5 challenges.
Anthropic's Claude 2 model, featuring a large 100K token context window and strong performance on various benchmarks. Known for helpful, honest, and harmless AI conversations.
Use Claude 2 in your applications via the OpenRouter API. Copy the code below to get started.
import requests
response = requests.post(
"https://openrouter.ai/api/v1/chat/completions" ,
headers={
"Authorization""Bearer $OPENROUTER_API_KEY" : ,
"Content-Type""application/json" :
},
json={
"model""anthropic/claude-2" : ,
"messages""role""user""content""Hello!" : [{: , : }]
}
)
print(response.json())Replace $OPENROUTER_API_KEY with your API key from openrouter.ai/keys
5 outputs from Claude 2
Here is a 7-ingredient recipe for a sweet dish I'll call "Cinnamon Apple Surprise":
Cinnamon Apple Surprise
Ingredients:
Instructions:
Prep time: 10 minutes Bake time: 25-30 minutes Total Time: 35-40 minutes
Enjoy this sweet and cinnamon-y apple surprise! The pie crust adds a nice contrast to the tender spiced apples.
Here is a 1-month beginner health and longevity plan focused on diet, exercise, and sleep:
Diet:
Exercise:
Sleep:
The key is developing sustainable habits. Start with small, realistic changes fo cused on nutrient-dense whol e foods, more activity in your day, and consistent restful sleep. Monitor energy and how you feel to track progress. Be patient, stay positive, and congratulate small wins. After a month reevaluate and build upon what's working. The journey continues by adding more longevity boosting practices around stress management, connections with others, and finding purpose. But this is an excellent healthy foundation to start with!