1. Usage and request history
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
          GET
        • Look up a request by ID
          GET
        • Get usage by voice
          GET
      • 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
      • Get ASR usage
  • 企业客户声音定制服务
    • Your custom brand voice
  1. Usage and request history

Get master key usage

GET
https://api.voicelibrary.co/enterprise/v1/user/usage

Character usage for the master key#

Get aggregate usage for a master API key and its sub-keys over a date range. Endpoint:
GET https://api.voicelibrary.co/enterprise/v1/user/usage
Authenticate with the api-key header. Set start_date and end_date using YYYY-MM-DD. When omitted, the default is the current month. Read the applied range from start_date and end_date in the response.
Request model_idCharacter usage field
myvocal_v3tts.v3_chars
myvocal_v4tts.v4_chars
myvocal_v3_turbotts.v3_turbo_chars
All TTS models combinedtts.total_chars
Character usage is an integer. For HTTP and multi-context dialogue, read the corresponding model’s usage field.
Use the character counts returned by the endpoint.
If present, tts.quota_limit is the TTS allowance. ivc and pvc refer to voice cloning usage and allowances. Exclude them from TTS character totals. The response below is illustrative.

请求参数

Query 参数

Header 参数

返回响应

🟢200usage
application/json
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://api.voicelibrary.co/enterprise/v1/user/usage?start_date=2026-10-15&end_date=2026-10-15' \
--header 'api-key: YOUR_API_KEY' \
--header 'Content-Type: text/plain' \
--data ''
响应示例响应示例
{
    "user_id": "string",
    "start_date": "string",
    "end_date": "string",
    "expire_at": "string",
    "status": "string",
    "shared_concurrency": 0,
    "dedicated_concurrency": 0,
    "tts": {
        "turbo_chars": 0,
        "v2_chars": 0,
        "v3_chars": 0,
        "v4_chars": 0,
        "v3_turbo_chars": 0,
        "skyblight_chars": 0,
        "total_chars": 0,
        "quota_limit": 0
    },
    "ivc": {
        "total_used": 0,
        "quota_limit": 0
    },
    "pvc": {
        "total_used": 0,
        "quota_limit": 0
    }
}
上一页
Usage and request history
下一页
Look up a request by ID
Built with