:doc:`Bedrock <../../bedrock>` / Client / get_foundation_model

********************
get_foundation_model
********************



.. py:method:: Bedrock.Client.get_foundation_model(**kwargs)

  

  Get details about a Amazon Bedrock foundation model.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetFoundationModel>`_  


  **Request Syntax**
  ::

    response = client.get_foundation_model(
        modelIdentifier='string'
    )
    
  :type modelIdentifier: string
  :param modelIdentifier: **[REQUIRED]** 

    The model identifier.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'modelDetails': {
              'modelArn': 'string',
              'modelId': 'string',
              'modelName': 'string',
              'providerName': 'string',
              'inputModalities': [
                  'TEXT'|'IMAGE'|'EMBEDDING',
              ],
              'outputModalities': [
                  'TEXT'|'IMAGE'|'EMBEDDING',
              ],
              'responseStreamingSupported': True|False,
              'customizationsSupported': [
                  'FINE_TUNING'|'CONTINUED_PRE_TRAINING'|'DISTILLATION',
              ],
              'inferenceTypesSupported': [
                  'ON_DEMAND'|'PROVISIONED',
              ],
              'modelLifecycle': {
                  'status': 'ACTIVE'|'LEGACY'
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **modelDetails** *(dict) --* 

        Information about the foundation model.

        
        

        - **modelArn** *(string) --* 

          The model Amazon Resource Name (ARN).

          
        

        - **modelId** *(string) --* 

          The model identifier.

          
        

        - **modelName** *(string) --* 

          The model name.

          
        

        - **providerName** *(string) --* 

          The model's provider name.

          
        

        - **inputModalities** *(list) --* 

          The input modalities that the model supports.

          
          

          - *(string) --* 
      
        

        - **outputModalities** *(list) --* 

          The output modalities that the model supports.

          
          

          - *(string) --* 
      
        

        - **responseStreamingSupported** *(boolean) --* 

          Indicates whether the model supports streaming.

          
        

        - **customizationsSupported** *(list) --* 

          The customization that the model supports.

          
          

          - *(string) --* 
      
        

        - **inferenceTypesSupported** *(list) --* 

          The inference types that the model supports.

          
          

          - *(string) --* 
      
        

        - **modelLifecycle** *(dict) --* 

          Contains details about whether a model version is available or deprecated

          
          

          - **status** *(string) --* 

            Specifies whether a model version is available ( ``ACTIVE``) or deprecated ( ``LEGACY``.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Bedrock.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Bedrock.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Bedrock.Client.exceptions.ValidationException`

  
  *   :py:class:`Bedrock.Client.exceptions.InternalServerException`

  
  *   :py:class:`Bedrock.Client.exceptions.ThrottlingException`

  