HACKER Q&A
📣 andrewfromx

Why do I get a 404 with Google's new vertex AI?


I'm using the example curl I get from:

https://console.cloud.google.com/vertex-ai/generative/language/my-prompts/create/text?authuser=2&project=my-app

The url it makes is:

https://us-central1-aiplatform.googleapis.com/v1/projects/my-app/locations/us-central1/publishers/google/chat-bison@001:predict

but 404 every time! (sending a POST, with auth, json, etc.)


  👤 huksley Accepted Answer ✓
Got fully working REST request <=> response but auth is need to be done in a different way because this token expires in 1 hour

https://gist.github.com/huksley/9120eed9e910e63d146a9e0c7db1...


👤 huksley
Have you figured it out? I have the same.