שפּרינגען צו אינהאַלט

Elevenlabs Sound Effects V2

אינטעגרירן

מאָדעל־id elevenlabs/sound-effects/v2
# 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/sound-effects/v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "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"

דער דאָזיקער ריקוועסט: ⁨$ 0.044⁩ 44 API־קרעדיטן לויפֿן עס אויף דער דאָזיקער בלאַט

באַקומען אַן API שליסל
ElevenLabs אַודיאָ 0.5–22 s #sound

שאַפֿט סאָונד־עפעקטן פֿון אַ טעקסט־באַשרײַבונג, מיט אָפּציאָנאַלן לופּ־מאָדוס און לענג־קאָנטראָל ביז 22 סעקונדעס

ElevenLabs · אַודיאָ

דאָ קומט אײַער ערשטער רעזולטאַט

בויט אונטן אַ בקשה און לויפט זי מיט אײַער API שליסל. רעזולטאַטן ווערן קאַפּירט צו אונדזער סטאָרידזש, געהאַלטן אויף אייביק אָדער 7 טעג אומזיסט.

בויען אַ בעטן

קאָנטראָלן ווערן דזשענערירט פֿון דעם מאָדעל־סכעמע. דער קאָד און דער פּרײַז דערהײַנטיקן זיך ווען איר ענדערט זיי.

•פארלאנגט 88 / 450

באַשרײַבונג פֿונעם קול־עפעקט וואָס זאָל געשאַפֿן ווערן.

קול־דויער אין סעקונדעס, פֿון 0.5 ביז 22. אויב None ווערט צוגעשטעלט, באַשטימט דער פּראָמפּט די אָפּטימאַלע לענג.

פֿאָרגעשריטן output_format · prompt_influence · loop
סטאַנדאַרט mp3_44100_128

פֿאָרמאַט פֿון גענערירטן אַודיאָ, ספּעציפֿיצירט לויטן codec_sample_rate_bitrate מוסטער.

סטאַנדאַרט 0.3

פּראָמפּט־אנהאַלט, פֿון 0 ביז 1; אַ העכערע ווערט פֿאַרמינערט וואַריאַציע.

POST /run/elevenlabs/sound-effects/v2?wait=20 פּרײַז → ⁨$ 0.044⁩
# 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/sound-effects/v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "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"

לויפֿן דעם ריקוועסט

אײַער key בלײַבט אין דעם בלעטערער: זי ווערט געשיקט נאָר צום Doitong API און אָפּגעהיט (localStorage) נאָר אויב איר טיקט אָן געדענקען. באַקומען אַן API שליסל

וועגן Elevenlabs Sound Effects V2

מאַכט פֿון אַ קורצער טעקסט־באַשרײַבונג (ביז 450 צייכנס) אַ סאָונד־עפֿעקט. שטעלט `duration_seconds` צווישן 0.5 און 22, אָדער לאָזט עס ליידיק כּדי דער מאָדעל זאָל אויסקלײַבן אַ לענג פֿונעם פּראָמפּט. `prompt_influence` לויפֿט פֿון 0 ביז 1, `loop` בעט אַ גלאַט איבערחזרנדיקן קלאַנג, און `output_format` אָפפערט MP3, PCM, mu-law, A-law און Opus אָפּציעס.

פּאַראַמעטערס

נאָמעןטיפּ סטאַנדאַרטערלויבט באַשרײַבונג
textפארלאנגט
טיפּstring
≤ 450 כאַראַקטערן
באַשרײַבונג פֿונעם קול־עפעקט וואָס זאָל געשאַפֿן ווערן.
duration_secondsאָפּציאָנעל
טיפּnumber | null
0.5 – 22
קול־דויער אין סעקונדעס, פֿון 0.5 ביז 22. אויב None ווערט צוגעשטעלט, באַשטימט דער פּראָמפּט די אָפּטימאַלע לענג.
prompt_influenceאָפּציאָנעל
טיפּnumber
סטאַנדאַרט0.3
0 – 1
פּראָמפּט־אנהאַלט, פֿון 0 ביז 1; אַ העכערע ווערט פֿאַרמינערט וואַריאַציע.
output_formatאָפּציאָנעל
טיפּenum
סטאַנדאַרטmp3_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 נאָךopus_48000_96opus_48000_128opus_48000_192
פֿאָרמאַט פֿון גענערירטן אַודיאָ, ספּעציפֿיצירט לויטן codec_sample_rate_bitrate מוסטער.
loopאָפּציאָנעל
טיפּboolean
סטאַנדאַרטfalse
קאָנטראָלירט צי דער גענערירטער קול־עפעקט שטיצט אַ גלאַטן לופּ.
פארלאנגט

אויסגאַבע

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "elevenlabs/sound-effects/v2",
  "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": 44,
    "usd": "0.044",
    "charged": 44,
    "refunded": 0
  },
  "input": {
    "text": "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"
  }
}
אייער טעקעס, אייער ברירהיעדער outputs[].url איז אַ קאַפּיע אין אונדזער סטאָרידזש: געהאַלטן אויף אייביק (באַצאָלט פּער GB־חודש) אָדער 7 טעג אומזיסט, לויט אײַער חשבון־באַשטעטיקונג אָדער ?storage=.
דער זעלבער פֿאָרעם בײַ יעדן מאָדעלtype, url, content_type, width, height און duration, סײַ פֿאַר בילדער, ווידעאָ און אַודיאָ. output איז דער אייגענער רעזולטאַט־אָביעקט פֿון מאָדעל.
פֿעלדער פֿון דער אויסגאַבע
audio
object {url, content_type, file_name, file_size}גענערירטער קול־עפעקט־פֿײַל קאָדירט ווי MP3 אַודיאָ.

מער מאָדעלן: אַודיאָ

פֿאַר AI־אַגענטן: דער בלאַט ווי Markdown געפֿינט זיך בײַ https://doitong.com/yi/developers/models/elevenlabs/sound-effects/v2.md. אַלע מאָדעלן און גוידעס: https://doitong.com/developers/llms.txt