Skip to main content

Welcome to Struct

This guide will help you create your first 3D simulation using Struct APIs. In just a few minutes, you’ll be generating immersive simulations from simple text prompts.

Step 1: Get Your API Key

  1. Sign up at https://api.vects.ai/auth/register
  2. Verify your email and complete the onboarding process
  3. Generate an API key from your dashboard
  4. Copy and save your API key securely
Keep your API key secure and never expose it in client-side code. Use environment variables or secure key management systems.

Step 2: Create Your First Simulation

Let’s create a simple urban intersection simulation:
Response:

Step 3: Check Simulation Status

Monitor your simulation’s progress:

Step 4: Retrieve Your Results

Once complete, get your simulation data:

Step 5: Try Risk Analysis

Add risk assessment to your simulation:
Response:

Step 6: Explore Real-time MARL

Connect to the WebSocket for real-time urban mobility simulation:

Common Use Cases

Emergency Response Planning

Urban Planning

Security Assessment

Next Steps

Authentication

Learn about API keys, tokens, and rate limits

Text to 3D Simulation

Explore advanced simulation generation options

Risk Analysis

Add comprehensive risk assessment to your applications

MARL WebSocket

Build real-time urban mobility applications

Integration Examples

React Application

Unity C# Integration

Troubleshooting

Common Issues

401 Unauthorized
  • Check that your API key is correct
  • Ensure you’re including the “Api-Key” prefix
  • Verify your account is active
429 Rate Limited
  • You’ve exceeded your plan’s rate limits
  • Wait before making more requests
  • Consider upgrading your plan
Simulation Taking Too Long
  • Complex prompts take longer to process
  • Check the estimated completion time
  • Use webhooks instead of polling for efficiency

Getting Help

  • Documentation: Browse our comprehensive API docs
  • Support: Email support@vects.ai
  • Community: Join our Discord community
  • Status: Check api.vects.ai/status for service status

What’s Next?

You’ve successfully created your first Struct simulation! Here are some ideas for what to explore next:
  1. Experiment with different prompts - Try emergency scenarios, urban planning, or security assessments
  2. Add risk analysis - Enhance your simulations with comprehensive threat assessment
  3. Build real-time applications - Use the MARL WebSocket for dynamic simulations
  4. Integrate with your stack - Add Struct to your existing applications
  5. Explore advanced features - Custom settings, webhooks, and export formats
Ready to build the future of spatial intelligence? Let’s get started! 🚀