

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 调用端点
<a name="bedrock-marketplace-call-the-endpoint"></a>

在将模型部署到端点后，您可以开始使用模型。您可以使用 `Converse` 或 `InvokeModel` 操作来调用模型。

有关 `Converse` 操作支持的模型列表，请参阅[模型兼容性](bedrock-marketplace-model-reference.md)。有关代理的信息，请参阅[使用人工智能代理在应用程序中自动执行任务](agents.md)。有关知识库的信息，请参阅[利用 Amazon Bedrock 知识库检索数据并生成人工智能响应](knowledge-base.md)。

**使用模型**

1.  AWS 管理控制台 使用具有 Amazon Bedrock 权限的 IAM 角色登录。

1. 在搜索栏中，指定“Amazon Bedrock”，然后从下拉列表中选择 **Amazon Bedrock**。

1. 选择您要使用的工具。**演练场**是您用来访问所部署模型的最快捷的方式。

1. 选择**选择模型**。

1. 选择模型的端点。

您也可以使用以下示例 AWS Command Line Interface 命令来调用终端节点。

```
aws bedrock-runtime converse --model-id arn:aws:sagemaker:region:111122223333:endpoint/example-endpoint-name --messages '[{"role": "user", "content": [{"text": "Describe the purpose of a \"hello world\" program in one line."}]}]'
```

```
aws bedrock-runtime invoke-model --model-id arn:aws:sagemaker:region:111122223333:endpoint/example-endpoint-name --body '{"inputs": "Hello? How are you?", "parameters": {"details": true}}' --cli-binary-format raw-in-base64-out test.txt
```