Vertex AI (Enterprise)
Vertex AI JavaScript SDK Integration
Use Vertex AI’s JavaScript SDK to integrate with Helicone to log your Vertex AI usage.
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