Skip to content
English

Usage Logs and Reconciliation

View each call's model, four token types, and charges in the 1折AI console's call logs, and recalculate a bill using the formula.

Every call leaves a detail record in the call logs. This page explains how to view them and how to reconcile.

Console left menu → “Call Logs” (URL https://1zheai.com/usage-logs), page title is “General Logs”.

At the top you can filter by time range; after clicking “Expand” you can also filter by model name, API key name (“Token Name”), request ID, and log type. After filtering, click “Search”; “Export” downloads the current filtered results, making it convenient to reconcile in a spreadsheet.

ColumnContent
TimeWhen the request occurred
TokenThe API key name used for this call
ModelThe actual model ID called
Stream“Stream” or “Non-stream”, plus output speed (t/s)
TokenThe first line is “Input / Output” tokens; when caching is present, an additional line appears below: after “Cache↓” is the cache read tokens, after ”↑” is the cache write tokens
CostThe USD amount charged for this call
DurationTotal duration; streaming requests also show time to first character
DetailsUnit price and other details for this call

Requests rejected by the gateway (invalid API key, insufficient balance, incorrect model name, etc.) are not charged. Requests where the upstream returns an error have a cost of 0. A streaming request that disconnects mid-way is not entirely free of charge, see Streaming Output.

  1. Find this call

    Find the entry to verify by time and model, and note down the four numbers in the Token column: input, output, cache read (Cache↓), and cache write (↑).

  2. Check unit price

    On the Pricing Page find the input, output, cache read, and cache write unit prices for that model (input and output are already calculated with the model discount; cache is at the official original price).

  3. Plug into the formula

    text
    扣费 = ( 输入 × 输入单价
    + 缓存写入 × 缓存写单价
    + 缓存读取 × 缓存读单价
    + 输出 × 输出单价 ) ÷ 1,000,000

    The result should match the charge in the log. Rounding may cause a difference in the last digit.

If it doesn’t match, send us the time, model, and a screenshot of this log entry.

In tools like Claude Code, most input should fall into the “cache read” column. If several consecutive entries show large amounts of “cache write” with very little “cache read”, it means the cache is not being reused; for causes and fixes see Prompt Caching.

A rough hit rate: cache read ÷ (input + cache write + cache read).

  • Claude Code uses Haiku-level models for some background tasks, so models you never actively selected will appear in the logs. See the model mapping in Claude Code Integration.
  • Input tokens in the log are a few hundred more than the content you sent: when calling via SDK, curl, or third-party tools, each request includes a system prompt that is billed as input (Claude Code does not include one), see System Prompt Billing.
  • A single “conversation” in a tool may correspond to many API calls (one round per tool call); logs are recorded per API call.