待翻譯:Introducing cross-Region inference for OpenAI GPT-5.6 models on Amazon Bedrock
AI 服務暫時不可用,以下為來源摘要,待恢復後補全翻譯:Amazon Bedrock now offers OpenAI GPT-5.6 models (Sol, Terra, and Luna) in more than 25 AWS Regions with cross-Region inference. Learn how US geographic and global inference profiles route requests for higher throughput, how to call the models with the OpenAI and Converse APIs, and how to configure IAM, quotas, and monitoring.
AI 服務暫時不可用,以下為來源正文,待恢復後補全翻譯。
This post is co-written with Chris Dickens from OpenAI. Amazon Bedrock now offers OpenAI GPT-5.6 models on Amazon Bedrock in more than 25 AWS Regions, with cross-Region inference. Three GPT-5.6 variants support cross-Region inference, Sol, Terra, and Luna, each tuned for a different balance of capability and cost. Cross-Region inference (CRIS) in Amazon Bedrock works through inference profiles, which define a model and the AWS Regions to which Amazon Bedrock can route a request. You call the profile from a source Region, and Amazon Bedrock routes the request to a destination Region using compute in that Region. CRIS is primarily a capacity mechanism. By allowing requests to draw on a broader pool of compute rather than being bound to one Region’s available capacity, it improves throughput and helps maintain consistent performance under load. A geographic inference profile routes requests within a single geography, so you can scale while keeping data processed within that geography. For GPT-5.6, this launch introduces US geographic (US cross-Region inference) and global CRIS. A global inference profile routes across all supported AWS commercial Regions where the model is deployed, based on real-time capacity, giving you broad access to Amazon Bedrock capacity. In this post, we walk through an overview of GPT-5.6 models on Amazon Bedrock, how geographic and global cross-Region inference work for these models, and how to call them from the Amazon Bedrock console and in code with the OpenAI Responses API, the OpenAI Chat Completions API, and the Amazon Bedrock Converse API. GPT-5.6 on Amazon Bedrock The GPT-5.6 family on Amazon Bedrock includes general-purpose and specialized cyber security variants. This post covers the three general-purpose variants that support cross-Region inference, Sol, Terra, and Luna. All three accept text and image inputs and return text, have a 1 million token context window, and support reasoning mode, server-side tool calling, and prompt caching. You can call them with the OpenAI Responses API, the OpenAI Chat Completions API, and the Amazon Bedrock Converse API. Streaming is supported through the Responses and Chat Completions API (stream=True), and ConverseStream. Amazon Bedrock inference profiles are logical identifiers you pass instead of a raw model ID. A geographic inference profile (prefixed with a geography code such as us., for example us.openai.gpt-5.6-terra) keeps inference processing within the Regions of its predefined geography. Requests enter through your source Region and can only be routed to destination Regions inside that geography, so workloads with data residency requirements can scale across Regions while staying within the boundary. A Global inference profile (prefixed global. such as global.openai.gpt-5.6-terra) can route a request to any supported commercial AWS Region where the model is deployed, based on real-time capacity. It offers the widest capacity pool and is the right choice when your workload has no geographic processing requirements. Billing and quota consumption are tracked against your account regardless of which backend Region handled the request, so a single spending and throughput picture still applies. Data processed through global CRIS may cross the Regions in that model’s eligible set. If your workload has data residency requirements that restrict processing to specific geographies, use the geographic profile for that geography (such as us.openai.gpt-5.6-terra) or a direct call to one Region instead of the global profile. The Amazon Bedrock cross-Region inference documentation lists which Regions participate in each model’s global and geographic profile sets. The following tables list the source Regions where you can invoke the GPT-5.6 inference profiles and the destination Regions where your requests can be processed. The same routing applies to all three variants: Sol, Terra, and Luna. US cross-Region inference profile (us.openai.gpt-5.6-sol / -terra / -luna) Source Region Destination Regions US East (N. Virginia) us-east-1 US East (N. Virginia) us-east-1, US West (Oregon) us-west-2, US East (Ohio) us-east-2 US West (Oregon) us-west-2 US East (N. Virginia) us-east-1, US West (Oregon) us-west-2, US East (Ohio) us-east-2 US East (Ohio) us-east-2 US East (N. Virginia) us-east-1, US West (Oregon) us-west-2, US East (Ohio) us-east-2 US West (N. California) us-west-1 US East (N. Virginia) us-east-1, US West (Oregon) us-west-2, US East (Ohio) us-east-2, US West (N. California) us-west-1 Canada (Central) ca-central-1 US East (N. Virginia) us-east-1, US West (Oregon) us-west-2, US East (Ohio) us-east-2, Canada (Central) ca-central-1 Canada West (Calgary) ca-west-1 US East (N. Virginia) us-east-1, US West (Oregon) us-west-2, US East (Ohio) us-east-2, Canada West (Calgary) ca-west-1 Global cross-Region inference profile (global.openai.gpt-5.6-sol / -terra / -luna) Source Regions Destination Regions United States: US East (N. Virginia) us-east-1, US East (Ohio) us-east-2, US West (Oregon) us-west-2, US West (N. California) us-west-1 Canada: Canada (Central) ca-central-1 Europe: Europe (Stockholm) eu-north-1, Europe (Paris) eu-west-3, Europe (Ireland) eu-west-1, Europe (Frankfurt) eu-central-1, Europe (Spain) eu-south-2, Europe (Milan) eu-south-1, Europe (London) eu-west-2, Europe (Zurich) eu-central-2 Asia Pacific: Asia Pacific (Melbourne) ap-southeast-4, Asia Pacific (Sydney) ap-southeast-2, Asia Pacific (Tokyo) ap-northeast-1, Asia Pacific (Osaka) ap-northeast-3, Asia Pacific (Seoul) ap-northeast-2, Asia Pacific (Mumbai) ap-south-1, Asia Pacific (Hyderabad) ap-south-2, Asia Pacific (Singapore) ap-southeast-1, Asia Pacific (Jakarta) ap-southeast-3, Asia Pacific (Thailand) ap-southeast-7, Asia Pacific (Malaysia) ap-southeast-5, Asia Pacific (Taipei) ap-east-2 Middle East: Middle East (UAE) me-central-1, Israel (Tel Aviv) il-central-1 South America: South America (São Paulo) sa-east-1 Routes to supported AWS commercial Regions globally Try GPT-5.6 in the Amazon Bedrock console The quickest way to try GPT-5.6 is 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. The model selector lists both the geographic and global cross-Region inference profiles, so you can test either cross-Region inference option before writing code. In the preceding screenshot, the source Region is US East (N. Virginia). The US entry in the model selector is the geographic inference profile, and the Global entry is the global inference profile. Open the Amazon Bedrock console in a Region where the models are available, such as US East (N. Virginia). In the navigation pane, under Test, choose Playground. Choose Select model in the middle of the page. Search for OpenAI GPT-5.6 Sol, select either US OpenAI GPT-5.6 Sol or Global OpenAI GPT-5.6 Sol, and choose Apply. Enter a prompt and choose Run to generate a response. Figure 1: Selecting a US or Global GPT-5.6 inference profile in the Amazon Bedrock console model selector Getting started with the API GPT-5.6 speaks the OpenAI Responses API formats natively on Amazon Bedrock. If your application already calls OpenAI models, you can point your existing OpenAI SDK client at the Amazon Bedrock OpenAI-compatible endpoint. Then swap in the inference profile ID (global or geographic) as the model parameter. For authentication, Amazon Bedrock accepts either standard AWS credentials or an Amazon Bedrock API key. The API key path is the most direct fit for the OpenAI SDK, which passes it as the bearer token. For production, generate short-term API keys programmatically using the aws-bedrock-token-generator package, which derives a bearer token from your existing AWS credentials (long-term keys are recommended only for exploration). from aws_bedrock_token_generator import provide_token from openai import OpenAI region = "us-east-1" # Point the OpenAI SDK at Amazon Bedrock's OpenAI-compatible endpoint for your Region. provide_token() generates a short-term Amazon Bedrock API key from your current AWS credentials (valid up to 12 hours), so no static key needs to be stored. client = OpenAI( base_url= f"https://bedrock-runtime.{region}.amazonaws.com/openai/v1", api_key=provide_token(region=region), ) # Use the global inference profile ID for GPT-5.6 Terra. model_id = "global.openai.gpt-5.6-terra" response = client.responses.create( model=model_id, input="Summarize the difference between horizontal and vertical scaling in two sentences.", max_output_tokens=512, ) print(response.output_text) For the full list of supported parameters, see the OpenAI GPT model parameters page in the Amazon Bedrock User Guide. The same client also works with the Chat Completions API, useful if your application already uses this format. response = client.chat.completions.create( # For US Geo CRIS, use "us.openai.gpt-5.6-terra". # Other variants: gpt-5.6-sol, gpt-5.6-luna model="global.openai.gpt-5.6-terra", messages=[ { "role": "user", "content": "In one sentence, what is cross-Region inference in Amazon Bedrock?", } ], max_completion_tokens=2000, reasoning_effort="low", ) print(response.choices[0].message.content) If you’re calling Amazon Bedrock directly rather than through the OpenAI SDK, use the Amazon Bedrock Converse API, which gives you the same request shape you already use for other models on Bedrock: import boto3 client = boto3.client("bedrock-runtime", region_name="us-east-1") model_id = "global.openai.gpt-5.6-terra" response = client.converse( modelId=model_id, messages=[{"role": "user", "content": [{"text": "List three common uses for a message queue."}]}], inferenceConfig={"maxTokens": 512}, ) print(response["output"]["message"]["content"][0]["text"]) For streaming responses, call converse_stream with the same arguments and iterate over the event stream: stream_response = client.converse_stream( modelId=model_id, messages=[{"role": "user", "content": [{"text": "List three common uses for a message queue."}]}], inferenceConfig={"maxTokens": 512}, ) for event in stream_response["stream"]: if "contentBlockDelta" in event: print(event["contentBlockDelta"]["delta"]["text"], end="") Security and compliance Cross-Region inference uses the same Amazon Bedrock security model as direct in-Region calls. Requests are authenticated with your AWS Identity and Access Management (IAM) credentials, and IAM policies control which inference profiles a role can invoke. Amazon Bedrock uses a zero-operator access (ZOA) security model enforced at the chip, so no AWS operators can access your prompts or completions. Every model call runs under your IAM policies, can be reached privately from your virtual private cloud (VPC) through a VPC endpoint, and is logged on AWS CloudTrail. Data perimeter policies help prevent exfiltration across account and network boundaries. For certain models, including GPT-5.6, content flagged by the Amazon Bedrock automated abuse-detection classifiers is retained for up to 30 days for offline abuse detection. To see which models this applies to and how it works, see Abuse detection in the Amazon Bedrock User Guide. To understand more about data retention configuration on Bedrock, see the Amazon Bedrock data retention documentation. For the authoritative list of Regions in each profile’s routing set, see the Amazon Bedrock cross-Region inference support page. Cross-Region inference requests appear on AWS CloudTrail in your source Region, and the additionalEventData.inferenceRegion field records which Region processed each request. If you enable model invocation logging, the request and response payloads are delivered to Amazon Simple Storage Service (Amazon S3) or Amazon CloudWatch Logs in the same account and Region. Setting up IAM permissions for cross [truncated for AI cost control]