Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt

Use this file to discover all available pages before exploring further.

Overview

This endpoint returns consumption-only billing aggregates for the selected API key, including total cost, total requests, usage unit breakdowns, and breakdowns by requested model name (model), vendor, scene, accessChannel, cache class, plus a daily cost trend.

Notes

  • Monetary fields are USD-only. CNY inputs are retired and return 400 currency_retired.
  • Recharge, invoices, and other organization-level financial records are intentionally excluded.

Example

curl -X GET "https://api.lemondata.cc/v1/management/api-keys/key_abc123def456/billing?startDate=2026-01-01&endDate=2026-01-31" \
  -H "Authorization: Bearer mt-your-management-token"

Request / Response

Use the interactive OpenAPI panel above for the exact schema.