Mouna Ben Chamekh
Mouna Ben Chamekh

Reputation: 363

Using autoML Rest API

I'm working on a JAVA application that uses Google autoML Rest API to classify images based on a trained model (I trained the model using the web platform directly). I'm having trouble to send any request to use this API to make predictions or get the existing models, I'm always having a 404 error.

I doubt I don't have the needed permissions to make the call, I used OAuth2 to authenticate but still having the same problem. I'm pretty sure that the authentification is correct because I tried it on another API that requires it and it worked fine.

Furthermore, I've been working with the google video intelligence API and I didn't have this problem. for example, if i would like to get the existing models, I send the following GET request:

Request URL : https://automl.googleapis.com/v1beta1/Project-ID/models

Error message : The requested URL /v1beta1/Project-ID/models was not found on this server.

Any idea of the cause of this error?

Upvotes: 1

Views: 1624

Answers (1)

F10
F10

Reputation: 2893

According to the documentation for listing models, the endpoint that AutoML it's using is the following:

https://automl.googleapis.com/v1beta1/projects/${PROJECT_ID}/locations/us-central1/models

Where ${PROJECT_ID} should be your current Project ID

Upvotes: 1

Related Questions