Loading...
Dashboard Overview
Available Credit
${{ formatCurrency(dashboardStats.remainingBudget) }}
Total Requests
{{ formatNumber(dashboardStats.totalRequests) }}
Total Cost
${{ formatCurrency(dashboardStats.totalCost) }}
OAuth2 Apps
{{ oauth2Clients.length }}
Recent Activity
No recent activity
| Time | API Key | Model | Tokens | Cost |
|---|---|---|---|---|
| {{ formatTime(activity.startTime || activity.timestamp || activity.createdAt || activity.endTime) }} | {{ activity.name || activity.apiKeyName || activity.keyName || activity.apiKey || 'Unknown' }} | {{ activity.model }} | {{ activity.totalTokens }} | ${{ formatCurrency(activity.cost) }} |
Showing {{ activityPaginationStart }}-{{ activityPaginationEnd }} of {{
recentActivity.length }} records
Page {{ activityCurrentPage }} of {{ activityTotalPages }}
API Keys
Loading API keys...
No API keys yet. Create your first key to get started.
| Name | Key | Created | Status | Actions |
|---|---|---|---|---|
| {{ key.name }} | {{ key.token ? key.token.substring(0, 12) + '...' + key.token.slice(-4) : 'sk-***' }} |
{{ formatTime(key.createdAt) }} | Active |
OAuth2 Clients
Loading OAuth2 clients...
No OAuth2 clients registered. Register your first client for app integrations.
| Client Name | Client ID | Redirect URIs | Created | Actions |
|---|---|---|---|---|
| {{ client.clientName }} | {{ client.clientId }} |
{{ client.redirectUri }} | {{ formatTime(client.createdAt) }} |
Usage Analytics
Total Requests
{{ formatNumber(usageStats.totalRequests) }}
Total Tokens
{{ formatNumber(usageStats.totalTokens) }}
Total Cost
${{ formatCurrency(usageStats.totalCost) }}
Avg Cost/Request
${{ formatCurrency(usageStats.avgCost) }}
Recent Requests
Loading usage data...
No usage data yet
| Timestamp | API Key | Model | Tokens | Cost |
|---|---|---|---|---|
| {{ formatTime(request.startTime || request.timestamp || request.createdAt || request.endTime) }} | {{ request.name || request.apiKeyName || request.keyName || request.apiKey || 'Unknown' }} | {{ request.model }} | {{ request.totalTokens }} | ${{ formatCurrency(request.cost) }} |
Showing {{ usagePaginationStart }}-{{ usagePaginationEnd }} of {{ recentRequests.length
}} records
Page {{ usageCurrentPage }} of {{ usageTotalPages }}
Available Models
Loading models...
No models available
{{ model }}
Available
API Playground
Start a conversation by typing a message below
{{ playgroundError }}
{{ ttsError }}
{{ audioCurrentTime }} / {{ audioDuration }}
{{ sttFile ? sttFile.name : 'Click to upload or drag audio file here' }}
Supported formats: MP3, MP4, M4A, WAV, MPEG, MPGA, WEBM (Max 25MB)
{{ sttFile.name }}
{{ formatFileSize(sttFile.size)
}}
{{ sttError }}
Transcription Result
{{ sttResult }}
API Documentation
Chat Completions
Send a chat completion request to interact with AI models.
Example cURL Request
curl -X POST http://localhost:8080/apikey/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-3.5-turbo",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'
Parameters
| Parameter | Type | Description |
|---|---|---|
model |
string | The AI model to use |
messages |
array | Array of message objects with "role" and "content" |
role |
string | "user", "assistant", or "system" |
content |
string | The message text |
Authorization: Replace YOUR_API_KEY with your actual API key from the "API Keys" section.