Access refused to Bedrock model

0

Hello, I've been granted access to Bedrock Titan Text G1 Lite model, as shown in the screen copy below:

Model access

However, trying to connect a client, as follows:

private final BedrockRuntimeAsyncClient client = BedrockRuntimeAsyncClient.builder().region(Region.EU_WEST_3).create().build();

using amazon.titan-text-lite-v1 as a model ID, raises the following exception:

Model invocation failed: java.util.concurrent.CompletionException: software.amazon.awssdk.services.bedrockruntime.model.AccessDeniedException: You don't have access to the model with the specified model ID. (Service: BedrockRuntime, Status Code: 403, Request ID: 6574c707-1378-4acd-98d0-ea794134acd7)
2024-04-08 17:01:42,628 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (executor-thread-1) HTTP Request to /bedrock/titan?prompt=My+name+is+Nick failed, error id: 8ee37fb1-6dca-418f-b644-e37406555cf7-1: org.jboss.resteasy.spi.UnhandledException: java.util.concurrent.ExecutionException: software.amazon.awssdk.services.bedrockruntime.model.AccessDeniedException: You don't have access to the model with the specified model ID. (Service: BedrockRuntime, Status Code: 403, Request ID: 6574c707-1378-4acd-98d0-ea794134acd7)
profile picture
nicolas
質問済み 1ヶ月前298ビュー
2回答
1
承認された回答

My bad, I've mistakenly used mistral.mistral-7b-instruct-v0:2 instead of amazon.titan-text-lite-v1 as a model ID. Using the right model ID it works as expected. Closing.

profile picture
nicolas
回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前
1

Hi there

Can you confirm that you requested access to the models in the same region that you are running the application from eu-west-3?

profile pictureAWS
エキスパート
Matt-B
回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ