Model Invocation

Invoke Model With Raw Input

Endpoint to Invoke a Model on Bedrock with Raw Input

This endpoint allows users to invoke a model on Bedrock with raw input.


Request Body

ParameterTypeDescription
model_idstrThe ID of the model to invoke.
raw_inputdictThe raw input for the model. Please check Bedrock documentation for model-specific input format.

Response Body

FieldTypeDescription
output_textstrThe generated text.
input_tokensstrThe number of input tokens used.
output_tokensstrThe number of output tokens generated.

Errors

  • 400 Bad Request: If the request parameters are invalid.
  • 401 Unauthorized: If the authorization header is missing or invalid.
  • 500 Internal Server Error: If there is an unexpected error during model invocation.

Notes

post/model/invoke_with_raw_input

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

model_idstring required
raw_inputobject required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.