See: https://cloud.google.com/vertex-ai/docs/generative-ai/chat/test-chat-prompts
You'll need:
- A project id
- An installed and working
gcloud
command-line tool - A service account that has been granted access to vertex AI
- A
json
key file associated with the service account - Set up local environment to use the
json
key for authentication
Tasks 1, 3, and 4 can be performed using the console OR using gcloud by a user authorized to create resources. Note that the end user does NOT need access to the GCP console or even need to be an editor/owner on the project.
Then, perform the curl below. Alternatively, you can use python or even the vertex AI python sdk.