elevenlabs / elevenlabs-docs

Documentation for elevenlabs.io/docs
https://elevenlabs.io/docs
64 stars 276 forks source link

Issue on docs: accurately calculating characters usage for sound effects via /v1/sound-generation #316

Open clifflee365 opened 3 months ago

clifflee365 commented 3 months ago

Path: /api-reference/sound-generation

First, thank you for your great work, making many previously impossible things possible. I am using the API to build an interesting dream application.

I want to know how to accurately calculate the characters used to generate sound effects via /v1/sound-generation.

There are three issues:

On https://elevenlabs.io/app/sound-effects/history, I can see that the most recent sound effect was generated on 2024-07-12.

image
  1. Using /v1/usage/character-stats, I cannot find the character information for sound generation.

  2. /v1/history also does not provide records of sound effects generation, only showing the text-to-speech history from as early as 2024-03-13.

  3. On the webpage https://elevenlabs.io/app/sound-effects/history, I see a v1/sound-generation/history API from the network (not documented), but the returned information does not include character records. image

So, do I have to calculate the character usage for sound generation based on the duration of the generated sound using the following rules?

API pricing The API is charged at 100 characters per generation with automatic duration or 25 characters per second with a set duration.