ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ: $0.20 200 API ਕ੍ਰੈਡਿਟ · ≈ ₽21.52 ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

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.ru/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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। 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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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/pa/developers/models/stable-audio-25/text-to-audio.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt