GET
/v1/schemas/amazon-bedrock/chat/model/{modelId}/invoke-with-response-stream?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. generated Source trace618bf3a6f4cb6e4987a01bd8ea2ce1f070e854991c750c67babf03520315dead{
"fetchedAt": 1794288032,
"extractorVersion": "2",
"verifiedAt": null
} |
Response body
7 properties · 0 required · 10 $defs| property | type | description | constraints |
|---|---|---|---|
| chunk | PayloadPart | Content included in the response. | |
| internalServerException | InternalServerException | An internal server error occurred. Retry your request. | |
| modelStreamErrorException | ModelStreamErrorException | An error occurred while streaming the response. Retry your request. | |
| validationException | ValidationException | Input validation failed. Check your request parameters and retry the request. | |
| throttlingException | ThrottlingException | Your request was throttled because of service-wide limitations. Resubmit your request later or in a different region. You can also purchase Provisioned Throughput to increase the rate or number of tokens you can process. | |
| modelTimeoutException | ModelTimeoutException | The request took too long to process. Processing time exceeded the model timeout length. | |
| serviceUnavailableException | ServiceUnavailableException | The service isn't available. Try again later. |
Types
10 $defsInternalServerExceptionobject
An internal server error occurred. For troubleshooting this error, see InternalFailure in the Amazon Bedrock User Guide
| message | string |
ModelStreamErrorExceptionobject
An error occurred while streaming the response. Retry your request.
| message | string | ||
| originalStatusCode | integer | The original status code. | 100 ≤ n ≤ 599 |
| originalMessage | string | The original message. |
ModelTimeoutExceptionobject
The request took too long to process. Processing time exceeded the model timeout length.
| message | string |
NonBlankStringstring
PartBodystring
PayloadPartobject
Payload content included in the response.
| bytes | string | Base64-encoded bytes of payload data. |
StatusCodeinteger
100 ≤ n ≤ 599
ThrottlingExceptionobject
Your request was denied due to exceeding the account quotas for Amazon Bedrock . For troubleshooting this error, see ThrottlingException in the Amazon Bedrock User Guide
| message | string |
ValidationExceptionobject
The input fails to satisfy the constraints specified by Amazon Bedrock . For troubleshooting this error, see ValidationError in the Amazon Bedrock User Guide
| message | string |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"amazon-bedrock","endpointId":"model/{modelId}/invoke-with-response-stream","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}