{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sagemaker/json-schema/amazon-sagemaker-invoke-endpoint-with-response-stream-input-schema.json",
  "title": "InvokeEndpointWithResponseStreamInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sagemaker-operations-api-openapi.yml#/components/schemas/InvokeEndpointWithResponseStreamInput",
  "type": "object",
  "properties": {
    "EndpointName": {
      "type": "string",
      "description": "The name of the endpoint that you specified when you created the endpoint using the CreateEndpoint API."
    },
    "Body": {
      "type": "string",
      "format": "byte",
      "description": "Provides input data, in the format specified in the ContentType request header. Amazon SageMaker AI passes all of the data in the body to the model. For information about the format of the request body, see Common Data Formats-Inference."
    },
    "ContentType": {
      "type": "string",
      "description": "The MIME type of the input data in the request body."
    },
    "Accept": {
      "type": "string",
      "description": "The desired MIME type of the inference response from the model container."
    },
    "CustomAttributes": {
      "type": "string",
      "description": "Provides additional information about a request for an inference submitted to a model hosted at an Amazon SageMaker AI endpoint. The information is an opaque value that is forwarded verbatim. You could use this value, for example, to provide an ID that you can use to track a request or to provide other metadata that a service endpoint was programmed to process. The value must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field Value Components of the Hypertext Transfer Protocol (HTTP/1.1). The code in your model is responsible for setting or updating a"
    },
    "TargetVariant": {
      "type": "string",
      "description": "Specify the production variant to send the inference request to when invoking an endpoint that is running two or more variants. Note that this parameter overrides the default behavior for the endpoint, which is to distribute the invocation traffic based on the variant weights. For information about how to use variant targeting to perform a/b testing, see Test models in production"
    },
    "TargetContainerHostname": {
      "type": "string",
      "description": "If the endpoint hosts multiple containers and is configured to use direct invocation, this parameter specifies the host name of the container to invoke."
    },
    "InferenceId": {
      "type": "string",
      "description": "An identifier that you assign to your request."
    },
    "InferenceComponentName": {
      "type": "string",
      "description": "If the endpoint hosts one or more inference components, this parameter specifies the name of inference component to invoke for a streaming response."
    },
    "SessionId": {
      "type": "string",
      "description": "The ID of a stateful session to handle your request. You can't create a stateful session by using the InvokeEndpointWithResponseStream action. Instead, you can create one by using the InvokeEndpoint action. In your request, you specify NEW_SESSION for the SessionId request parameter. The response to that request provides the session ID for the NewSessionId response parameter."
    },
    "PrefixAwareId": {
      "type": "string",
      "description": "An optional, stable identifier that serves as a routing hint for prefix-aware routing. The service routes requests with the same prefix and the same identifier to the same instance. If requests from different applications might have the same prompt prefix, set a different identifier for each application to differentiate their routing decisions. Applies only to endpoints configured with a RoutingStrategy of PREFIX_AWARE."
    }
  },
  "required": [
    "EndpointName",
    "Body"
  ]
}