Quick Start
Add Provider in Model Catalog
Navigate to Model Catalog
Go to Model Catalog โ Add Provider in your Portkey dashboard.
Configure AWS Credentials
There are two authentication methods:Enter your AWS credentials and deployment details for your Sagemaker endpoint.
Hereโs how to find your AWS credentials:
AWS Access Key
Use your
AWS Secret Access Key, AWS Access Key Id, and AWS Region to create your provider.Integration GuideAWS Assumed Role
Take your
AWS Assumed Role ARN and AWS Region to create the provider.Integration GuideDirect Integration Without Model Catalog
If you prefer not to store your AWS credentials in Portkey, you can pass them directly when instantiating the Portkey client.Supported Parameters
These parameters are supported for Sagemaker (not required if youโre using Model Catalog):| Node SDK | Python SDK | REST Headers |
|---|---|---|
| awsAccessKeyId | aws_access_key_id | x-portkey-aws-access-key-id |
| awsSecretAccessKey | aws_secret_access_key | x-portkey-aws-secret-access-key |
| awsRegion | aws_region | x-portkey-aws-region |
| awsSessionToken | aws_session_token | x-portkey-aws-session-token |
| sagemakerCustomAttributes | sagemaker_custom_attributes | x-portkey-amzn-sagemaker-custom-attributes |
| sagemakerTargetModel | sagemaker_target_model | x-portkey-amzn-sagemaker-target-model |
| sagemakerTargetVariant | sagemaker_target_variant | x-portkey-amzn-sagemaker-target-variant |
| sagemakerTargetContainerHostname | sagemaker_target_container_hostname | x-portkey-amzn-sagemaker-target-container-hostname |
| sagemakerInferenceId | sagemaker_inference_id | x-portkey-amzn-sagemaker-inference-id |
| sagemakerEnableExplanations | sagemaker_enable_explanations | x-portkey-amzn-sagemaker-enable-explanations |
| sagemakerInferenceComponent | sagemaker_inference_component | x-portkey-amzn-sagemaker-inference-component |
| sagemakerSessionId | sagemaker_session_id | x-portkey-amzn-sagemaker-session-id |
| sagemakerModelName | sagemaker_model_name | x-portkey-amzn-sagemaker-model-name |
Example
Next Steps
SDK Reference
Complete SDK documentation and API reference
Add Metadata
Add metadata to your Sagemaker requests
Gateway Configs
Configure advanced gateway features
Tracing
Trace and monitor your Sagemaker requests

