跳到主要內容
AI News HubLIVE
來源內容 · 翻譯待補全4 分鐘閱讀

待翻譯:Amazon Bedrock expands Claude model availability to in-country inferencing in India

文章摘要

AI 服務暫時不可用,以下為來源摘要,待恢復後補全翻譯:Anthropic's Claude Opus 5, Claude Sonnet 5, and Claude Haiku 4.5 are now available in India through Amazon Bedrock geographic cross-Region inference. You can access these models while processing data within the India Regions, and get started from the Amazon Bedrock console or with the Messages, InvokeModel, and Converse APIs.

來源AWS Machine Learning Blog作者: Aamna Najmi
待翻譯:Amazon Bedrock expands Claude model availability to in-country inferencing in India
報告錯誤

更正渠道尚未開通,可先複製下方文章資訊留存。

查看更正說明
直接讀正文

AI 服務暫時不可用,以下為來源正文,待恢復後補全翻譯。

We’re excited to announce the availability of Anthropic’s Claude Opus 5, Claude Sonnet 5, and Claude Haiku 4.5 in India. The India regional endpoint is served through geographic cross-Region inference. Customers in India can now access these models on Amazon Bedrock while processing the data in the India Regions in addition to the already supported global cross-Region inference. This can be useful when customers need to meet the requirements to process data locally in a desired geography. In this post, we discuss how India geographic cross-Region inference works from the Mumbai and Hyderabad Regions on Amazon Bedrock for Anthropic Claude models. We also show how to get started from the Amazon Bedrock console and with code, using Anthropic’s Messages API, Amazon Bedrock InvokeModel API, and Converse API. India inference To help you achieve the scale of your AI applications, Amazon Bedrock offers cross-Region inference profiles, a feature you can use to distribute inference across multiple AWS Regions without having to manage capacity in each Region. The request originates from your source Region where you make the API call and is automatically routed to one of the destination Regions defined in the inference profile. The India geographic profile keeps inference within India. Requests route only between ap-south-1 and ap-south-2. Your input prompts and output results might move between those two Regions. Instead of being bound to the capacity of one Region, your requests draw on a broader pool of compute. This helps you maintain throughput and consistent performance under load, which matters most during traffic peaks. Cross-Region inference operates through the secure AWS network with end-to-end encryption for data in transit. Customer data is not stored in a destination Region when using cross-Region inference. It remains exclusively within the source Region. Amazon Bedrock uses a zero data retention (ZDR) data security model. This means that by default, Amazon Bedrock does not store model inputs or outputs. However, certain models require human review by AWS as a condition if content is flagged by automatic safety classifiers. For more details, see Data retention in the Amazon Bedrock User Guide. Billing and quota consumption are tracked against your account in the source Region, regardless of which backend Region handled the request. Amazon CloudWatch and AWS CloudTrail record log entries in the source Region only, so your monitoring stays in one place. Geographic cross-Region inference is available on the bedrock-runtime endpoint. It supports Anthropic’s Messages API and the native Amazon Bedrock InvokeModel and Converse APIs, along with Amazon Bedrock features such as Amazon Bedrock Guardrails and intelligent prompt routing. Access Claude models from the Amazon Bedrock console You can access Claude models in the text playground in the Amazon Bedrock console, which requires no coding or SDK setup. You can send prompts, adjust inference parameters, and switch between variants to get a feel for each model before you integrate the API. Open the Amazon Bedrock console in the Region that you want to use as the source. In the navigation pane, under Test, choose Playground. Choose Select model in the middle of the page. Search for Anthropic Claude Opus 5, select IN Anthropic Claude Opus 5 as the inference profile under Inference, and choose Apply. Enter a prompt and choose Run to generate a response. Figure 1: The Claude Opus 5 model selected in the Amazon Bedrock console playground Call Claude models with the Anthropic Messages API and Amazon Bedrock InvokeModel and Converse API You can access Anthropic’s Claude Opus 5, Claude Sonnet 5, or Claude Haiku 4.5 programmatically with the India geographic inference profile ID using the Anthropic Messages API on bedrock-runtime through the Anthropic SDK, or keep using the InvokeModel and Converse APIs on bedrock-runtime through the AWS Command Line Interface (AWS CLI) and AWS SDK. Prerequisites Active AWS account with Amazon Bedrock access. AWS CLI installed and configured. Python 3.8+. Boto3 installed: pip install boto3. Anthropic SDK installed: pip install anthropic. The Bedrock Token Generator for Amazon Bedrock model inference authentication installed: pip install aws_bedrock_token_generator. AWS Identity and Access Management (IAM) role or user has the necessary permissions to invoke Amazon Bedrock models using a geographic cross-Region inference profile. Here’s a quick example using the AWS SDK for Python (Boto3) with the InvokeModel API: import boto3 import json # Create a Bedrock Runtime client bedrock_runtime = boto3.client( service_name="bedrock-runtime", region_name="ap-south-1" ) # Invoke Claude Sonnet 5 response = bedrock_runtime.invoke_model( modelId="in.anthropic.claude-sonnet-5", contentType="application/json", accept="application/json", body=json.dumps({ "anthropic_version": "bedrock-2023-05-31", "max_tokens": 4096, "messages": [ { "role": "user", "content": " Can you explain the features of Amazon Bedrock? " } ] }) ) result = json.loads(response["body"].read()) print(result["content"][0]["text"]) You can also use the Amazon Bedrock Converse API for a unified multi-model experience: import boto3 # Create a Bedrock Runtime client bedrock_runtime = boto3.client( service_name="bedrock-runtime", region_name="ap-south-1" ) # Invoke Claude Opus 5 response = bedrock_runtime.converse( modelId="in.anthropic.claude-opus-5", messages=[ { "role": "user", "content": [ { "text": " Can you explain the features of Amazon Bedrock?" } ] } ], inferenceConfig={ "maxTokens": 4096 } ) if 'output' in response: blocks = response['output']['message']['content'] print('\n'.join(b.get('text', '') for b in blocks if 'text' in b)) You can also use the Anthropic Messages API using the anthropic SDK package for a streamlined experience: from anthropic import Anthropic from aws_bedrock_token_generator import provide_token token = provide_token(region="ap-south-1") client = Anthropic( base_url="https://bedrock-runtime.ap-south-1.amazonaws.com/anthropic", api_key=token, ) response = client.messages.create( model="in. anthropic.claude-haiku-4-5-20251001-v1:0", max_tokens=1024, messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}], ) print(response) You can monitor usage, performance, and costs through CloudWatch and AWS Cost Explorer to scale your applications as demand grows. Conclusion With the launch of Anthropic’s Claude Opus 5, Claude Sonnet 5, and Claude Haiku 4.5 using Amazon Bedrock with India geographic cross-Region inference, you can now build highly scalable, resilient generative AI applications while keeping inference within the country. To get started, access Anthropic’s Claude models in the Amazon Bedrock console, or call them with the API using the India geographic inference profile ID. For the most current information about model availability in each Region, see Regional availability by models in the Amazon Bedrock User Guide. About the authors

展開要點與分析

文章情報

工程師進階

要點

  • AI 服務暫時不可用,系統已先保留來源內容與降級元數據。
  • Anthropic's Claude Opus 5, Claude Sonnet 5, and Claude Haiku 4.5 are now available in India through Amazon Bedrock geographic cross-Region inference. You can access these models w…

要點與分析由自動化流程生成,可能有誤,請結合原始來源核實。