Audio modelsAPI referenceVoicesUse a preset voice

Use a preset voice

Return the voice asset for a preset voice in your account, which generation requests can reference through voice_asset_id. Repeated calls for the same preset version return the same voice asset at no charge.

Authentication

API Key: X-API-Key: <API Key> or Authorization: Bearer <API Key>.

Credentials in the examples are placeholders. Replace them and run the examples on your server.

Code examples

curl -X POST 'https://shixux.com/api/voice-presets/preset_id_example/use' \  -H 'X-API-Key: yb_xxx_yyy'
{  "id": "example",  "display_name": "example",  "original_filename": "example",  "size_bytes": 1,  "uploaded_at": "2026-10-06T10:00:00Z",  "retained_until": "2026-10-06T10:00:00Z"}

Path Parameters

preset_id*string
Match^vp_[a-f0-9]{24}$

Response Body

Voice ready to use

application/json
  1. response
id*Id
display_name*Display Name
original_filename*string|null
size_bytes*|

Size of the voice file in bytes.

uploaded_at*Uploaded At
Formatdate-time
retained_until*|

When the asset or result file stops being retained. Request a new download URL after one expires.

permanent?boolean
source?string
Value in"uploaded""designed""preset"
preset_id?string

ID of the preset voice this voice comes from. Omitted for voices that do not come from a preset.

description?string
duration_seconds?number

On this page