Proxy Integration
Fetch
1
2
Set API keys as environment variables
3
Install necessary packages
Ensure you have the necessary packages installed in your Javascript project:
4
Send a request using fetch
VertexAI SDK
1
2
Set API keys as environment variables
3
Install necessary packages
Ensure you have the necessary packages installed in your Javascript project:
4
Import VertexAI and configure the client
5
Set up custom headers
6
Define request options
7
Get the generative model
8
Generate content