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
      • Get ASR usage
  • 企业客户声音定制服务
    • Your custom brand voice
  1. API reference

Sub-key management

Use sub-keys to separate services, assign permissions and track usage. Create a sub-key, then configure its permissions and expiry. These management endpoints use the master account’s api-key.
This section covers creating, managing and looking up sub-keys for different services, access scopes and usage reports.
1. Sub-key basics
What is a sub-key?
A sub-key belongs to the master account and can have its own permissions and expiry. Use it to:
1.
Identify calls from different services.
2.
Limit a service to the permissions it needs.
3.
Track usage by project or team.
4.
Keep control of all sub-keys with the master account.
2. Endpoints and data model
Endpoint URL:
Calling the endpoints
PurposeMethodPath
Create a sub-keyPOST/sub_keys
List sub-keysGET/sub_keys
Get sub-key detailsGET/sub_keys/{sub_api_key}
Update a sub-keyPATCH/sub_keys/{sub_api_key}
Delete a sub-keyDELETE/sub_keys/{sub_api_key}
Get sub-key usageGET/sub_keys/{sub_api_key}/usage
Common header
Include the master account’s api-key with every request.

Disclaimer#

For privacy, data minimization and compliance reasons, MyVocal does not provide rollback, undo or recovery for user operations.
Operations submitted with an API key or sub-key are treated as the user’s authentic, valid and final instructions.
Once executed, the resulting changes are permanent and cannot be reversed or recovered.
MyVocal assumes no liability for circumstances including the following:
Accidental deletion of a voice (Voice_id).
Incorrect permissions or excessive privileges granted by the user.
Losses arising from key exposure, sharing or mishandling.
Irreversible actions caused by the user’s business logic or system errors.
Before using the service, users should assess and assume the associated technical and business risks.
上一页
Get usage by voice
下一页
Create a sub-key
Built with