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
asked 21 days ago266 views
2 Answers
1
Accepted Answer

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
answered 21 days ago
profile picture
EXPERT
reviewed 20 days ago
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
EXPERT
Matt-B
answered 21 days ago
profile picture
EXPERT
reviewed 20 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions