Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

README.md

46 lines1.1 KB

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'),
  threadId: 'thread-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.