Skip to content
Source
Sign inSign up
TanStack/ai

packages/ai-worldlabs

README.md

TanStack AI

@tanstack/ai-worldlabs

World Labs adapter for TanStack AI world generation (Marble).

Installation

npm install @tanstack/ai-worldlabs @tanstack/ai

Usage

import { generateWorld } from '@tanstack/ai'
import { worldlabsWorld } from '@tanstack/ai-worldlabs'

const world = await generateWorld({
  adapter: worldlabsWorld('marble-1.1'),
  prompt: 'A mystical forest with glowing mushrooms',
})

// world.url is the Marble viewer URL. world.assets is optional splat/mesh links.

Set WORLDLABS_API_KEY, or pass apiKey in the adapter config. See the World Labs adapter docs.