Method: Aws::BedrockRuntime::Types::InvokeModelRequest#model_id
- Defined in:
- lib/aws-sdk-bedrockruntime/types.rb
#model_id ⇒ String
The unique identifier of the model to invoke to run inference.
The ‘modelId` to provide depends on the type of model or throughput that you use:
-
If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see [Amazon Bedrock base model IDs (on-demand throughput)] in the Amazon Bedrock User Guide.
-
If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see [Supported Regions and models for cross-region inference] in the Amazon Bedrock User Guide.
-
If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see [Run inference using a Provisioned Throughput] in the Amazon Bedrock User Guide.
-
If you use a custom model, specify the ARN of the custom model deployment (for on-demand inference) or the ARN of your provisioned model (for Provisioned Throughput). For more information, see [Use a custom model in Amazon Bedrock] in the Amazon Bedrock User Guide.
-
If you use an [imported model], specify the ARN of the imported model. You can get the model ARN from a successful call to
- CreateModelImportJob][6
-
or from the Imported models page in the
Amazon Bedrock console.
[1]: docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns [2]: docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html [3]: docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html [4]: docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html [5]: docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html [6]: docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html
3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 3306 class InvokeModelRequest < Struct.new( :body, :content_type, :accept, :model_id, :trace, :guardrail_identifier, :guardrail_version, :performance_config_latency, :service_tier) SENSITIVE = [:body] include Aws::Structure end |