Fish Audios Generation API
POSThttps://api.acedata.cloud/fish/audios

Fish AI voice cloning and audio generation API.

Request Headers

acceptstring
Specify the format of the response returned by the server. If not specified, the default format is `application/json`.
Please select
authorizationstring
Bearer token

Request Body

actionstringRequired parameter
The type of operation performed, `speech` indicates text-to-speech synthesis.
promptstringRequired parameter
Input text content that needs to be synthesized into speech.
modelstring
The model used for executing voice synthesis, such as `fish-tts`.
Please select
voice_idstringRequired parameter
Specify the voice ID used for speech synthesis, which determines the voice used for the output audio.
callback_urlstring
The callback URL that will be called after the audio generation is completed must be accessible from the public network. If this parameter is specified, the interface will immediately return a response, and the generated result will be pushed to the callback address once it is ready.
asyncboolean
Whether to process in asynchronous mode. When set to `true`, the interface immediately returns `task_id`, without the need to provide `callback_url`, and then the result can be obtained by polling the corresponding task query interface; if `callback_url` is also provided, the result will be pushed to that callback address.
Please select

Response

Fish voice generation
Allow Use General Balance

When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.

Shell

Python

JavaScript

Java

Go

PHP

Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.