Endpoint
GET https://api.stepfun.ai/v1/audio/voices
Request parameters
All parameters are query parameters.-
limitintegeroptional
Page size. Default 20, min 1, max 100. A value outside this range returns400. -
orderstringoptional
Sort order by creation time,ascordesc(default).
asc: older voices first
desc: newer voices first -
beforestringoptional
Cursor voice ID. Returns the page of voices that precede this ID in the current sort order. -
afterstringoptional
Cursor voice ID. Returns the page of voices that follow this ID in the current sort order.
before / after must be a voice ID that belongs to your account; otherwise the request fails with 400 voice ... not found or does not belong to this user. Combine a cursor with limit and order to page through results, and use last_id from the previous response as the next after value.Response
-
objectstring
Alwayslist. -
dataarray
Voice entries:idstring
Voice ID for audio generation.file_idstring
Source audio File ID used for cloning.created_atinteger
Creation time, as a Unix timestamp in seconds.
-
has_moreboolean
Whether more pages exist. -
first_idstring
ID of the first voice in the page. -
last_idstring
ID of the last voice in the page.
The response does not indicate which model a voice was cloned with. Keep track of the model you used when creating each voice — see Clone a voice.
Example
- curl
- python
Pagination example
Request the oldest voice first, then uselast_id as the cursor for the next page.