Documentation

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_date If 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_date is earlier than the start date, or start_date is 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

  • objectstring
    Object type.
    Optional values: list
  • dataarray
    An array of usage records, with elements being model records or plugin records.
    Hide child attributes
    data.datestring
    Usage date, format YYYY-MM-DD.
    data.resource_typestring
    Record type. Optional values: model (model), plugin (plugin)
    data.namestring
    Name. The model record is the model name, and the plugin record is the plugin name.
    data.masked_api_keystring
    Generate the API Key (desensitized value) for this amount.
    data.currencystring
    Currency.
    data.consumed_amountstring
    Consumption amount, 6 decimal places.
    data.request_countinteger
    Number of requests.
    data.input_cache_hit_amountstring
    Enter cache hit amount, 6 decimal places. Only model records are returned.
    data.input_cache_miss_amountstring
    Enter cache miss amount, 6 decimal places. Only model records are returned.
    data.output_amountstring
    Output amount, 6 decimal places. Only model records are returned.
    data.total_tokensinteger
    Total number of tokens. Only model records are returned.
    data.input_cache_hit_tokensinteger
    Input cache hit Token number. Only model records are returned.
    data.input_cache_miss_tokensinteger
    Enter the number of tokens missed in the cache. Only the model record is returned.
    data.output_tokensinteger
    Output Token number. Only model records are returned.
    data.audio_transcription_secondsinteger
    Audio transcription duration in seconds; it is null when there is no audio transcription. Only returned in model records.
    data.inference_typestring
    Inference 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'
response
{
  "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
    }
  ]
}
Update Time November 03, 2026

Copyright©2026 Xiaomi. All Rights Reserved | Cookie Policy | Cookie Preferences

We use cookies and similar technologies of our own to ensure the proper functioning of the website, customize content according to user preferences and analyze users' interactions on the website, as well as their browsing habits. You can find more information in our Cookie Policy. Select an option or go to Cookie Settings to manage your preferences. Learn More.