Skip to main content
Helicone OSS LLM Observability

Vertex AI JavaScript SDK Integration

Use Vertex AI's JavaScript SDK to integrate with Helicone to log your Vertex AI usage.
1 min read
Warning

This integration method is maintained but no longer actively developed. For the best experience and latest features, use our new AI Gateway with unified API access to 100+ models.

Proxy Integration#

Fetch#

Create an account + Generate an API Key

Log into helicone or create an account. Once you have an account, you can generate an API key.

Set API keys as environment variables

Install necessary packages

Ensure you have the necessary packages installed in your Javascript project:

Send a request using fetch

VertexAI SDK#

Create an account + Generate an API Key

Log into helicone or create an account. Once you have an account, you can generate an API key.

Set API keys as environment variables

Install necessary packages

Ensure you have the necessary packages installed in your Javascript project:

Import VertexAI and configure the client

Set up custom headers

Define request options

Get the generative model

Generate content