- Go to the AWS Console → Bedrock → API keys
- Click "Generate long-term API keys" (for testing/development)
- Select expiration period (30 days recommended for testing)
- Copy the generated API key - it's only shown once!
- Make sure Claude 4 Sonnet model access is enabled in Bedrock console
Note: Long-term keys are for exploration only. Use short-term keys or IAM roles for production.