sagemaker-runtime invoke_endpoint API. The model_name field is injected into every request body for multi-model dispatch.
AWSClient
Name of the SageMaker endpoint.
Model identifier injected into the request body for SageMaker multi-model dispatch.
AWS region. When None, uses the default from the environment or boto_session.
Optional pre-configured
boto3.Session (e.g. with explicit credentials or a custom profile). When None, a default session is created using the standard credential chain.Read timeout in seconds.
predict
Serialized JSON request payload.
embed
Serialized JSON request payload.
predict_with_embedding
Serialized JSON request payload.
embedding populated
alongside output.
metadata
/invocations.
Sends a minimal request with mode set to "metadata" so the server returns model metadata instead of running inference.
Returns:
Response body as a JSON string.
predict_async
run_in_executor.
boto3 is not natively async, so the synchronous predict call is delegated to a thread pool.
Serialized JSON payload.
Unused. Accepted for interface compatibility with the
Client protocol.embed_async
run_in_executor.
Serialized JSON payload.
Unused. Accepted for interface compatibility.
predict_with_embedding_async
run_in_executor.
Serialized JSON payload.
Unused. Accepted for interface compatibility.

