apicheats.dev elevenlabs/llms.txt Raw .md
POST

/v1/audio-native/{project_id}/content

ElevenLabs API

Update Audio-Native Project Content

Base URL
https://api.elevenlabs.io
Auth
xi-api-key: <ELEVENLABS_API_KEY>
Last verified
2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 215 tokens · Vary: Accept

Critical gotchas

Authentication uses the non-standard xi-api-key header, not Authorization: Bearer. Sending a Bearer token returns HTTP 401.

Text-to-speech responses are raw binary audio, not JSON. Write the body to a file (--output speech.mp3) rather than parsing it.

cURL

curl -X POST 'https://api.elevenlabs.io/v1/audio-native/project-id/content' \  -H "xi-api-key: $ELEVENLABS_API_KEY" \  -F 'file=@sample.bin' \  -F 'auto_convert=false' \  -F 'auto_publish=false'
Get a free ElevenLabs API key → sponsored

Parameters

Name In Type Required Description
project_id path string Yes The ID of the Studio project.
file body string No Either txt or HTML input file containing the article content. HTML should be formatted as follows '&lt;html&gt;&lt;body&gt;&lt;div&gt;&lt;p&gt;Your content&lt;/p&gt;&lt;h5&gt;More of your content&lt;/h5&gt;&lt;p&gt;Some more of your content&lt;/p&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;'
auto_convert body boolean No Whether to auto convert the project to audio or not.
auto_publish body boolean No Whether to auto publish the new project snapshot after it's converted.

Response 200 OK

{
  "converting": false,
  "html_snippet": "<div id='audio-native-player'></div>",
  "project_id": "JBFqnCBsd6RMkjVDRZzb",
  "publishing": false
}