Bedrock / Client / list_foundation_models
list_foundation_models#
- Bedrock.Client.list_foundation_models(**kwargs)#
List of Bedrock foundation models that you can use. For more information, see Foundation models in the Bedrock User Guide.
See also: AWS API Documentation
Request Syntax
response = client.list_foundation_models( byCustomizationType='FINE_TUNING', byInferenceType='ON_DEMAND'|'PROVISIONED', byOutputModality='TEXT'|'IMAGE'|'EMBEDDING', byProvider='string' )
- Parameters:
byCustomizationType (string) – List by customization type.
byInferenceType (string) – List by inference type.
byOutputModality (string) – List by output modality type.
byProvider (string) – A Bedrock model provider.
- Return type:
dict
- Returns:
Response Syntax
{ 'modelSummaries': [ { 'customizationsSupported': [ 'FINE_TUNING', ], 'inferenceTypesSupported': [ 'ON_DEMAND'|'PROVISIONED', ], 'inputModalities': [ 'TEXT'|'IMAGE'|'EMBEDDING', ], 'modelArn': 'string', 'modelId': 'string', 'modelName': 'string', 'outputModalities': [ 'TEXT'|'IMAGE'|'EMBEDDING', ], 'providerName': 'string', 'responseStreamingSupported': True|False }, ] }
Response Structure
(dict) –
modelSummaries (list) –
A list of bedrock foundation models.
(dict) –
Summary information for a foundation model.
customizationsSupported (list) –
Whether the model supports fine-tuning or continual pre-training.
(string) –
inferenceTypesSupported (list) –
The inference types that the model supports.
(string) –
inputModalities (list) –
The input modalities that the model supports.
(string) –
modelArn (string) –
The ARN of the foundation model.
modelId (string) –
The model Id of the foundation model.
modelName (string) –
The name of the model.
outputModalities (list) –
The output modalities that the model supports.
(string) –
providerName (string) –
The model’s provider name.
responseStreamingSupported (boolean) –
Indicates whether the model supports streaming.
Exceptions
Bedrock.Client.exceptions.AccessDeniedException
Bedrock.Client.exceptions.ValidationException
Bedrock.Client.exceptions.InternalServerException
Bedrock.Client.exceptions.ThrottlingException