Prerequisites
Before you begin, you’ll need:- A web browser to access Cloud Admin
- A terminal or command-line interface
curlinstalled (or any HTTP client like Postman, Insomnia)- A text editor for storing credentials
This guide uses
curl for examples, but you can use any HTTP client. All examples use the VibeCoding.ad API server (api.vibecoding.ad).Step 1: Register as Developer
Create your developer account via the Cloud Admin web interface. This is the easiest way to get started.Via Cloud Admin (Recommended)
- Visit https://vibecoding.ad/register/developer or https://devkit4ai.com/register/developer
- Fill in your email and password (minimum 8 characters with uppercase, lowercase, and digit)
- Click “Create Developer Account”
- You’ll receive your provisioning credentials on the success page
Provisioning Credentials
After successful registration, you’ll receive three critical credentials:Alternative: API Registration (Advanced)
If you prefer programmatic registration, you can use the API directly with an operator key:Operator keys are only available for platform operators. For most developers, Cloud Admin registration is the recommended approach.
Step 2: Login and Get JWT Token
Use your email and password to obtain a JWT access token for API calls:Response
Step 3: Verify Your Identity
Confirm your authentication by fetching your user profile:Response
Step 4: Create Your First Project
Now create a new project for your application:Response
id - you’ll use it to create project-specific API keys.
Step 5: Generate Project API Key
Create an API key for your project to authenticate end user requests:Response
Step 6: Make Your First AI Generation Request
Now test the AI generation endpoint:Response
Step 7: Check Generation Status
Poll the status endpoint to check when your generation completes:Response (Completed)
Common Error Patterns
Understanding common errors helps you debug issues quickly.Authentication Errors
Missing or Invalid JWT Token
Missing Role Header
X-User-Role header with appropriate value (platform_operator, developer, or end_user).
Invalid Developer Key
Validation Errors
Invalid Email Format
[email protected].
Weak Password
Rate Limiting
Too Many Requests
retry_after before retrying.
Resource Errors
Project Not Found
Insufficient Permissions
Troubleshooting Guide
JWT Token Expired
Symptom: Receiving401 Unauthorized after some time.
Cause: Access tokens expire after 30 minutes.
Solution:
Headers Not Working
Symptom:403 Forbidden despite including headers.
Checklist:
- ✅ Header names are exact (case-sensitive):
X-User-Role,X-Developer-Key,X-Project-ID,X-API-Key - ✅ Role value matches your user type exactly:
developer,end_user,platform_operator - ✅ Keys are not expired or revoked
- ✅ Project ID is a valid UUID format
- ✅ All required headers for your role are present
Generation Stuck in Pending
Symptom: Generation status remainspending for a long time.
Normal Duration: Generations typically complete within 2-5 minutes.
Troubleshooting:
- Wait at least 5 minutes before investigating
- Check Cloud Admin console for system status
- Verify example images were uploaded correctly (JPEG, PNG, or WebP; max 10MB each)
- Contact support if status remains pending after 10 minutes
Project API Key Not Working
Symptom: End user requests fail with403 Forbidden.
Required Headers for End User Requests:
Best Practices
Secure Credential Storage
✅ Do:- Store credentials in environment variables
- Use secrets managers (AWS Secrets Manager, HashiCorp Vault)
- Rotate keys every 90 days
- Use different keys for each environment (dev, staging, production)
- Hardcode keys in source code
- Share keys via email or chat
- Use the same key across multiple environments
- Store keys in public repositories
Error Handling
Implement robust error handling for production applications:Token Refresh Strategy
Implement automatic token refresh before expiration:Polling Strategy
When polling for generation status, use exponential backoff:Next Steps
Clone Starter Kit
Get the open-source template for your application
Cloud Admin Console
Manage projects and keys via web interface
Authentication Guide
Implement user authentication in your app
API Reference
Complete API endpoint documentation
Example Application
Here’s a complete Node.js example putting it all together:Before running: Register via Cloud Admin to obtain your initial credentials (developer key, project ID, and project API key). Replace the placeholder values in the code with your actual credentials.
quickstart-example.js and run:
Summary
You’ve learned how to: ✅ Register as a developer and obtain credentials✅ Authenticate with JWT tokens
✅ Create projects and generate API keys
✅ Make AI generation requests
✅ Handle common errors and implement best practices Ready to build? Clone the Starter Kit and start creating your AI-powered application!

