CmdID / aws / aws sagemaker-runtime
aws sagemaker-runtime invoke-endpoint
After you deploy a model into production using Amazon SageMaker AI hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint. AWS CLI reference
13 options Its page in the AWS CLI reference
Options
--acceptThe desired MIME type of the inference response from the model container.--bodyProvides input data, in the format specified in the ContentType request header.--content-typeThe MIME type of the input data in the request body.--custom-attributesProvides additional information about a request for an inference submitted to a model hosted at an Amazon SageMaker AI endpoint.--enable-explanationsAn optional JMESPath expression used to override the EnableExplanations parameter of the ClarifyExplainerConfig API.--endpoint-nameThe name of the endpoint that you specified when you created the endpoint using the CreateEndpoint API.--inference-component-nameIf the endpoint hosts one or more inference components, this parameter specifies the name of inference component to invoke.--inference-idIf you provide a value, it is added to the captured data when you enable data capture on the endpoint.--prefix-aware-idAn optional, stable identifier that serves as a routing hint for prefix-aware routing.--session-idCreates a stateful session or identifies an existing one.--target-container-hostnameIf the endpoint hosts multiple containers and is configured to use direct invocation, this parameter specifies the host name of the container to invoke.--target-modelThe model to request for inference when invoking a multi-model endpoint.--target-variantSpecify the production variant to send the inference request to when invoking an endpoint that is running two or more variants.