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
- Sign up at https://api.vects.ai/auth/register
- Verify your email and complete the onboarding process
- Generate an API key from your dashboard
- Copy and save your API key securely
Step 2: Create Your First Simulation
Let’s create a simple urban intersection simulation: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: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
- You’ve exceeded your plan’s rate limits
- Wait before making more requests
- Consider upgrading your plan
- 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:- Experiment with different prompts - Try emergency scenarios, urban planning, or security assessments
- Add risk analysis - Enhance your simulations with comprehensive threat assessment
- Build real-time applications - Use the MARL WebSocket for dynamic simulations
- Integrate with your stack - Add Struct to your existing applications
- Explore advanced features - Custom settings, webhooks, and export formats