Google Vertex AI
Follow these steps to use models from your own Google Cloud project through Vertex AI in ConsoleX. Calls to these models are billed by Google Cloud, not from your ConsoleX plan allowance or credits.
Get a service account key
To use Vertex AI, create a service account in your Google Cloud project and download its JSON key:
- Sign in to Google Cloud Console.
- Select your project.
- Go to IAM & Admin > Service Accounts.
- Click Create Service Account and complete the required information.
- In the Keys tab, click Add Key and download a JSON key.
Encode the credentials as Base64
Use the following script to encode the service account JSON. Make sure the file path is correct before running it.
import base64
import json
def encode_credentials(file_path):
try:
with open(file_path, 'r') as file:
vertex_credentials = json.load(file)
credentials_str = json.dumps(vertex_credentials)
encoded_credentials = base64.urlsafe_b64encode(
credentials_str.encode('utf-8')
).decode('utf-8')
return encoded_credentials
except FileNotFoundError:
print(f"Error: file not found at {file_path}")
return False
except json.JSONDecodeError:
print("Error: failed to decode JSON from the file")
return False
encoded_credentials = encode_credentials('path-to-your-service-account-key.json')
print(encoded_credentials)
Add the Vertex AI credentials in ConsoleX
- Click … (More) in the left rail, then Models.
- In the Model Hub, click Add Custom Model and choose Google Vertex.
- Fill in:
- Project ID: your Google Cloud project ID
- Location: the region that will handle the requests
- Encoded Key: the Base64-encoded credential generated by the script above
- Save. The model appears in the Model Hub under Private.

Checks and ConsoleX's built-in tools still use your plan's usage. See Custom models.
Security
Your key is stored encrypted. If you have security concerns, you can remove the key from ConsoleX or disable it in Google Cloud at any time.