GLabsSDK

TypeScript SDK and CLI for Google Labs AI media generation.
Generate stunning images with Imagen 4 and videos with Veo 3.1.

$npm install -g @getvrex/glabs-cli
Quick Start
import { GLabsClient } from '@getvrex/glabs-sdk';

const client = new GLabsClient({
  bearerToken: process.env.GLABS_BEARER_TOKEN,
  accountTier: 'pro',
  recaptcha: {
    provider: 'chrome',
  },
});

// Generate an image
const result = await client.images.generate({
  prompt: 'A beautiful sunset over mountains',
  sessionId: GLabsClient.generateSessionId(),
  aspectRatio: '16:9',
});

Features

Image Generation

Imagen 4 with batch generation, 2K/4K upscaling, and reference images.

Video Generation

Veo 3.1 text-to-video, image-to-video, extend, camera reshoot, and HD upscaling.

CLI

Full terminal access. Generate images, videos, and run an OpenAI-compatible server.

Type-Safe

Full TypeScript support with exported types for all options and results.