Call SageMaker endpoint
Send a request as it is to any Amazon SageMaker endpoint (a model of any kind: forecasting, classification, pictures) and return its answer as text.
Command in the Generative AI toolkit · id ooa.genai/invoke_endpoint · 19 inputs (1 required), 4 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Endpoint name | String | Yes | Name of the SageMaker endpoint. | |
| Body | String | No | The request body, sent as it is. | |
| Body file | File | No | A file whose bytes are the request body (a picture, a CSV or protobuf file); at most 25 MB. | |
| Content type | String | No | application/json | What the body is; image/* takes the picture type from the file's extension; custom: give it in custom_content_type. |
| Custom content type | String | No | The content type, when content_type is custom. | |
| Connection | String | No | Name of a Model Connection (provider, model and key managed in one place). Leave empty to set them on this action. | |
| API key | Credential | No | The AWS secret access key from the vault (or ACCESS_KEY_ID:SECRET). | |
| AWS access key ID | Credential | No | The AWS access key id from the vault. | |
| AWS session token | Credential | No | AWS Bedrock and AWS SageMaker only: the session token from the vault, when the access key is a temporary one (for example from an assumed role). | |
| AWS region | String | No | AWS region of the endpoint. | |
| Endpoint address | String | No | Another address for the SageMaker runtime (a private endpoint); https://runtime.sagemaker.REGION.amazonaws.com when empty. | |
| Accept | String | No | */* | The answer type to ask for; any when /. |
| Custom attributes | String | No | Extra information passed to the model's code as it is, up to 1024 characters. | |
| Enable explanations | String | No | With SageMaker Clarify explanations set up: an expression saying which answers to explain. | |
| Inference ID | String | No | Your id for this request, kept with the captured data (up to 64 characters). | |
| Target container hostname | String | No | Which container answers, on an endpoint with several containers called directly. | |
| Target model | String | No | Which model answers, on a multi-model endpoint. | |
| Target variant | String | No | Which production variant answers, instead of the endpoint's own split. | |
| Timeout (seconds) | Number | No | 0 | Seconds to wait for the model; 180 when 0. |
Outputs
| Output | Type | What it is |
|---|---|---|
| text | String | The endpoint's answer as text. |
| json | Any | The answer parsed as JSON, when it is JSON. |
| content_type | String | The answer's content type, as the endpoint gave it. |
| invoked_variant | String | The endpoint variant that answered. |