AWS News Blog

Anthropic’s Claude 3 Opus model is now available on Amazon Bedrock

Voiced by Polly

We are living in thegenerative artificial intelligence(AI) era; a time of rapid innovation. When Anthropic announced itsClaude 3 foundation models(FMs) on March 4, we madeClaude 3 Sonnet,a model balanced between skills and speed, available onAmazon Bedrockthe same day. On March 13, we launched theClaude 3 Haiku model on Amazon Bedrock,the fastest and most compact member of the Claude 3 family for near-instant responsiveness.

Today, we are announcing the availability ofAnthropic’s Claude 3 Opus on Amazon Bedrock,the most intelligent Claude 3 model, with best-in-market performance on highly complex tasks. It can navigate open-ended prompts and sight-unseen scenarios with remarkable fluency and human-like understanding, leading the frontier of general intelligence.

With the availability of Claude 3 Opus on Amazon Bedrock, enterprises can build generative AI applications to automate tasks, generate revenue through user-facing applications, conduct complex financial forecasts, and accelerate research and development across various sectors. Like the rest of the Claude 3 family, Opus can process images and return text outputs.

Claude 3 Opus shows an estimated twofold gain in accuracy over Claude 2.1 on difficult open-ended questions, reducing the likelihood of faulty responses. As enterprise customers rely on Claude across industries like healthcare, finance, and legal research, improved accuracy is essential for safety and performance.

How does Claude 3 Opus perform?
Claude 3 Opus outperforms its peers on most of the common evaluation benchmarks for AI systems, includingundergraduate-level expert knowledge(MMLU),graduate-level expert reasoning(GPQA),basic mathematics(GSM8K), and more. It exhibits high levels of comprehension and fluency on complex tasks, leading the frontier of general intelligence.


Source:https:// anthropic /news/claude-3-family

Here are a few supported use cases for the Claude 3 Opus model:

  • Task automation:planning and execution of complex actions across APIs, databases, and interactive coding
  • Research:brainstorming and hypothesis generation, research review, and drug discovery
  • Strategy:advanced analysis of charts and graphs, financials and market trends, and forecasting

To learn more about Claude 3 Opus’s features and capabilities, visitAnthropic’s Claude on Bedrockpage andAnthropic Claude modelsin the Amazon Bedrock documentation.

Claude 3 Opus in action
If you are new to using Anthropic models, go to theAmazon Bedrock consoleand chooseModel accesson the bottom left pane. Request access separately forClaude 3 Opus.

2024-claude3-opus-2-model-access screenshot

To test Claude 3 Opus in the console, chooseTextorChatunderPlaygroundsin the left menu pane. Then chooseSelect modeland selectAnthropicas the category andClaude 3 Opusas the model.

To test more Claude prompt examples, chooseLoad examples.You can view and run examples specific to Claude 3 Opus, such as analyzing a quarterly report, building a website, and creating a side-scrolling game.

By choosingView API request,you can also access the model using code examples in theAWS Command Line Interface (AWS CLI)and AWS SDKs. Here is a sample of the AWS CLI command:

aws bedrock-runtime invoke-model \
--model-id anthropic.claude-3-opus-20240229-v1:0 \
--body "{\" messages\ ":[{\" role\ ":\" user\ ",\" content\ ":[{\" type\ ":\" text\ ",\" text\ ":\" Your task is to create a one-page website for an online learning platform.\\n\ "}]}],\" anthropic_version\ ":\" bedrock-2023-05-31\ ",\" max_tokens\ ":2000,\" temperature\ ":1,\" top_k\ ":250,\" top_p\ ":0.999,\" stop_sequences\ ":[\" \\n\\nHuman:\ "]}" \
--cli-binary-format raw-in-base64-out \
--region us-west-2 \
invoke-model-output.txt

As I mentioned in my previous Claude 3 model launch posts, you need to use the newAnthropic Claude Messages API formatfor some Claude 3 model features, such as image processing. If you useAnthropic Claude Text Completions APIand want to use Claude 3 models, you shouldupgrade from the Text Completions API.

My colleagues,Dennis TraubandFrancois Bouteruche,are buildingcode examples for Amazon Bedrockusing AWS SDKs. You can learn how to invoke Claude 3 on Amazon Bedrock togenerate textormultimodal prompts for image analysisin the Amazon Bedrock documentation.

Here is sample JavaScript code to send a Messages API request to generate text:

// claude_opus.js - Invokes Anthropic Claude 3 Opus using the Messages API.
import {
BedrockRuntimeClient,
InvokeModelCommand
} from "@aws-sdk/client-bedrock-runtime";

const modelId = "anthropic.claude-3-opus-20240229-v1:0";
const prompt = "Hello Claude, how are you today?";

// Create a new Bedrock Runtime client instance
const client = new BedrockRuntimeClient({ region: "us-west-2" });

// Prepare the payload for the model
const payload = {
anthropic_version: "bedrock-2023-05-31",
max_tokens: 1000,
messages: [{
role: "user",
content: [{ type: "text", text: prompt }]
}]
};

// Invoke Claude with the payload and wait for the response
const command = new InvokeModelCommand({
contentType: "application/json",
body: JSON.stringify(payload),
modelId
});
const apiResponse = await client.send(command);

// Decode and print Claude's response
const decodedResponseBody = new TextDecoder().decode(apiResponse.body);
const responseBody = JSON.parse(decodedResponseBody);
const text = responseBody.content[0].text;
console.log(`Response: ${text}`);

Now, you can install the AWS SDK for JavaScript Runtime Client for Node.js and runclaude_opus.js.

npm install @aws-sdk/client-bedrock-runtime
node claude_opus.js

For more examples in different programming languages, check out thecode examples section in the Amazon Bedrock User Guide,and learn how touse system prompts with Anthropic Claudeat Community.aws.

Now available
Claude 3 Opus is available today in the US West (Oregon) Region; check thefull Region listfor future updates.

Give Claude 3 Opus a try in theAmazon Bedrock consoletoday and send feedback toAWS re:Post for Amazon Bedrockor through your usual AWS Support contacts.

Channy

Channy Yun (윤석찬)

Channy Yun (윤석찬)

Channy is a Principal Developer Advocate for AWS cloud. As an open web enthusiast and blogger at heart, he loves community-driven learning and sharing of technology.