Console API
GET/api/billing/events

帳務與儲值

GET /api/billing/events

逐筆計費活動(Console 裡 90 天 ledger 視圖的 API 版)。可依時間區間、模態、模型、計費狀態、key 或 request id 過濾;cursor 分頁。

FieldTypeDescription
org_idstring · required組織 id。
from / tostring時間區間(ISO 8601)。
modality / unified_model_namestring依模態或模型過濾。
billing_statusstring例:billed/pending/unbilled。
api_key_doc_id / request_idstring下鑽到單一 key 或單一請求。
limit / cursor分頁。

GET /api/billing/topups

呼叫者 account 的儲值紀錄(ledger 併上即時付款狀態)。

GET /api/billing/topup-status

session_id 輪詢單筆結帳的入帳狀態。

GET /api/billing/checkout-url

sku 回傳付款連結 URL —— Console 儲值按鈕的 API 版。

GET /api/me/manual-credit-history

自己帳號的人工 credit 調整歷史(撥補、更正),支援 action、時間區間與 offset 分頁。