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
질문됨 한 달 전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
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
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
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠