| 1 |
{ |
| 2 |
"version": "2.0", |
| 3 |
"service": "<p>Describes the API operations for running inference using Bedrock models.</p>", |
| 4 |
"operations": { |
| 5 |
"InvokeModel": "<p>Invokes the specified Bedrock model to run inference using the input provided in the request body. You use InvokeModel to run inference for text models, image models, and embedding models.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html\">Run inference</a> in the Bedrock User Guide.</p> <p>For example requests, see Examples (after the Errors section).</p>", |
| 6 |
"InvokeModelWithResponseStream": "<p>Invoke the specified Bedrock model to run inference using the input provided. Return the response in a stream.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html\">Run inference</a> in the Bedrock User Guide.</p> <p>For an example request and response, see Examples (after the Errors section).</p>" |
| 7 |
}, |
| 8 |
"shapes": { |
| 9 |
"AccessDeniedException": { |
| 10 |
"base": "<p>The request is denied because of missing access permissions.</p>", |
| 11 |
"refs": { |
| 12 |
} |
| 13 |
}, |
| 14 |
"Body": { |
| 15 |
"base": null, |
| 16 |
"refs": { |
| 17 |
"InvokeModelRequest$body": "<p>Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\">Inference parameters</a>.</p>", |
| 18 |
"InvokeModelResponse$body": "<p>Inference response from the model in the format specified in the content-type header field. To see the format and content of this field for different models, refer to <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\">Inference parameters</a>.</p>", |
| 19 |
"InvokeModelWithResponseStreamRequest$body": "<p>Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\">Inference parameters</a>.</p>" |
| 20 |
} |
| 21 |
}, |
| 22 |
"InternalServerException": { |
| 23 |
"base": "<p>An internal server error occurred. Retry your request.</p>", |
| 24 |
"refs": { |
| 25 |
"ResponseStream$internalServerException": null |
| 26 |
} |
| 27 |
}, |
| 28 |
"InvokeModelIdentifier": { |
| 29 |
"base": null, |
| 30 |
"refs": { |
| 31 |
"InvokeModelRequest$modelId": "<p>Identifier of the model. </p>", |
| 32 |
"InvokeModelWithResponseStreamRequest$modelId": "<p>Id of the model to invoke using the streaming request.</p>" |
| 33 |
} |
| 34 |
}, |
| 35 |
"InvokeModelRequest": { |
| 36 |
"base": null, |
| 37 |
"refs": { |
| 38 |
} |
| 39 |
}, |
| 40 |
"InvokeModelResponse": { |
| 41 |
"base": null, |
| 42 |
"refs": { |
| 43 |
} |
| 44 |
}, |
| 45 |
"InvokeModelWithResponseStreamRequest": { |
| 46 |
"base": null, |
| 47 |
"refs": { |
| 48 |
} |
| 49 |
}, |
| 50 |
"InvokeModelWithResponseStreamResponse": { |
| 51 |
"base": null, |
| 52 |
"refs": { |
| 53 |
} |
| 54 |
}, |
| 55 |
"MimeType": { |
| 56 |
"base": null, |
| 57 |
"refs": { |
| 58 |
"InvokeModelRequest$contentType": "<p>The MIME type of the input data in the request. The default value is <code>application/json</code>.</p>", |
| 59 |
"InvokeModelRequest$accept": "<p>The desired MIME type of the inference body in the response. The default value is <code>application/json</code>.</p>", |
| 60 |
"InvokeModelResponse$contentType": "<p>The MIME type of the inference result.</p>", |
| 61 |
"InvokeModelWithResponseStreamRequest$contentType": "<p>The MIME type of the input data in the request. The default value is <code>application/json</code>.</p>", |
| 62 |
"InvokeModelWithResponseStreamRequest$accept": "<p>The desired MIME type of the inference body in the response. The default value is <code>application/json</code>.</p>", |
| 63 |
"InvokeModelWithResponseStreamResponse$contentType": "<p>The MIME type of the inference result.</p>" |
| 64 |
} |
| 65 |
}, |
| 66 |
"ModelErrorException": { |
| 67 |
"base": "<p>The request failed due to an error while processing the model.</p>", |
| 68 |
"refs": { |
| 69 |
} |
| 70 |
}, |
| 71 |
"ModelNotReadyException": { |
| 72 |
"base": "<p>The model specified in the request is not ready to serve inference requests.</p>", |
| 73 |
"refs": { |
| 74 |
} |
| 75 |
}, |
| 76 |
"ModelStreamErrorException": { |
| 77 |
"base": "<p>An error occurred while streaming the response.</p>", |
| 78 |
"refs": { |
| 79 |
"ResponseStream$modelStreamErrorException": null |
| 80 |
} |
| 81 |
}, |
| 82 |
"ModelTimeoutException": { |
| 83 |
"base": "<p>The request took too long to process. Processing time exceeded the model timeout length.</p>", |
| 84 |
"refs": { |
| 85 |
"ResponseStream$modelTimeoutException": null |
| 86 |
} |
| 87 |
}, |
| 88 |
"NonBlankString": { |
| 89 |
"base": null, |
| 90 |
"refs": { |
| 91 |
"AccessDeniedException$message": null, |
| 92 |
"InternalServerException$message": null, |
| 93 |
"ModelErrorException$message": null, |
| 94 |
"ModelErrorException$resourceName": "<p>The resource name.</p>", |
| 95 |
"ModelNotReadyException$message": null, |
| 96 |
"ModelStreamErrorException$message": null, |
| 97 |
"ModelStreamErrorException$originalMessage": "<p>The original message.</p>", |
| 98 |
"ModelTimeoutException$message": null, |
| 99 |
"ResourceNotFoundException$message": null, |
| 100 |
"ServiceQuotaExceededException$message": null, |
| 101 |
"ThrottlingException$message": null, |
| 102 |
"ValidationException$message": null |
| 103 |
} |
| 104 |
}, |
| 105 |
"PartBody": { |
| 106 |
"base": null, |
| 107 |
"refs": { |
| 108 |
"PayloadPart$bytes": "<p>Base64-encoded bytes of payload data.</p>" |
| 109 |
} |
| 110 |
}, |
| 111 |
"PayloadPart": { |
| 112 |
"base": "<p>Payload content included in the response.</p>", |
| 113 |
"refs": { |
| 114 |
"ResponseStream$chunk": "<p>Content included in the response.</p>" |
| 115 |
} |
| 116 |
}, |
| 117 |
"ResourceNotFoundException": { |
| 118 |
"base": "<p>The specified resource ARN was not found. Check the ARN and try your request again.</p>", |
| 119 |
"refs": { |
| 120 |
} |
| 121 |
}, |
| 122 |
"ResponseStream": { |
| 123 |
"base": "<p>Definition of content in the response stream.</p>", |
| 124 |
"refs": { |
| 125 |
"InvokeModelWithResponseStreamResponse$body": "<p>Inference response from the model in the format specified by Content-Type. To see the format and content of this field for different models, refer to <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html\">Inference parameters</a>.</p>" |
| 126 |
} |
| 127 |
}, |
| 128 |
"ServiceQuotaExceededException": { |
| 129 |
"base": "<p>The number of requests exceeds the service quota. Resubmit your request later.</p>", |
| 130 |
"refs": { |
| 131 |
} |
| 132 |
}, |
| 133 |
"StatusCode": { |
| 134 |
"base": null, |
| 135 |
"refs": { |
| 136 |
"ModelErrorException$originalStatusCode": "<p>The original status code.</p>", |
| 137 |
"ModelStreamErrorException$originalStatusCode": "<p>The original status code.</p>" |
| 138 |
} |
| 139 |
}, |
| 140 |
"ThrottlingException": { |
| 141 |
"base": "<p>The number of requests exceeds the limit. Resubmit your request later.</p>", |
| 142 |
"refs": { |
| 143 |
"ResponseStream$throttlingException": null |
| 144 |
} |
| 145 |
}, |
| 146 |
"ValidationException": { |
| 147 |
"base": "<p>Input validation failed. Check your request parameters and retry the request.</p>", |
| 148 |
"refs": { |
| 149 |
"ResponseStream$validationException": null |
| 150 |
} |
| 151 |
} |
| 152 |
} |
| 153 |
} |