GLabs SDK
TypeScript SDK for Google Labs AI media generation APIs.
Generate stunning images with Imagen and videos with Veo.
Quick Start
import { GLabsClient } from '@getvrex/glabs-sdk';
const client = new GLabsClient({
bearerToken: process.env.GLABS_BEARER_TOKEN,
accountTier: 'pro',
recaptcha: {
provider: 'regotcha',
apiKey: process.env.RECAPTCHA_API_KEY,
},
});
// Generate an image
const result = await client.images.generate({
prompt: 'A beautiful sunset over mountains',
sessionId: GLabsClient.generateSessionId(),
aspectRatio: '16:9',
});Features
Image Generation
Generate AI images using Google's Imagen models with full control over aspect ratios, seeds, and references.
Video Generation
Create videos with Veo - text-to-video, image-to-video, extend, camera control, and HD upscaling.
Type-Safe
Full TypeScript support with exported types for all options and results.