Export Field Descriptions
After downloading a CSV export from Console → Logs → Export, you will find the following columns. Use them as inputs to the formulas in the sections below.| Field | Description |
|---|---|
| Prompt Tokens | Total upstream input tokens returned by the provider — use this for cross-checking, not for billing calculation |
| Input Tokens | Non-cached text input billed at the standard text rate; equals Prompt Tokens when there is no caching and no image input |
| Cache Hit Tokens | Input tokens served from cache — billed at the cache-read discount rate |
| Cache Write Tokens | Tokens written to a short-lived cache (5-minute TTL) — billed at the cache-write rate |
| Cache Write 1h Tokens | Tokens written to an extended cache (1-hour TTL) — billed at the 1-hour cache-write rate |
| Output Tokens | Total output tokens including any reasoning tokens produced by the model |
| Reasoning Tokens | Model-internal reasoning output included within Output Tokens — billed at the reasoning rate on supported models |
| Input Unit Price | CNY per million Input Tokens |
| Output Unit Price | CNY per million Output Tokens (non-reasoning portion) |
| Cache Hit Unit Price | CNY per million Cache Hit Tokens |
| Cache Write Unit Price | CNY per million Cache Write Tokens (5-minute) |
| Cache Write 1h Unit Price | CNY per million Cache Write 1h Tokens |
| Reasoning Unit Price | CNY per million Reasoning Tokens |
| Search Count | Number of Claude Web Search tool calls — billed per call |
| Search Unit Price | CNY per Search call |
| Image Input Tokens | Image-modality input tokens (GPT-Image series) |
| Image Input Unit Price | CNY per million Image Input Tokens |
| Cached Image Tokens | Cache-hit image input tokens (GPT-Image series) |
| Cached Image Unit Price | CNY per million Cached Image Tokens |
Verification Relationship
Use Prompt Tokens to confirm that all input token sub-fields add up correctly before running a billing formula. Plain text requests:Prompt Tokens are for verification only. Always compute amounts by multiplying each sub-field by its corresponding unit price — do not multiply Prompt Tokens directly by any unit price.
Precision Note
Formula amounts may differ from your actual invoice by less than ¥0.0001. This small discrepancy comes from internal quota ceiling rounding (ceil) and is expected behavior, not a billing error.
Claude Series
Applies to:claude-sonnet-4-6, claude-opus-4-6, claude-haiku-4-5, and similar models.
Claude caching splits into two TTL tiers (5-minute and 1-hour). Cache writes cost more than regular input, but cache reads provide a substantial discount. Web Search is an optional add-on billed per call.
Billing Formula
Search Count and Search Unit Price appear in the export only when the request used the Claude Web Search tool. Leave them as 0 if the columns are empty.
Worked Example — claude-haiku-4-5
| Field | Value |
|---|---|
| Prompt Tokens | 58,518 |
| Input Tokens | 465 |
| Cache Hit Tokens | 11,944 |
| Cache Write Tokens | 29,762 |
| Cache Write 1h Tokens | 16,347 |
| Output Tokens | 572 |
| Input Unit Price | ¥3.5 / M |
| Cache Hit Unit Price | ¥0.35 / M |
| Cache Write Unit Price | ¥4.375 / M |
| Cache Write 1h Unit Price | ¥7.0 / M |
| Output Unit Price | ¥17.5 / M |
GPT-5 Series
Applies to:gpt-5, gpt-5.4, gpt-5.4-mini, and similar models.
GPT-5 models produce Reasoning Tokens as a sub-component of Output Tokens. Reasoning Tokens are typically priced the same as Output Tokens, but the formula separates them explicitly to handle any future pricing differences.
Billing Formula
When Reasoning Unit Price equals Output Unit Price (the default for most GPT models), the formula simplifies to:
Input Tokens/1M × Input Unit Price + Output Tokens/1M × Output Unit Price.Worked Example — gpt-5.4
| Field | Value |
|---|---|
| Input Tokens | 26,672 |
| Cache Hit Tokens | 0 |
| Output Tokens | 3,791 |
| Reasoning Tokens | 2,478 |
| Input Unit Price | ¥8.75 / M |
| Output Unit Price | ¥52.5 / M |
| Reasoning Unit Price | ¥52.5 / M |
GPT-Image Series
Applies to:gpt-image-2, gpt-image-1, and similar image-generation models.
Text and image inputs are priced separately. Cached image tokens have their own discount rate. Output Tokens represent image output and use the standard Output Unit Price.
Billing Formula
Image billing fields (
Image Input Tokens, Image Input Unit Price, Cached Image Tokens, Cached Image Unit Price) are optional export columns. Select them explicitly when configuring your export. These columns are empty for non-image models.Worked Example — gpt-image-2
| Field | Value |
|---|---|
| Input Tokens | 0 |
| Image Input Tokens | 10 |
| Cache Hit Tokens | 10 |
| Cached Image Tokens | 990 |
| Output Tokens | 500 |
| Input Unit Price | $5.00 / M |
| Image Input Unit Price | $8.00 / M |
| Cache Hit Unit Price | $1.25 / M |
| Cached Image Unit Price | $2.00 / M |
| Output Unit Price | $30.00 / M |
Gemini Series
Applies to:gemini-2.5-flash, gemini-2.5-pro, gemini-2.0-flash, and similar models, including image-generation variants such as gemini-imagen-3.
Gemini models support cache reads and cache writes. Some reasoning-capable Gemini models also produce Reasoning Tokens as a sub-component of Output Tokens. Image generation models include multimodal token sub-fields, but these are billed at the aggregate level using the same formula.
Billing Formula — Text and Reasoning Models
Billing Formula — Image Generation Models
Image generation models bill on total token counts using the same structure. WhenReasoning Tokens is zero (as it is for image-only outputs), the formula simplifies to the plain input + cache + output structure:
When a Gemini image request is blocked upstream or produces no image but the provider still returns prompt token usage, Fhddos records and bills those input tokens. The API response will include a
usage object for alignment with your consumption logs. Only requests where Fhddos has settled a charge will carry this usage payload — unauthenticated failures, local validation failures, or requests where the upstream returned no usage data are not billed and carry no usage field.DeepSeek Series
Applies to:deepseek-v4-pro, deepseek-v4-flash, and similar models.
DeepSeek supports cache reads with a significant discount. There are no write-cache tiers, and no reasoning or image sub-fields.
