

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 呼叫端點
<a name="bedrock-marketplace-call-the-endpoint"></a>

將模型部署到端點後，您就可以開始使用模型。您可以使用 `Converse` 或 `InvokeModel` 操作來呼叫模型。

如需 `Converse` 操作支援的模型清單，請參閱[模型相容性](bedrock-marketplace-model-reference.md)。如需代理程式的資訊，請參閱[使用 AI 代理程式自動執行應用程式中的任務](agents.md)。如需知識庫的資訊，請參閱[使用 Amazon Bedrock 知識庫擷取資料並產生 AI 回應](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
```