1. API reference
MyVocal AI语音大模型API文档
English
  • 中文
  • English
  • 文字转语音大模型
    • API reference
      • Voice management
        • List voices
        • Create a voice
        • Delete a voice
      • HTTP synthesis
        • Streaming HTTP synthesis
        • Non-streaming HTTP synthesis
      • WebSocket synthesis
        • Standard TTS · Single connection
        • Standard TTS · Multiple contexts
        • Dialogue · Multiple contexts
      • Usage and request history
        • Get master key usage
        • Look up a request by ID
        • Get usage by voice
      • Sub-key management
        • Create a sub-key
        • List sub-keys
        • Get sub-key details
        • Update a sub-key
        • Get sub-key usage
    • Overview and quickstart
      • Models
      • Choose a model and endpoint
      • Supported languages
      • Audio formats and playback
      • FAQ
      • SDKs and examples
  • 金融行业定制TTS模型
    • Skyblight text to speech
      • Streaming text to speech
      • Non-streaming text to speech
      • List voices
      • Delete a voice
      • Create a voice
      • Get usage
    • Full-duplex communication
      • WebSocket integration guide
      • V2 bidirectional streaming synthesis (WebSocket)
  • 语音转文字ASR
    • Overview and quickstarts
      • Realtime transcription quickstart
      • File transcription quickstart
      • Models and capabilities
      • Changelog
    • API reference
      • Realtime transcription over WebSocket
      • Create a file transcription
        POST
      • Get ASR usage
        GET
  • 企业客户声音定制服务
    • Your custom brand voice
  1. API reference

Get ASR usage

GET
https://openapi.myvocal.ai/asr/v1/usage
Get account information and ASR usage for a date range.

Send the query#

Authenticate with the API-Key header. Use YYYY/MM/DD for start_date and end_date. The response uses ISO 8601 for account.expire_at.
Use the same start and end date to query one day. Check period for the accepted range. The endpoint has no time-zone parameter. For cross-time-zone reconciliation, confirm the account’s reporting day before converting boundaries.

Read the response#

usage.used_minutes, usage.echo_v2 and usage.echo_v2_realtime are in minutes. Read usage.used_minutes for the total and the corresponding model field under usage for model usage.
The response contains account, period and usage. See the definition and example below.
ObjectContents
accountAccount status, expiry and qps
periodAccepted start and end dates
usageTotal usage and breakdowns by model or feature
Model fields include echo_v2, echo_v2_realtime, echo_v1, lexis_v1, echo_v1_realtime and echo_v2_medical.
Feature fields include hotwords and content_detection. Usage dimensions may overlap. Use the reported total and enterprise pricing for reconciliation.
usage_quota can be null. Preserve that value. It does not establish either a zero allowance or an unlimited allowance.

Reporting and billing#

Usage reports summarize the selected dates. Pricing and settlement follow your enterprise agreement. To determine whether an individual transcription succeeded, read its transcription response. Contact technical support about billing periods or usage.

Error handling#

For HTTP 401, check the key. For HTTP 400, check date format, date values and range. On a non-200 response, read the error body rather than treating it as zero usage.

请求参数

Query 参数

Header 参数

返回响应

🟢200Success
application/json
Successful response.
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://openapi.myvocal.ai/asr/v1/usage?start_date=2026%2F10%2F13&end_date=2026%2F10%2F13' \
--header 'API-Key: YOUR_API_KEY'
响应示例响应示例
Example ASR usage response.
{
  "account": {
    "user_id": "EXAMPLE_ACCOUNT",
    "status": "EXAMPLE_STATUS",
    "expire_at": "2030-01-01T00:00:00Z",
    "qps": 1
  },
  "period": {
    "start": "2026/10/13",
    "end": "2026/10/13"
  },
  "usage": {
    "content_detection": 0,
    "echo_v1": 0,
    "echo_v1_realtime": 0,
    "echo_v2_medical": 0,
    "hotwords": 0,
    "lexis_v1": 0,
    "usage_quota": null,
    "used_minutes": 0,
    "echo_v2": 0,
    "echo_v2_realtime": 0
  }
}
上一页
Create a file transcription
下一页
Your custom brand voice
Built with