

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# AI21 Labs 模型
<a name="model-parameters-ai21"></a>

本節說明 AI21 Labs 模型的請求參數和回應欄位。使用此資訊透過 [InvokeModel](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModel.html) 和 [InvokeModelWithResponseStream](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html) (串流) 操作對 AI21 Labs 模型進行推論呼叫。本節也包含 Python 程式碼範例，示範如何呼叫 AI21 Labs 模型。若要在推論操作中使用模型，您需要模型的模型 ID。若要取得模型 ID，請參閱[Amazon Bedrock 中支援的基礎模型](models-supported.md)。某些模型也可以使用 [Converse API](conversation-inference.md)。若要檢查特定AI21 Labs模型是否支援某項功能，請參閱[模型一目了然](model-cards.md)。如需更多程式碼範例，請參閱 [使用 AWS SDKs Amazon Bedrock 程式碼範例](service_code_examples.md)。

Amazon Bedrock 中的基礎模型支援輸入和輸出模態，因模型而異。若要檢查 AI21 Labs 模型支援的模態，請參閱 [Amazon Bedrock 中支援的基礎模型](models-supported.md)。若要檢查 AI21 Labs 模型支援的 Amazon Bedrock 功能，請參閱 [Amazon Bedrock 中支援的基礎模型](models-supported.md)。若要檢查哪些 AWS 區域提供AI21 Labs模型，請參閱 [Amazon Bedrock 中支援的基礎模型](models-supported.md)。

當您使用 AI21 Labs 模型進行推論呼叫時，您會包含模型的提示。如需建立 Amazon Bedrock 支援之模型提示的相關資訊，請參閱 [提示工程概念](prompt-engineering-guidelines.md)。如需 AI21 Labs 特定提示資訊，請參閱《[AI21 Labs 提示工程指南](https://docs.ai21.com/docs/prompt-engineering)》。

**Topics**
+ [AI21 Labs Jurassic-2 模型](model-parameters-jurassic2.md)
+ [AI21 Labs Jamba 模型](model-parameters-jamba.md)