Dža ko lil

Elevenlabs Music

Integriruj

Modelosko id elevenlabs/music
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/elevenlabs/music?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Fajlo sar o misalo: $1.80 1,800 API krediti tire fajlo si merime angl-o phiripen Phir les kate

Lel API klidin
ElevenLabs Teksto ko Muzika #music#text-to-music

Tekstosko-muzikako keripe vodime promptosa vaj strukturime kompozicijake planosa, instrumentalno opcijasa

ElevenLabs · Audio

Tiro prvo rezultato si kate

Ker tele jekh mangipen thaj phir les tire API klidinosa. E rezultatur si kopirime amare arakhipneste, vično vaj 7 dives bilačhes.

Ker jekh mangipen

O kontrolura kerde si katar e schemaske. O kodo thaj e cena menjinen sar tu len menjines.

88 / 4100

Tekstoski deskripcija e manglini muzikaki.

Opcionalo giliaki durata ande milliseconds, 3000 ms dži 600000 ms, numa kana upotreblime promptos. Kana na deldi, e modelo ginavel e duratasa andar promptos.

Lučhe output_format · force_instrumental · respect_sections_durations · composition_plan
standardno mp3_44100_128

Audio rezultatosko formato, phandlo tieroske mangipnenca: 192 kbps MP3 mangel Creator tier vaj učeder, thaj 44.1 kHz PCM mangel Pro tier vaj učeder. Vrednosti džan pal `codec_sample_rate_bitrate`; `mp3_22050_32`, sar example, phenel 22.05 kHz MP3 pe 32 kbs. Vaš Twilio audio inputo, μ-law si butivar upotreblime; ada formato si lildo vi mu-law vaj približime sar u-law.

Plano savo vakeren e muzikaki kompozicija.

POST /run/elevenlabs/music?wait=20 hesab → $1.80
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/elevenlabs/music?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Phandel kava mangipen

Tiro kluč ačhel kadale browsereste: bičhalel pes numa ko Doitong API thaj šuvav pes (localStorage) numa te tiknes Remember. Le jekh API ključ

Palal Elevenlabs Music

Kerel muzika katar jekh tekst `prompt` dži ko 4100 karakterura, vaj katar jekh detalno `composition_plan`. Le promptesa, `music_length_ms` šaj te avel maškar 3000 thaj 600000 milliseconds, thaj `force_instrumental` biztosinel kaj na aven vokala. `respect_sections_durations` kontrolirinel sar zorales si te oven čačikane o vaxtoske dromura ande planeskere sekcije. But kodek thaj sample-rate opcije si dostupne katar `output_format`.

Parametra

NavTip standardnoMuklo Vakeripe
promptopcionalno
Tipstring | null
≤ 4,100 simbolura
Tekstoski deskripcija e manglini muzikaki.
composition_planopcionalno
Tipobject
Plano savo vakeren e muzikaki kompozicija.
composition_plan.positive_global_stylestrubul
Tipstring[]
Stilura vaš sa gili.
composition_plan.negative_global_stylestrubul
Tipstring[]
Stilura save trubul te aven avri andar sa gili.
composition_plan.sectionstrubul
Tipobject[]
Sekcije save kerena e gili.
composition_plan.sections[].section_nametrubul
Tipstring
1 – 100 characters
Sekciako nav, baro 1 dži 100 karaktera.
composition_plan.sections[].positive_local_stylestrubul
Tipstring[]
Stilura vaš ada sekcija.
composition_plan.sections[].negative_local_stylestrubul
Tipstring[]
Stilura save trubul te aven avri andar ada sekcija.
composition_plan.sections[].duration_mstrubul
Tipinteger
3,000 – 120,000
Sekciaki durata ande milliseconds, 3000 ms dži 120000 ms.
composition_plan.sections[].linestrubul
Tipstring[]
Giliake lava vaš ada sekcija, limitime pe 200 karaktera pe riga.
music_length_msopcionalno
Tipinteger | null
3,000 – 600,000
Opcionalo giliaki durata ande milliseconds, 3000 ms dži 600000 ms, numa kana upotreblime promptos. Kana na deldi, e modelo ginavel e duratasa andar promptos.
force_instrumentalopcionalno
Tipboolean
standardnofalse
Instrumental-only kontrola, numa kana upotreblime promptos. Thov les pe true te garantinel instrumental rezultato; false mukel instrumental vaj na-instrumental muzika, sar phenel e promptos.
respect_sections_durationsopcionalno
Tipboolean
standardnotrue
Sekciaki timingoski zor vaš `composition_plan`, bi-efektos avri katar plano. False mukel e modelo te averarel jekh-jekh sekciaki durata, savorestar feder kvaliteta thaj latency bi te avel aver e giliaki totalo durata; true zorarel sa sekciaki `duration_ms` exactno.
output_formatopcionalno
Tipenum
standardnomp3_44100_128
mp3_22050_32mp3_44100_32mp3_44100_64mp3_44100_96mp3_44100_128mp3_44100_192pcm_8000pcm_16000pcm_22050pcm_24000pcm_44100pcm_48000ulaw_8000alaw_8000opus_48000_32opus_48000_64
+3 averopus_48000_96opus_48000_128opus_48000_192
Audio rezultatosko formato, phandlo tieroske mangipnenca: 192 kbps MP3 mangel Creator tier vaj učeder, thaj 44.1 kHz PCM mangel Pro tier vaj učeder. Vrednosti džan pal `codec_sample_rate_bitrate`; `mp3_22050_32`, sar example, phenel 22.05 kHz MP3 pe 32 kbs. Vaš Twilio audio inputo, μ-law si butivar upotreblime; ada formato si lildo vi mu-law vaj približime sar u-law.
trubul

Rezultato

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "elevenlabs/music",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 1800,
    "usd": "1.80",
    "charged": 1800,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Tire fajlura, tiro alosaripenSako outputs[].url si kopija amare arakhipneste: vično (čargeime per GB-mase) vaj 7 dives bilačhes, tiro kontoskere regulaciatar vaj ?storage=.
Sa jekh forma sako modeloθartype, url, content_type, width, height thaj duration, varesave imajinake, video thaj audio-ke. output si o modelosko korkoro resultosko objekto.
Outputoske fieldura
audio
object {url, content_type, file_name, file_size}Generime muzikako fajlo enkodime sar MP3 audio.

Bute modeli: Teksto ko Muzika

AI agentenge: kadija rig sar Markdown si kate https://doitong.com/rom/developers/models/elevenlabs/music.md. Sa e modelura thaj e gidura: https://doitong.com/developers/llms.txt