AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

After you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint.

For an overview of Amazon SageMaker, see How It Works

Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax.


For .NET Core and PCL this operation is only available in asynchronous form. Please refer to InvokeEndpointAsync.

Namespace: Amazon.SageMakerRuntime
Assembly: AWSSDK.SageMakerRuntime.dll
Version: 3.x.y.z


public virtual InvokeEndpointResponse InvokeEndpoint(
         InvokeEndpointRequest request
Type: Amazon.SageMakerRuntime.Model.InvokeEndpointRequest

Container for the necessary parameters to execute the InvokeEndpoint service method.

Return Value
The response from the InvokeEndpoint service method, as returned by SageMakerRuntime.


InternalFailureException Internal failure occurred.
ModelErrorException Model (owned by the customer in the container) returned an error 500.
ServiceUnavailableException Service is unavailable. Try your call again.
ValidationErrorException Inspect your request and try again.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also