Skip to main content
Vertex
Docs/5-Minute Quickstart
Updated Oct 15, 20264 min readv2.4

5-Minute Quickstart

Welcome to Vertex. In this quickstart guide, you will provision your API credentials, install our official SDK, and execute your first low-latency streaming request against the Vertex Global Anycast edge network.


1. Obtain Your API Key

Every request to the Vertex API requires a cryptographically signed Bearer token. You can generate a test key instantly in your developer console:

# Set your Vertex environment variable
export VERTEX_API_KEY="vtx_live_79f82d1c94b30e"
export VERTEX_REGION="us-east-1"

[!NOTE] Keys starting with vtx_test_ bypass billing quotas and route to synthetic sandbox clusters with deterministic 20ms response times.


2. Install the Official Client SDK

Choose your preferred language or package manager:

# Node.js / TypeScript
npm install @vertex/sdk

# Python
pip install vertex-sdk

# Go
go get github.com/vertex/vertex-go

3. Execute Your First API Request

Here is a minimal script that establishes a persistent edge session and performs real-time streaming:

import { VertexClient } from '@vertex/sdk';

const client = new VertexClient({
  apiKey: process.env.VERTEX_API_KEY,
  region: 'auto', // Dispatches to the nearest edge PoP
});

const session = await client.sessions.create({
  model: 'vertex-core-v2',
  maxTokens: 2048,
  temperature: 0.2,
  stream: true,
});

for await (const chunk of session.stream) {
  process.stdout.write(chunk.delta);
}

4. Response Payload & Metadata

When streaming concludes, the client returns an immutable telemetry receipt:

{
  "id": "sess_01HXYZ883749",
  "status": "completed",
  "model": "vertex-core-v2",
  "usage": {
    "promptTokens": 142,
    "completionTokens": 384,
    "totalTokens": 526
  },
  "telemetry": {
    "edgePoP": "iad-01",
    "ttfbMs": 14.8,
    "totalLatencyMs": 92.4
  }
}

Next Steps

Now that you’ve completed your first request, explore deeper capabilities:

Was this documentation page helpful?

Help us improve the Vertex developer experience.