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_tokensis 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
Add Provider in Model Catalog
- Go to Model Catalog → Add Provider
- Select Claude Platform on AWS
- 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 theaws-external-anthropic IAM namespace. Create a permission policy with the actions your workload needs:
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 likeclaude-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

