Supported providers
Vertex AI
Use your own Vertex AI credits through Keywords AI
There are 2 ways to add your Vertex AI credentials to your requests:
Add it from the UI
1
Go to the Credentials page
Go to Credentials page
2
Add your Vertex AI credentials.
3
(Optional) Choose models you want to use credits
You can choose the models you want to use your credits with. Just simply type the model ID from the Models page and copy the model id and paste it in the Available models. Press Enter
to add the model.
Leave it empty to apply your credentials for all Vertex AI models.
Add it in code
Add customer_credentials
parameter in your request body to use your own Vertex AI credits.
Override credentials for a particular model. (Optional)
One-off credential overrides. Instead of using what is uploaded for each provider, this targets credentials for individual models.
Requirements
- Ensure your deployment name matches those listed on our Models page.
- Confirm that your models are available in the region specified by your credentials.
Credentials validation is not supported. Failure to comply with these requirements will result in errors!
How to get your Vertex AI credentials
- Run
gcloud init
to initialize the gcloud CLI. - Run
gcloud info
to get the path of your credential. You will see a line likeUser Config Directory: [/home/USERNAME/.config/gcloud]
- You will find a file named
application_default_credentials.json
in the path you got from the previous step. This file contains your credentials. - Load this json file into the
vertex_ai_credentials
field in the request body.
For example: