Projects help you organize your API keys, settings, and usage by application or environment. Each project belongs to an organization and can have its own configuration.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/theopenco/llmgateway/llms.txt
Use this file to discover all available pages before exploring further.
Create Project
Project name (1-255 characters)
ID of the organization this project belongs to
Enable response caching
Cache duration in seconds (10 - 31536000)
Project mode:
api-keys: Use your own provider keys onlycredits: Use LLM Gateway credits onlyhybrid: Try provider keys first, fallback to credits
The created project object
Each organization has a limit of 10 projects by default. Contact support to increase this limit.
Get Project
Retrieve a single project by ID.Project ID
Update Project
Update project settings. All fields are optional.Project ID
New project name (1-255 characters)
Enable or disable caching
Cache duration in seconds (10 - 31536000)
Project mode
Delete Project
Soft-delete a project. The project will be marked as deleted.Project ID
Project Modes
Projects support three different modes for handling LLM requests:API Keys Mode
- No provider key is configured for the requested provider
- The provider key is inactive or deleted
- The provider is unavailable
- Organizations with existing provider relationships
- Maximum control over which providers are used
- Compliance requirements
Credits Mode
- Getting started quickly
- Pay-as-you-go pricing
- Access to free models
- Multi-provider routing without managing keys
Hybrid Mode (Recommended)
- Provider key is not configured
- Provider returns an error
- Provider is unavailable
- Maximum reliability and uptime
- Cost optimization (use your keys when available)
- Seamless failover
Caching
Enable response caching to reduce costs and improve latency for repeated requests.How It Works
- When a request is made, the Gateway checks if an identical request was cached recently
- If found, the cached response is returned immediately (no provider call)
- If not found, the request is sent to the provider and the response is cached
Cache Keys
Requests are cached based on:- Model name
- Messages/prompt
- All parameters (temperature, max_tokens, etc.)
- Tools and tool_choice (if applicable)
Configuration
Enable or disable caching for the project
How long to cache responses (10 seconds to 1 year)
Cached requests are marked with
"cached": true in activity logs and don’t count toward your usage/costs.