SDKs & Tools

Official libraries and tools for building with X1

Python

v1.2.0
$ pip install xyzai

Example Usage

from xyzai import X1Client

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

# Create a scene
scene = client.create_scene(
    dimensions=[10, 10, 3],
    objects=[
        {"type": "table", "position": [2, 3, 0]}
    ]
)

# Query the scene
result = scene.query("What's on the table?")
print(result.response)

Features

  • Async/await support
  • Type hints
  • Automatic retries
  • Rate limiting

JavaScript/TypeScript

v1.1.0
$ npm install @xyzai/x1

Example Usage

import { X1Client } from '@xyzai/x1';

const client = new X1Client({
  apiKey: process.env.X1_API_KEY
});

// Create a scene
const scene = await client.createScene({
  dimensions: [10, 10, 3],
  objects: [
    { type: 'table', position: [2, 3, 0] }
  ]
});

// Query the scene
const result = await scene.query(
  "What's on the table?"
);
console.log(result.response);

Features

  • Full TypeScript support
  • Browser & Node.js
  • Promise-based API
  • WebSocket streams

Developer Tools

CLI Tool

Command-line interface for X1 API

$ npm install -g xyzai-cli
  • Scene management
  • Batch processing
  • Config management
  • Local development

Docker Images

Official Docker images for X1

$ docker pull xyzai/x1-server
  • Pre-configured setup
  • Edge deployment
  • GPU support
  • Auto-scaling