Skip to content
VoiceMint Developers

Upload Audio Sample

POST/voice-cloning/upload-sample

Upload audio sample for voice cloning. Supports both Instant (1-5 min) and Professional (30min-3hrs) voice cloning.

Authentication

Authorization: Bearer vm_sk_… with the media.write permission (or all.write). See Authentication.

Request body

multipart/form-data

FieldTypeDescription
file*file

Response

200 application/json

FieldTypeDescription
channels*integer
duration*number
filename*string
format*string
id*string
languagestring
noise_level*number
quality_score*number
sample_rate*integer
size_bytes*integer
speech_clarity*number
transcriptionstring
uploaded_at*string
{
  "channels": 0,
  "duration": 0,
  "filename": "string",
  "format": "string",
  "id": "string",
  "noise_level": 0,
  "quality_score": 0,
  "sample_rate": 0,
  "size_bytes": 0,
  "speech_clarity": 0,
  "uploaded_at": "2026-12-05T10:00:00Z"
}

Errors

401Missing, wrong, revoked or expired key.
403The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client.
402Not enough credits, or the key reached its spending cap.
422The request failed validation; `detail` lists the fields.
429Over a rate limit; retry after `Retry-After` seconds.

All statuses: Errors.

Example

curl -X POST "https://api.voicemint.io/api/v1/voice-cloning/upload-sample" \
  -H "Authorization: Bearer $VOICEMINT_API_KEY" \
  -F "file=@./file"