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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南