Skip to main content

Introduction to Usage & Credits

Welcome to the Usage & Credits service documentation! This service provides open APIs for querying your account’s credits balance, API usage logs, and credits change history. You can programmatically monitor your consumption and integrate billing data into your own systems.

Authentication

All endpoints require authentication via API Key. You can pass it in one of two ways:
MethodExample
Request HeaderX-API-Key: your-api-key
Query Parameter?key=your-api-key
Keep your API Key secure. Do not expose it in client-side code or public repositories.

Features

  • Credits Balance — Query your current credits balance in real time.
  • Service List — Retrieve all available services and their IDs for filtering.
  • API Usage Logs — Search detailed API call records including status codes, consumed credits, trace IDs, and metadata.
  • Credits Change History — View credits deduction details with before/after balances and deducted amounts.

Available Endpoints

EndpointMethodDescription
/api-user/creditsGETQuery current credits balance
/api-user/servicesGETList available services
/api-user/usage/searchPOSTSearch API usage logs
/api-user/points/searchPOSTSearch credits change history

Quick Start

Query Credits Balance

curl https://dk.mountsea.ai/api-user/credits \
  -H "X-API-Key: your-api-key"
Response:
{
  "credits": 10000
}

Search Credits Change History

curl -X POST https://dk.mountsea.ai/api-user/points/search \
  -H "X-API-Key: your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "dateRange": {
      "start": 1767801600000,
      "end": 1773071999999
    },
    "page": 1,
    "limit": 10
  }'

Explore the API Documentation