#I’ve subscribed to the Creator plan and I’m trying to upload my own voice via the API, but I’m runn

1 messages · Page 1 of 1 (latest)

balmy lavaBOT
#
AI-generated Answer for swiftcode_studio

You’re hitting the IVC “create voice” endpoint without actually attaching any audio files. The POST /v1/voices/add API requires multipart/form-data with at least one file in the files field; otherwise it returns a 400 like yours (“no_samples_uploaded”). (elevenlabs.io)

How to fix

  • Send a multipart form with both name and one or more files fields (repeat files for multiple samples). Example:
    curl -X POST https://api.elevenlabs.io/v1/voices/add
    -H "xi-api-key: YOUR_API_KEY"
    -H "Content-Type: multipart/form-data"
    -F 'name=My IVC Voice'
    -F 'files=@sample1.mp3'
    -F 'files=@sample2.mp3'
    This satisfies the required files parameter. (elevenlabs.io)

  • If you already created the voice and just want to add more samples, use POST /v1/voices/{voice_id}/edit with multipart/form-data and include files the same way. (elevenlabs.io)

Input guidelines (to avoid other quality issues)

  • Provide about 1–2 minutes total of clean, consistent audio for Instant Voice Cloning. (elevenlabs.io)
  • Preferred file type/quality: MP3 at 192 kbps or higher. (help.elevenlabs.io)

Note: On the Creator plan you can use both Instant Voice Cloning and Professional Voice Cloning; the error you’re seeing is specific to IVC when no files are attached. (help.elevenlabs.io)

If you still get a 400 after attaching files, double‑check that:

  • The request is multipart/form-data and the file field name is exactly files. (elevenlabs.io)

That’s it—attach at least one audio file in the files field and the request should succeed. (elevenlabs.io)

Sources:
Create IVC voice | ElevenLabs Documentation
Create IVC voice | ElevenLabs Documentation
Edit voice | ElevenLabs Documentation
Instant Voice Cloning | ElevenLabs Documentation
What files do you accept for voice cloning? – ElevenLabs
What is My Voices? – ElevenLabs
Create IVC voice | ElevenLabs Documentation
Create IVC voice | ElevenLabs Documentation

radiant dragon