Query Daily Consumption
Request URL
https://api.xiaomimimo.com/v1/platform/usage/daily?start_date=2026-10-01&end_date=2026-10-02
Request Header
This interface supports the following two authentication methods. Please select one of them and add it to the request header (this interface requires a regular API Key sk-):
api-key: $MIMO_API_KEY
Query Parameters
| Parameters | Type | Required | Description |
|---|---|---|---|
start_date |
string | Yes | Start date, UTC calendar day, format: YYYY-MM-DD |
end_date |
string | Yes | End date, UTC calendar day, in the format of YYYY-MM-DD; the time span between this date and start_date shall not exceed 31 days |
Description
-
The query interval is a closed interval.
end_dateIf it is later than today, the result will be returned based on the existing data. -
The earliest queryable date is 2026-09-01. An empty list will be returned without errors when the interval has no intersection with the queryable range (
end_dateis earlier than the start date, orstart_dateis later than today). -
There is no pagination, and all records within the range are returned at one time. Model records are listed before plugin records within the same day.
response
- objectstringObject type.
Optional values:list - dataarrayAn array of usage records, with elements being model records or plugin records.Hide child attributesdata.datestringUsage date, format
YYYY-MM-DD.data.resource_typestringRecord type. Optional values:model(model),plugin(plugin)data.namestringName. The model record is the model name, and the plugin record is the plugin name.data.masked_api_keystringGenerate the API Key (desensitized value) for this amount.data.currencystringCurrency.data.consumed_amountstringConsumption amount, 6 decimal places.data.request_countintegerNumber of requests.data.input_cache_hit_amountstringEnter cache hit amount, 6 decimal places. Only model records are returned.data.input_cache_miss_amountstringEnter cache miss amount, 6 decimal places. Only model records are returned.data.output_amountstringOutput amount, 6 decimal places. Only model records are returned.data.total_tokensintegerTotal number of tokens. Only model records are returned.data.input_cache_hit_tokensintegerInput cache hit Token number. Only model records are returned.data.input_cache_miss_tokensintegerEnter the number of tokens missed in the cache. Only the model record is returned.data.output_tokensintegerOutput Token number. Only model records are returned.data.audio_transcription_secondsintegerAudio transcription duration in seconds; it isnullwhen there is no audio transcription. Only returned in model records.data.inference_typestringInference type. Only returned for model records.
Optional values:online(online),batch(batch)
Description of the Amount Standard Returned by the Interface
Usage Consumption Amount (Post-discount Consumption Amount)
-
Definition: The amount of consumption payable after the generation of inference requests and the deduction of discount benefits, but before the offset of bonus funds.
-
Calculation formula: Discounted consumption amount = Original amount − Discount deduction amount
-
Note: This interface only returns the consumption amount after discount, and does not return data related to the original amount, discount reduction, and bonus write-off; please query the above information through the daily bill interface.
curl --location --request GET 'https://api.xiaomimimo.com/v1/platform/usage/daily?start_date=2026-11-02&end_date=2026-11-02' \ --header 'Authorization: Bearer $MIMO_API_KEY'
{
"object": "list",
"data": [
{
"date": "2026-10-02",
"resource_type": "model",
"name": "mimo-v2.6-pro",
"masked_api_key": "sk-****abcd",
"currency": "CNY",
"consumed_amount": "0.012345",
"input_cache_hit_amount": "0.001000",
"input_cache_miss_amount": "0.003000",
"output_amount": "0.008345",
"total_tokens": 1000,
"input_cache_hit_tokens": 400,
"input_cache_miss_tokens": 300,
"output_tokens": 300,
"request_count": 2,
"audio_transcription_seconds": null,
"inference_type": "online"
},
{
"date": "2026-10-02",
"resource_type": "plugin",
"name": "web-search",
"masked_api_key": "sk-****abcd",
"currency": "CNY",
"consumed_amount": "0.000500",
"request_count": 1
}
]
}