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

Look up a request by ID

GET
https://api.voicelibrary.co/enterprise/v1/tts/requests

Look up a TTS request#

Use a request ID to retrieve a TTS request’s status, effective settings and timing for troubleshooting or latency analysis.

Response Structure#

A successful response has HTTP status 200 and the following JSON structure:
{
  "request_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "created_at": "2026-01-20T11:39:02+08:00",
  "status_code": 200,
  "model_id": "flash_v2_5",
  "first_packet_latency_ms": 277,
  "tts_latency_ms": 0,
  "total_duration_ms": 327,
  "request_params": {
    "format": "mp3_44100_64",
    "language_code": "",
    "model_id": "flash_v2_5",
    "quality": "0",
    "text_length": 20,
    "voice_uid": "771e***************e852"
  }
}

Top-Level Fields#

FieldTypeDescription
request_idstringUnique request identifier for tracing and troubleshooting
created_atstring (ISO 8601)Time the server generated the response, including the time zone
status_codeintegerHTTP status code. 200 indicates success.
model_idstringTTS model actually used
first_packet_latency_msintegerTime to first audio (ms). From receipt of the request by the server to return of the first audio data.
tts_latency_msintegerSynthesis time (ms). May be unavailable for some modes and may return 0.
total_duration_msintegerEnd-to-end time (ms). Covers the entire request lifecycle.

Interpreting latency#

first_packet_latency_ms#

The principal metric for responsiveness in live applications.
Approximates how long a listener waits for the first sound. The server metric is measured up to the first audio data.
Lower values indicate a faster initial response.

tts_latency_ms#

Time spent in synthesis, in milliseconds.
Some requests do not report this component and may return 0. This alone does not indicate failure.

total_duration_ms#

Total end-to-end elapsed time.
Usually satisfies:
total_duration_ms ≥ first_packet_latency_ms
Use this as the overall reference for performance evaluation.

request_params: effective settings#

request_params lists the settings actually applied to this request.
FieldTypeDescription
formatstringOutput audio format, for example mp3_44100_64
language_codestringLanguage code. An empty string "" indicates automatic selection or the default language policy.
model_idstringModel ID used for this request
qualitystringSynthesis quality level as a string enum, for example "0"
text_lengthintegerInput text length
voice_uidstringVoice ID
request_params reports the server’s effective settings. They may differ from the input sent by the client.

Reading the example#

In the example above:
The input text length is 20.
First audio arrived after 277ms, illustrating a low-latency response.
End-to-end time was 327ms.
tts_latency_ms = 0 means the example does not report a separate synthesis time. The request succeeded.

Troubleshooting & Support#

For errors or performance issues, include the following information in your support request:
request_id
created_at
status_code
model_id
first_packet_latency_ms
tts_latency_ms
total_duration_ms
request_params
These details help support identify the request and investigate its performance.

请求参数

Query 参数

返回响应

🟢200Success
application/json
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://api.voicelibrary.co/enterprise/v1/tts/requests?request_id=undefined&api_key=undefined'
响应示例响应示例
{
    "request_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "created_at": "2026-01-20T11:39:02+08:00",
    "status_code": 200,
    "model_id": "flash_v2_5",
    "first_packet_latency_ms": 277,
    "tts_latency_ms": 0,
    "total_duration_ms": 327,
    "request_params": {
        "format": "mp3_44100_64",
        "language_code": "",
        "model_id": "flash_v2_5",
        "quality": "0",
        "text_length": 20,
        "voice_uid": "771e***************e852"
    }
}
上一页
Get master key usage
下一页
Get usage by voice
Built with