v1
latestOpenAPI 3.0.22026-07-173834119.9 KBModel 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
| Parameter | Type | Description |
|---|---|---|
| model_id | str | The ID of the model to invoke. |
| raw_input | dict | The raw input for the model. Please check Bedrock documentation for model-specific input format. |
Response Body
| Field | Type | Description |
|---|---|---|
| output_text | str | The generated text. |
| input_tokens | str | The number of input tokens used. |
| output_tokens | str | The 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
Response
Successful Response
{"stackTrail":"paths:/model/invoke_with_raw_input:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}