> ## Documentation Index
> Fetch the complete documentation index at: https://docs.helicone.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Vertex AI cURL Integration

> Use cURL to integrate Vertex AI with Helicone to log your Vertex AI usage.

<Warning>
  This integration method is maintained but no longer actively developed. For the best experience and latest features, use our new [AI Gateway](/gateway/overview) with unified API access to 100+ models.
</Warning>

## Proxy Integration

<Steps>
  <Step title="Create an account + Generate an API Key">
    Log into [helicone](https://www.helicone.ai) or create an account. Once you have an account, you
    can generate an [API key](https://helicone.ai/developer).
  </Step>

  <Step title="Set API keys as environment variables">
    ```bash theme={null}
    export HELICONE_API_KEY=<your API key>
    export GCLOUD_API_KEY=<your Google Cloud API key>
    ```
  </Step>

  <Step title="Send a request using CURL">
    Use the following CURL command to send a request to the Vertex AI API through the Helicone proxy:

    ```bash theme={null}
    curl --request POST \
      --url "https://gateway.helicone.ai/v1/projects/$PROJECT_ID/locations/$LOCATION/publishers/google/models/$MODEL_NAME:streamGenerateContent" \
      --header "Authorization: Bearer $GCLOUD_API_KEY" \
      --header "Content-Type: application/json" \
      --header "Helicone-Auth: Bearer $HELICONE_API_KEY" \
      --header "Helicone-Target-URL: https://$LOCATION-aiplatform.googleapis.com" \
      --header "User-Agent: curl/7.64.1" \
      --data '{
      "contents": {
        "role": "user",
        "parts": {
          "text": "Which theaters in Mountain View show Barbie movie?"
        }
      },
      "generation_config": {
        "maxOutputTokens": 1
      }
    }'
    ```
  </Step>
</Steps>
