Developer Platform
Build world-aware applications with our comprehensive tools and APIs
example.ts
import { X1Client } from '@xyz-ai/x1';
const client = new X1Client({
apiKey: process.env.X1_API_KEY
});
// Initialize world-aware context
const scene = await client.createScene({
dimensions: [10, 10, 3], // Room dimensions in meters
objects: [
{ type: 'table', position: [2, 3, 0] },
{ type: 'chair', position: [2, 4, 0] }
]
});
// Query spatial relationships
const response = await scene.query(
"What's the best path to reach the chair?"
);
console.log(response.path); // Optimal navigation path
Ready to start building?
Get your API key and start integrating world-aware AI into your applications
Get API Key