Examples & Tutorials

Learn X1 through interactive examples and tutorials

Getting Started

Advanced Topics

Computer Vision

Real-time Integration

Edge Computing

Multi-modal Integration

AI Safety & Ethics

Enterprise Integration

Basic Scene Creation

BeginnerPython

Learn how to create and manipulate 3D scenes

from xyzai import X1Client

# Initialize client
client = X1Client(api_key="xyz_key_123...")

# Create a simple room scene
scene = client.create_scene(
    dimensions=[5, 5, 3],  # 5m x 5m room with 3m height
    objects=[
        {
            "type": "table",
            "position": [2.5, 2.5, 0],
            "dimensions": [1.2, 0.8, 0.75]
        },
        {
            "type": "chair",
            "position": [2.5, 1.5, 0]
        }
    ]
)

# Query spatial relationships
result = scene.query("What's the distance between the chair and table?")
print(result.response)

Output

Distance: 1.0 meters (measured from center points)