Provider Slug
sagemaker

Integrate

Choose your auth type: AWS Access Key or using AWS Assumed Role, and add all the relevant details to create an associated virtual key.

  • Follow this guide to get your AWS Secret Access Key, AWS Access Key Id, and AWS Region.
  • For Sagemaker-specific configuration options, get them from the Sagemaker console.

Sample Request

You can now proxy to any Sagemaker URL with Portkey.

cURL
curl https://api.portkey.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "x-portkey-api-key: $PORTKEY_API_KEY" \
  -H "x-portkey-virtual-key: $SAGEMAKER_VIRTUAL_KEY" \
  -d '{
    ...
  }'