API Environments
This guide provides information about the different environments available for MOOD MNKY API services and how to use them effectively.Available Environments
Development Environment
Local development environment for testing and development:| Service | Local URL | Default Port |
|---|---|---|
| Ollama | http://localhost:11434 | 11434 |
| Flowise | http://localhost:3000 | 3000 |
| Langchain | http://localhost:8000 | 8000 |
| n8n | http://localhost:5678 | 5678 |
Production Environment
Production servers for live applications:| Service | Production URL |
|---|---|
| Ollama | https://ollama.moodmnky.com |
| Flowise | https://flowise.moodmnky.com |
| Langchain | https://langchain.moodmnky.com |
| n8n | https://mnky-mind-n8n.moodmnky.com |
Environment Configuration
API Keys
Different API keys are required for each environment:-
Development Keys
- Prefix:
dev_ - Rate limits: 100 requests/hour
- For local testing only
- Prefix:
-
Production Keys
- Prefix:
prod_ - Rate limits: Based on subscription tier
- Required for production access
- Prefix:
Environment Variables
Example environment configuration:Environment-Specific Features
Development Environment
- Full access to all API endpoints
- Unlimited model management
- Debug logging enabled
- No rate limiting between services
- Mock data available
- Webhook testing tools
Production Environment
- Rate limiting enforced
- Authentication required
- SSL/TLS encryption
- Monitoring and analytics
- High availability
- Automatic scaling
- Data persistence
- Regular backups
Testing in Different Environments
Using the API Playground
- Select the environment from the server dropdown
- Use appropriate API key for the environment
- Test endpoints with environment-specific data
Using SDK
Using cURL
Best Practices
-
Environment Separation
- Use different API keys for each environment
- Never use production keys in development
- Keep environment configurations separate
-
Testing
- Test thoroughly in development before production
- Use environment-specific test data
- Validate environment-specific features
-
Security
- Secure API keys for each environment
- Use environment-specific security measures
- Monitor access patterns in each environment
-
Debugging
- Use detailed logging in development
- Monitor rate limits in production
- Track environment-specific metrics