AI Model Metadata Aggregation Platform
Unified access to LLM providers, models, and real-time pricing data
Explore all endpoints with Swagger UI documentation
Monitor API status and availability
Comprehensive guides and framework reference
Run ./zgo --help for available commands
All API requests require authentication using JWT tokens or API keys. Include your credentials in the request headers.
# Request body
{
"username": "john_doe",
"email": "john@example.com",
"password": "SecureP@ssw0rd"
}
# Request body
{
"email": "john@example.com",
"password": "SecureP@ssw0rd"
}
# Response
{
"code": 200,
"data": {
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"token_type": "Bearer",
"expires_in": 3600
}
}
# Include token in Authorization header
GET /v1/models
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
# Or use API Key
GET /v1/models
X-API-Key: your-api-key-here
Retrieve a paginated list of all AI models with filtering and sorting capabilities.
# Example with query parameters
GET /v1/models?page=1&page_size=20&provider=openai&sort=created_at
# Response
[
{
"id": "gpt-4o",
"name": "GPT-4o",
"provider": "openai",
"family": "gpt-4o",
"family_name": "GPT-4o Plus",
"family_default": true,
"context_window": 128000,
"input_price_per_million": 5.0,
"output_price_per_million": 15.0
}
]
Get comprehensive information about all supported AI model providers.
# Get all providers
GET /v1/providers
# Get specific provider details
GET /v1/providers/{provider_id}
Create and manage API keys for programmatic access.
# Create new API key
{
"name": "Production Key",
"permissions": ["models:read", "providers:read"],
"expires_at": "2025-12-31T23:59:59Z"
}
# List all API keys
GET /v1/apikeys
# Revoke an API key
DELETE /v1/apikeys/{key_id}
Access model rankings and performance comparisons.
/v1/usage endpointModelMeta API uses a streamlined response format:
{
"code": 200, // HTTP status code
"message": "Success", // Status message
"data": {...} // Response payload (if any)
}
Common HTTP status codes and their meanings:
Built on Gin with optimized routing and caching
JWT tokens and API key management
Granular role-based access control
PostgreSQL, MySQL, SQLite support
High-performance data caching layer
Live model pricing and availability