Skip to main content
Use this API to query the cloned voices under the current account. For the built-in system voices, see Get system voices.

Endpoint

GET https://api.stepfun.ai/v1/audio/voices

Request parameters

All parameters are query parameters.
  • limit integer optional
    Page size. Default 20, min 1, max 100. A value outside this range returns 400.
  • order string optional
    Sort order by creation time, asc or desc (default).
    asc: older voices first
    desc: newer voices first
  • before string optional
    Cursor voice ID. Returns the page of voices that precede this ID in the current sort order.
  • after string optional
    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

  • object string
    Always list.
  • data array
    Voice entries:
    • id string
      Voice ID for audio generation.
    • file_id string
      Source audio File ID used for cloning.
    • created_at integer
      Creation time, as a Unix timestamp in seconds.
  • has_more boolean
    Whether more pages exist.
  • first_id string
    ID of the first voice in the page.
  • last_id string
    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

Response

Pagination example

Request the oldest voice first, then use last_id as the cursor for the next page.