Bedrock / Client / get_foundation_model
get_foundation_model#
- Bedrock.Client.get_foundation_model(**kwargs)#
Get details about a Bedrock foundation model.
See also: AWS API Documentation
Request Syntax
response = client.get_foundation_model( modelIdentifier='string' )
- Parameters:
modelIdentifier (string) –
[REQUIRED]
The model identifier.
- Return type:
dict
- Returns:
Response Syntax
{ 'modelDetails': { '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) –
modelDetails (dict) –
Information about the foundation model.
customizationsSupported (list) –
The customization that the model supports.
(string) –
inferenceTypesSupported (list) –
The inference types that the model supports.
(string) –
inputModalities (list) –
The input modalities that the model supports.
(string) –
modelArn (string) –
The model ARN.
modelId (string) –
The model identifier.
modelName (string) –
The model name.
outputModalities (list) –
The output modalities that the model supports.
(string) –
providerName (string) –
he model’s provider name.
responseStreamingSupported (boolean) –
Indicates whether the model supports streaming.
Exceptions
Bedrock.Client.exceptions.ResourceNotFoundException
Bedrock.Client.exceptions.AccessDeniedException
Bedrock.Client.exceptions.ValidationException
Bedrock.Client.exceptions.InternalServerException
Bedrock.Client.exceptions.ThrottlingException