Moby

API Reference

Build quantum-ready applications with Moby's programmable design tools and AI-assisted development platform.

🔌

REST/GraphQL API

Access 50+ endpoints for real-time rendering, AI design generation, and quantum resource management. Our API supports both modern REST and GraphQL patterns.

🧠

AI-powered

Leverage our embedded neural network for automatic layout optimization, style migration, and content-aware asset generation through simple API calls.

âš¡

Live Updates

Real-time WebSocket connections for collaborative design sessions, instant preview rendering, and automated performance monitoring.

Getting Started

To begin using the Moby API, first create a developer account and retrieve your API token:

curl -X POST "https://api.moby.dev/v1/auth" \
     -H "Content-Type: application/json" \
     -d '{
           "client_id": "your-app-uuid",
           "scope": ["design", "render", "analytics"]
         }'
                    

Authentication

Use Bearer token authentication with all requests. Tokens expire after 24 hours and can be refreshed using the /v1/auth/refresh endpoint.

Authorization: Bearer YOUR_ACCESS_TOKEN

Tip

Store your token securely and refresh before it expires to avoid interruptions in service.

Key Endpoints

1. Design Generation

POST /v1/generate AI

Generate design assets using text-to-image and style transfer capabilities.

{
  "prompt": "Futuristic dashboard with energy theme",
  "style": "minimalist",
  "format": "svg",
  "dimensions": [1920, 1080]
}
                    
GET /v1/history Analytics

Retrieve your recent design history and usage statistics.

Requests: 47
Tokens used: 12.8k
Cache hits: 68%

2. Quantum Resources

POST /v1/q-render Quantum

Access quantum computing accelerated rendering capabilities.

{
  "scene": "cityscape-night",
  "complexity": "high",
  "quantum_cores": 4
}
                    
PUT /v1/q-config Developer

Configure quantum rendering preferences for your organization.

{ "priority_threshold": 85, "fallback_to_cpu": true }

Usage Example

JavaScript SDK

import { MobyAPI } from '@moby/sdk';

const client = new MobyAPI({
  token: 'your-api-token',
  environment: 'production'
});

async function renderDesign() {
  try {
    const response = await client.generate({
      prompt: "Space-themed data dashboard",
      style: "glassmorphism",
      dimensions: [1920, 1080]
    });
    
    document.getElementById('preview').src = response.previewUrl;
  } catch (error) {
    console.error('Rendering failed:', error);
  }
}
                    

Live Preview

API response preview will appear here