Voice cloning

fish-audio-clone

Instant voice cloning from a single reference clip. $20 per million characters.

The call is Pascal’s. Send Authorization: Bearer with a Pascal key, and Pascal’s body: model, the file or the text, and params. Inside params, a Pascal name and the provider’s own name are both accepted. If both are sent and they disagree, the request is rejected. The provider’s SDK and host are not this API. The API request fee is not charged. A studio call needs a Creator plan or an API balance.

Native waveform: 24 kHz mono WAV. One reference clip or a saved voice_id.. Live price and availability are on GET /v1/models/fish-audio-clone.

  • reference_text is optional.
  • Pass voice_id to reuse a previously cloned voice without re-uploading audio.

Parameters

FieldTypeDescription
params.voice_idstringOptional existing cloned voice model ID. When set, the uploaded reference clip is not re-trained.
params.speed
Default 1.0
numberSpeech rate multiplier from 0.5 to 2.0.
params.output_format
Default wav (flac for stems)
stringwav, flac, mp3, or model (the model native file).
params.output_sample_rate
Default source
string or integersource keeps the upload (or the model rate when there is no upload). model uses the model native rate. Or pass 8000, 16000, 22050, 24000, 32000, 44100, or 48000.
params.output_channels
Default source
stringsource, model, mono, or stereo. Applied after inference, not before.

Example

curl https://api.pascalai.co/v1/voice-cloning \
  -H "Authorization: Bearer $PASCAL_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F model=fish-audio-clone \
  -F text="Keep walking toward the river." \
  -F params='{"output_format":"wav","output_sample_rate":"source","output_channels":"source"}' \
  -F file=@voice.wav

curl https://api.pascalai.co/v1/voice-cloning/$JOB_ID \
  -H "Authorization: Bearer $PASCAL_API_KEY"