Skip to content
Source
Sign inSign up
TanStack/ai

packages/ai-vertex

Contents of packages/ai-vertex
NameLast commit messageLast commit date
..
src (directory)
tests (directory)
CHANGELOG.md
LICENSE
package.json
README.md
tsconfig.json
vite.config.ts

README.md

TanStack AI

@tanstack/ai-vertex

Google Vertex AI adapter for TanStack AI.

Use this package to run Gemini models on Vertex. That gives you regional endpoints and Google Cloud credentials (ADC, service accounts, or Vertex express API keys).

Claude on Vertex lives in @tanstack/ai-anthropic/vertex.

Install

pnpm add @tanstack/ai @tanstack/ai-vertex

Usage

import { chat } from '@tanstack/ai'
import { vertexText } from '@tanstack/ai-vertex'

const stream = chat({
  adapter: vertexText('gemini-3.7-flash', {
    project: 'my-project',
    location: 'europe-west1',
  }),
  messages: [{ role: 'user', content: 'Hello' }],
  threadId: 'thread-1',
})

See the Vertex adapter docs.