Fish Audio MCP
Synthesize speech, manage sound, and query audio tasks in the AI Agent through MCP.
Turn text into natural-sounding speech with Fish Audio. Select s1, s2-pro, or s2.1-pro via the request header, reuse public voices, or create your own voice from authorized recordings.
From text-to-speech to voice cloning, one API covers the entire speech synthesis workflow.
Use text to submit the text to synthesize. Select s1, s2-pro, or s2.1-pro using the model request header; if omitted, s2-pro is used.
Pass reference_id to reuse an existing voice, or use references[].audio + text to clone one instantly in a single request—making the synthesized voice resemble the specified speaker.
Use GET /fish/model to search public voices, filter by language, tag, or title, and use the resulting _id as the reference_id.
For short text, synchronous requests return audio_url and the request's cost directly; for long text, pass callback_url to receive a task_id immediately. Both cost in the callback and response.cost in the final task state contain the actual billed amount.
Submit text to synthesize speech, with MP3 output by default. A successful synchronous request returns an audio_url for playback or download and the actual billing information in cost.
curl -X POST https://api.acedata.cloud/fish/tts \
-H "authorization: Bearer YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{
"text": "今天天气真好,我们一起出去散散步吧。",
"format": "mp3"
}'The following excerpt from the existing API guide shows the fields used to read the result. The sample model, task ID, and media content come from that historical example; use the actual values returned by your request.
{
"audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3"
}
From obtaining a token to getting audio, it only takes a few minutes.
Go to the application list, open General Application, and click the copy button to the right of API KEY. Store the key on your server and use it to replace YOUR_API_KEY in the example.
Call POST /fish/tts with text and optionally set format to mp3, wav, or pcm.
The synchronous response returns audio_url and cost for direct playback and billing based on actual Credits; for long text, read cost from the callback and final Tasks result.
From audio content to in-app speech, it covers most speech synthesis needs.
Convert articles and manuscripts into natural-sounding speech in batches, using s1 to reliably process long texts.
Generate narration for short videos, tutorials, and explainers, using prosody to adjust speed and volume.
Dynamically generate prompts and scripts, using a consistent voice to maintain brand voice consistency.
Provide read-aloud capabilities for web pages and documents, outputting pcm for real-time concatenation and playback on the client.
Use voice cloning to create unique voices for characters and quickly generate large volumes of dialogue.
Synthesize scripts into speech in real time for digital human presentations and virtual host livestreams.
Specify a model directly for synthesis, or call the voice API to save and retrieve voices.
Submit text to synthesize speech, with support for mp3, wav and pcm, use prosody to adjust speed and volume, and sample_rate to specify the sample rate.
Clone a new voice using reference audio, retrieve public voices, or look up details of a single voice by _id—the resulting _id can be used directly as reference_id.
Pay for what you use, no subscription fees, no hidden fees.
Voice search (GET /fish/model) is free
TTS is billed by the number of UTF-8 bytes in the synthesized text; voice creation and lookup are free.
Tailored plans for high-volume teams
Common questions about using the Fish Audio API
TTS is billed by the number of UTF-8 bytes in the synthesized text; Chinese characters typically occupy multiple bytes. All three models use the same rate. See Fish Audio pricing for the current rate. Creating, retrieving, and querying voices is free.
Use format to select mp3, wav, or pcm. The default is mp3. mp3_bitrate applies only to MP3. Both wav and pcm return a WAV container.
There are two options: pass reference_id to reuse an existing voice (retrieve an _id from the public library using GET /fish/model, or clone your own voice using POST /fish/model); or use references[].audio + text to clone a voice on the fly in a single request. Choose one of the two.
Use the model request header to select s1, s2-pro, or s2.1-pro. You can start with the default s2-pro and compare the models using the same text and voice.
Synthesizing long text in one request may take from over ten seconds to tens of seconds. Pass callback_url in the request body, and the API will immediately return {task_id, started_at}, then POST the result to that URL when complete; you can also use the Fish Tasks API to retrieve the result by task_id.
audio_url points to the platform's CDN and can be played or downloaded directly. The file extension follows the output format; saving important results to your own storage is still recommended.
Ace Data Cloud offers a range of AI audio and music generation APIs
Generate speech from text and preview public voices or your own authorized voices.