What are Projects?
Projects help you organize your LLM integrations within an organization. Each project contains:- API Keys: Credentials for making gateway requests
- Provider Keys: Optional upstream provider API keys
- Usage Logs: Request history and analytics
- Caching Settings: Response caching configuration
- Mode Configuration: How requests are processed (credits vs. API keys)
Each organization can have up to 10 projects. Contact support to increase this limit.
Use Cases
Environment Separation
Create separate projects for development, staging, and production environments.
Application Isolation
Isolate different applications or services with dedicated projects.
Team Segmentation
Give different teams their own projects with separate billing and usage tracking.
Client Management
Manage multiple client implementations with separate projects and API keys.
Creating a Project
Via Dashboard
Configure Settings
Enter your project details:
- Name: A descriptive name (e.g., “Production API”, “Mobile App”)
- Mode: Choose how requests are processed
- Caching: Enable or disable response caching
Via API
Create a project programmatically:Project Modes
Projects support three operating modes that determine how LLM requests are processed:Hybrid Mode (Recommended)
- Your provider API keys if configured (no gateway fees)
- Gateway credits as fallback (with gateway fees)
API Keys Mode
- You want direct provider billing
- You need maximum cost control
- You have enterprise agreements with providers
Credits Mode
- You want simplified billing
- You need predictable per-token pricing
- You’re prototyping without provider accounts
Response Caching
Enable caching to reduce costs and improve response times for repeated queries.How It Works
- Gateway caches responses based on request parameters
- Identical requests return cached responses instantly
- Cache entries expire after the configured duration
- Cached responses don’t count toward usage costs
Configuration
Enable via Dashboard: Go to Project Settings → Caching and toggle the setting. Enable via API:Cache Duration
Set how long responses are cached (10 seconds to 1 year):- 10-60 seconds: Real-time data with light caching
- 5-15 minutes: General queries with moderate caching
- 1-24 hours: Static content or documentation queries
- Days/weeks: Unchanging content like historical data
Best Practices
When to Enable Caching
When to Enable Caching
- User-facing chatbots with common questions
- Documentation or FAQ systems
- Content generation with templates
- Repeated data analysis queries
When to Disable Caching
When to Disable Caching
- Real-time data queries
- Personalized responses
- Time-sensitive information
- Unique user inputs
Managing Projects
Update Project Settings
Modify project configuration:Get Project Details
Retrieve project information:Delete a Project
Permanently delete a project (requires owner role):API Keys
API keys authenticate your requests to the gateway. Each project can have multiple keys.Creating API Keys
Generate New Key
Click Create API Key and provide:
- Description: What this key is used for
- Usage Limit (optional): Maximum spend allowed
Usage Limits
Set per-key spending limits to control costs:IAM Rules
Restrict what models and providers an API key can access. See the API Keys guide for details.Best Practices
Project Organization
Project Organization
- Use one project per environment (dev, staging, prod)
- Name projects clearly: “Mobile App - Production”
- Document project purposes in descriptions
- Review and archive unused projects regularly
Security
Security
- Rotate API keys periodically
- Use different keys for different services
- Set usage limits on all keys
- Delete unused keys immediately
- Never commit keys to version control
Cost Management
Cost Management
- Enable caching for repeated queries
- Set usage limits on API keys
- Use hybrid mode to leverage your provider keys
- Monitor usage regularly in the dashboard
- Set up billing alerts
Monitoring
Monitoring
- Review logs for errors and anomalies
- Track token usage by model
- Monitor cache hit rates
- Set up alerts for spending thresholds
- Analyze performance metrics
Next Steps
API Keys
Learn about API key management and IAM rules.
Provider Keys
Configure upstream provider API keys.
Usage Analytics
Monitor and analyze your gateway usage.
Playground
Test models in the interactive playground.