Problem in calling a vertex API

I am trying to call the below Google vertex API and it is showing that my account is not allowed to use it.

POST https://LOCATION-aiplatform.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/publishers/google/models/multimodalembedding@001:predict

getting the below response.

{
“error”: {
“code”: 400,
“message”: “Project XXXXX is not allowed to use Publisher Model projects/xxxxxxxx/locations/asia-south1/publishers/google/models/multimodalembedding@001”,
“status”: “FAILED_PRECONDITION”
}
}

I assume there is some access restriction that I am missing in my Google Cloud account. I do have the below roles
Vertex AI Admin, Vertex AI User.

7 Likes

The issue is resolved after I changed the location to us-central1. Is there a restriction with location?

6 Likes