Skip to main content
Claude Platform on AWS is Anthropic’s managed Claude offering delivered through AWS. It uses the same Anthropic Messages API with AWS SigV4 authentication and billing through AWS Marketplace. Portkey provider slug: claude-platform-aws

All Claude Models

Opus, Sonnet, and Haiku with plain model IDs

Full API Parity

Messages, batches, files, token counting

AWS Auth

Access Key, Assumed Role, and Service Role

Quick Start

  • max_tokens is required — always specify this parameter
  • Model IDs are identical to the first-party Anthropic API (e.g., claude-sonnet-4-6, claude-opus-4-7)

Prerequisites

Enable outbound web identity federation on your AWS account before making any requests:
Without this, all requests fail with "Outbound web identity federation is disabled for your account".

Add Provider in Model Catalog

  1. Go to Model Catalog → Add Provider
  2. Select Claude Platform on AWS
  3. Choose an authentication mode and enter credentials
All auth modes accept an optional Anthropic Workspace ID (anthropicAwsWorkspaceId). Set this to scope requests to a specific workspace (format: wrkspc_01AbCdEf23GhIj). awsRegion determines the endpoint: aws-external-anthropic.{region}.api.aws

Setup Assumed Role →

Step-by-step IAM role and trust policy configuration for assumed role auth

IAM Policy

Claude Platform on AWS uses the aws-external-anthropic IAM namespace. Create a permission policy with the actions your workload needs:
AWS also provides managed policies for common use cases:

Basic Usage

Chat Completions

Streaming

Using the /messages Route

Use Anthropic’s native /messages endpoint through Portkey with full gateway features.

Using Anthropic’s Native SDK

Using cURL

cURL
All Portkey features (caching, observability, configs) work with the /messages route. Add x-portkey-config, x-portkey-provider, and other Portkey headers as needed.

Extended Thinking

Models like claude-opus-4-7 and claude-sonnet-4-6 support extended thinking. Set strict_open_ai_compliance=False to use this feature:
The thinking response is returned in response.choices[0].delta.content_blocks, not response.choices[0].message.content.

Supported Models

Model IDs are identical to the first-party Anthropic API — no Bedrock-style anthropic.claude-* prefixes. Dated aliases (e.g., claude-sonnet-4-5-20250929, claude-opus-4-5-20251101) are also supported.

Key Differences from First-Party Anthropic

Portkey handles all authentication and header translation automatically. From the Portkey SDK, the experience is identical to using first-party Anthropic — just use a different provider slug.

Making Requests Without Model Catalog

Pass AWS credentials directly via headers:
cURL

Next Steps

Files API

Upload, list, retrieve, and delete files

Batch Processing

Run large async jobs at 50% lower cost

Assumed Role Setup

Step-by-step IAM role and trust policy setup

Anthropic Integration

Shared features: prompt caching, structured outputs, vision

Gateway Configs

Add gateway configs to your requests

Observability

Trace and monitor your requests

Portkey is now PRISMA AIRS AI Gateway. See it in action.

Contact Us
Last modified on August 3, 2026