Replicate and HuggingFace APIs for Spawn3D are back online. 🎉
Spawn API Usage Guide
Learn how to effectively use the Spawn API to generate and manage game assets, integrate AI-powered features, and optimize your game development workflow.
Authenticating with the Spawn API
To use the Spawn API, you need to authenticate your requests using an API key. Follow these steps to get started:
- Sign up for a Spawn account at https://app.spawntools.ai/dashboard/profile/settings
- Navigate to the API section in your dashboard
- Generate a new API key
- Use this API key in the Authorization header of your requests
Example: Authenticating a Request
curl -X POST https://api.spawntools.ai/v1/models/generate \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A futuristic city skyline", "model": "spawn-lift-002" }'
Replace YOUR_API_KEY with your actual API key. Never share your API key publicly or commit it to version control.