Voice cloning

gemini-3.8-flash-clone

Instant zero-shot voice replication. Billed by tokens: $0.15 in ยท $12.00 out / 1M tokens (appx $10.00 / 1M characters, 0.010 credits/char). $0 request fee.

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

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

Parameters

FieldTypeDescription
params.voice_idstringOptional existing saved voice model ID. When set, the uploaded reference clip is reused without re-uploading.
params.language
Default auto
stringLanguage tag (auto, en-US, hi-IN, fr-FR, es-ES, de-DE, ja-JP, zh-CN).
params.speed
Default 1.0
numberSpeech rate multiplier from 0.5 to 2.0.
params.pitch
Default 0.0
numberPitch adjustment in semitones (-20.0 to 20.0).
params.style_promptstringOptional vocal style or emotion modifier (e.g. warm and conversational, energetic narrator).
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=gemini-3.8-flash-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"