v1

latestOpenAPI 3.0.22026-07-173834119.9 KB
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 body

model_idstring required
raw_inputobject required

Response

Successful Response

{"stackTrail":"paths:/model/invoke_with_raw_input:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}