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

Stable Audio 2.5 · Text to Audio

אינטעגרירן

מאָדעל־id stable-audio-25/text-to-audio
# 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/stable-audio-25/text-to-audio?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"

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

באַקומען אַן API שליסל
Stability AI אַודיאָ #audio

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

Stability AI · אַודיאָ

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

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

בויען אַ בעטן

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

•פארלאנגט

פּראָמפּט געניצט ווי באַזע פֿאַר אַודיאָ־גענערירונג.

פֿאָרגעשריטן seconds_total · num_inference_steps · guidance_scale · seed · enable_safety_checker
סטאַנדאַרט 190

לענג פונעם גענערירטן אַודיאָ־קליפּ.

סטאַנדאַרט 8

צאָל דענאָײַזינג־סטעפּס געווענדט אויפֿן אַודיאָ.

סטאַנדאַרט 1

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

POST /run/stable-audio-25/text-to-audio?wait=20 פּרײַז → ⁨$ 0.20⁩
# 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/stable-audio-25/text-to-audio?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"

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

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

וועגן Stable Audio 2.5 · Text to Audio

שאַפֿט אַודיאָ פֿון אַ `prompt` אָן אַרײַנגאַבע־קליפּ. `seconds_total` שטעלט די לענג פֿון 1 ביז 190 סעקונדעס, מיט פעליקייַט 190. `num_inference_steps` לויפֿט פֿון 4 ביז 8 און `guidance_scale` פֿון 1 ביז 25, וווּ העכערע ווערטן האַלטן זיך נעענטער צום פּראָמפּט. מען קען שטעלן אַ `seed` פֿאַר איבערחזרבאַרן רעזולטאַט.

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

נאָמעןטיפּ סטאַנדאַרטערלויבט באַשרײַבונג
promptפארלאנגט
טיפּstring
פּראָמפּט געניצט ווי באַזע פֿאַר אַודיאָ־גענערירונג.
seconds_totalאָפּציאָנעל
טיפּinteger
סטאַנדאַרט190
1 – 190
לענג פונעם גענערירטן אַודיאָ־קליפּ.
num_inference_stepsאָפּציאָנעל
טיפּinteger
סטאַנדאַרט8
4 – 8
צאָל דענאָײַזינג־סטעפּס געווענדט אויפֿן אַודיאָ.
guidance_scaleאָפּציאָנעל
טיפּnumber
סטאַנדאַרט1
1 – 25
די געטרײַקייט פֿון אַודיאָ־צו־פּראָמפּט ווערט גרעסער ווען מען הייבט דעם באַשטעטיקונג־ווערט, וואָס שטאַרקט דעם אנהאַלטן פונעם דיפוזיע־פּראָצעס צום טעקסט.
seedאָפּציאָנעל
טיפּinteger | null
enable_safety_checkerאָפּציאָנעל
טיפּboolean
סטאַנדאַרטtrue
סקרינינג קען ווערן פאַרלייכטערט דורך שטעלן false, אויב דער רופער איז אָטעריזירט.
פארלאנגט

אויסגאַבע

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "stable-audio-25/text-to-audio",
  "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": 200,
    "usd": "0.20",
    "charged": 200,
    "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
    },
    "seed": 42
  },
  "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}אַודיאָ־קליפּ געשאַפֿן דורך גענערירונג.
seed
integerצופֿעליקער זוימען געניצט בעת גענערירונג.

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

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