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:
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

Quick Start

Query Credits Balance

Response:

Search Credits Change History


Explore the API Documentation