Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AI21 Labs models

Focus mode
AI21 Labs models - Amazon Bedrock

This section describes the request parameters and response fields for AI21 Labs models. Use this information to make inference calls to AI21 Labs models with the InvokeModel and InvokeModelWithResponseStream (streaming) operations. This section also includes Python code examples that shows how to call AI21 Labs models. To use a model in an inference operation, you need the model ID for the model. To get the model ID, see Supported foundation models in Amazon Bedrock. Some models also work with the Converse API. To check if the Converse API supports a specific AI21 Labs model, see Supported models and model features. For more code examples, see Code examples for Amazon Bedrock using AWS SDKs.

Foundation models in Amazon Bedrock support input and output modalities, which vary from model to model. To check the modalities that AI21 Labs models support, see Supported foundation models in Amazon Bedrock. To check which Amazon Bedrock features the AI21 Labs models support, see Supported foundation models in Amazon Bedrock. To check which AWS Regions that AI21 Labs models are available in, see Supported foundation models in Amazon Bedrock.

When you make inference calls with AI21 Labs models, you include a prompt for the model. For general information about creating prompts for the models that Amazon Bedrock supports, see Prompt engineering concepts. For AI21 Labs specific prompt information, see the AI21 Labs prompt engineering guide.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.