Skip to main content
The Management API allows you to programmatically manage your LLM Gateway resources including API keys, provider keys, projects, organizations, and more.

Base URL

https://api.llmgateway.io
For local development:
http://localhost:4002

Authentication

All Management API endpoints require authentication. See the Authentication page for details on how to authenticate your requests.

Available Resources

Core Resources

API Keys

Create and manage API keys for accessing the Gateway API

Provider Keys

Configure provider API keys (OpenAI, Anthropic, etc.)

Projects

Organize your API keys and settings into projects

Organizations

Manage organization settings and billing

Analytics & Security

Activity Logs

Query usage statistics and activity data

Guardrails

Configure content safety and security rules (Enterprise)

Rate Limits

The Management API has the following rate limits:
  • Read operations: 100 requests per minute
  • Write operations: 30 requests per minute
Rate limit headers are included in all responses:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1234567890

Error Handling

The API uses standard HTTP status codes and returns JSON error responses:
{
  "message": "Error description"
}

Common Status Codes

CodeDescription
200Success
201Created
400Bad Request - Invalid parameters
401Unauthorized - Missing or invalid authentication
403Forbidden - Insufficient permissions
404Not Found - Resource doesn’t exist
429Too Many Requests - Rate limit exceeded
500Internal Server Error

SDKs and Libraries

Official SDKs are coming soon. For now, you can use standard HTTP clients:
curl -H "Authorization: Bearer YOUR_SESSION_TOKEN" \
  https://api.llmgateway.io/keys/api

Support

For questions or issues with the Management API:

Build docs developers (and LLMs) love