packages/ai-worldlabs
Alem TuzlakMerge commit 'a5fce7f95b8b9c6eb57697aa1e3f587bf27483b9' into fix/anthropic-thinking-replay
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
@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.