Fish Model Create API Integration Guide

This API is based on the official Fish Audio Model API and is used to create a cloned voice model that can be reused long-term from an audio sample. The endpoint is POST https://api.acedata.cloud/fish/model.

If you only need to use a reference voice temporarily, there is no need to create a model; you can directly use references in the Fish TTS API for one-time instant cloning. For paginated searches of existing voices, refer to the Fish Model Query API; to query the details of a single voice by _id, refer to the Fish Model Get API.

Application Process

To use the Fish Model API, first go to the Ace Data Cloud Console to obtain your API Token for later use.

If you have not yet logged in or registered, you will be automatically redirected to the login page to register and log in, and automatically returned to the current page afterward.

A general application's API Key can be used for services enabled for the account; a dedicated application's Key can be used within the scope of that application's services. Please check the Key's permissions, validity period, and limits, and confirm that the application balance is sufficient to pay for this request. Available trial credits are subject to what is displayed in your account; if the balance is insufficient, click the "Recharge" button.

📘 Full documentation: Fish Model API →

Request Body Fields

Field Type Required Description
title string Yes Voice name, used to identify it in the console list.
voices string Yes HTTP(S) URL of the audio sample (a single string, not an array). This API does not support multipart/binary uploads; first place the audio in any publicly accessible object storage.
description string No Voice description.
cover_image string No HTTP(S) URL of the cover image.
tags string[] No Search tags for the public library, such as ["male","narration","zh"].
texts string[] No Reference texts corresponding to the sample (used to correct pronunciation).
enhance_audio_quality boolean No Whether to enhance the sample's audio quality before training.
generate_sample boolean No Whether to automatically generate a sample audio clip after training is complete.

For more information about voice models, refer to the official Fish documentation.

Created voices are saved publicly for long-term use, and other users may search for and use them. There is no need to pass visibility; even if private or unlist is passed, the current API will not change the visibility accordingly.

Example: Create a Public Cloned Voice

curl -X POST 'https://api.acedata.cloud/fish/model' \
  -H 'authorization: Bearer {token}' \
  -H 'content-type: application/json' \
  -d '{
    "title": "我的克隆音色",
    "description": "用一段播客录音克隆的中文音色",
    "voices": "https://example.com/sample-voice.mp3",
    "cover_image": "https://cdn.acedata.cloud/e724d7f13d.png"
  }'

Note: voices must be a string (a single audio URL), not an array. Passing ["..."] is not supported. A publicly downloadable direct link with an .mp3 or .wav extension is recommended.

A successful response directly returns a Fish platform ModelEntity object (the example below is a minimal usable voice we tested, with some long fields omitted for readability):

{
  "_id": "e5c6db52c3ed417f9cb2e5a33fb04667",
  "type": "tts",
  "title": "copilot-smoke-test",
  "description": "smoke test from api.acedata.cloud",
  "cover_image": "coverimage/e5c6db52c3ed417f9cb2e5a33fb04667",
  "train_mode": "fast",
  "state": "trained",
  "tags": [],
  "samples": [
    {
      "title": "Default Sample",
      "text": "师父,[语气坚定]我真的受够了这山上的清冷日子!...",
      "task_id": "6a1bf398dfae49dca0e23159214342a0",
      "audio": "https://platform.r2.fish.audio/task/6a1bf398dfae49dca0e23159214342a0.mp3"
    }
  ],
  "created_at": "2026-05-10T03:52:55.601000Z",
  "updated_at": "2026-05-10T03:52:55.601000Z",
  "languages": ["zh"],
  "visibility": "public",
  "default_text": "师父,[语气坚定]我真的受够了这山上的清冷日子!...",
  "like_count": 0,
  "mark_count": 0,
  "shared_count": 0,
  "task_count": 0,
  "author": {
    "_id": "780f2b2f862d41a08c0507bbbda77eb6",
    "nickname": "Penny Conrad",
    "avatar": "avatars/780f2b2f862d41a08c0507bbbda77eb6.jpg"
  }
}

The _id can be used as the value of the reference_id field in subsequent Fish TTS API calls to synthesize speech using the cloned voice:

Successfully created voices are saved publicly. You can use self=true in the Fish Model Query API to query voices created through this platform by the current calling user. self=true only filters the list; it does not prevent other users from using the voice.

curl -X POST 'https://api.acedata.cloud/fish/tts' \
  -H 'authorization: Bearer {token}' \
  -H 'content-type: application/json' \
  -d '{
    "text": "你好,这是一段使用我刚创建的克隆音色合成的语音。",
    "reference_id": "e5c6db52c3ed417f9cb2e5a33fb04667",
    "format": "mp3"
  }'

Sample Requirements

Recommendations (see the official Fish documentation for details):

  • A duration of over 30 seconds is recommended, with the best results within 5 minutes; beyond 10 minutes, the marginal benefit is small.
  • A sample rate of 16 kHz or higher; mono or stereo is acceptable.
  • Keep the content as clean as possible: no background music, echo, or noticeable environmental noise; use the same speaker.
  • Recommended formats: mp3 / wav.

If you are unsure about the sample quality, you can also pass enhance_audio_quality: true to enable audio quality enhancement.

Billing Information

Creating a voice cloning model (POST /fish/model) is free of charge; the voice query APIs (Fish Model Query, Fish Model Get) are also free of charge. Charges only arise based on usage when subsequently calling Fish TTS to synthesize speech.

Error Handling

  • 400 token_mismatched: Request parameters are missing or invalid (most commonly, voices is not a URL or was passed as an array).
  • 400: The reference audio cannot be downloaded, is too short, or has an unrecognized format; check the audio URL and file format.
  • 401 invalid_token: The authentication token does not exist or is invalid.
  • 429 too_many_requests: The account rate limit has been reached.
  • 500 api_error: Internal server error.

Example error response:

{
  "success": false,
  "error": {
    "code": "api_error",
    "message": "voices is required and must be an HTTP(S) URL pointing to an audio file"
  },
  "trace_id": "2cf86e86-22a4-46e1-ac2f-032c0f2a4e89"
}

Conclusion

To call this API, you only need to prepare a publicly accessible sample audio URL and put it in the voices field to obtain an _id. Then pass it to the reference_id field of /fish/tts to complete the end-to-end “cloning → synthesis” process. A common pitfall is that voices must be a string, not an array.

Create and Reuse Voices Through MCP

In Fish MCP, call fish_create_model(title="我的音色", voices="https://example.com/authorized-voice.wav"). voices is a single HTTP(S) audio URL; you can also pass description, cover_image, tags, texts, enhance_audio_quality, and generate_sample.

This tool saves voices publicly for long-term use, and other users may discover and use them; please use only audio material that you are authorized to process and make public. The tool has no private or unlisted option. The _id returned upon successful creation is used for the reference_id of fish_generate_audio, and fish_list_models(self=true) can be used to query your own saved voices. If you only need a reference voice for one-time use, use references in fish_generate_audio; there is no need to create a long-term voice.