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

Elevenlabs Music

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ 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"

ਉਦਾਹਰਨ ਵਰਗੀਆਂ ਫ਼ਾਈਲਾਂ: $1.80 1,800 API ਕ੍ਰੈਡਿਟ ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ ਚਲਾਉਣ ਤੋਂ ਪਹਿਲਾਂ ਮਾਪੀਆਂ ਜਾਂਦੀਆਂ ਹਨ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
ElevenLabs ਟੈਕਸਟ ਤੋਂ ਸੰਗੀਤ #music#text-to-music

ਪ੍ਰੌਂਪਟ ਜਾਂ ਢਾਂਚਾਗਤ ਰਚਨਾ ਯੋਜਨਾ ਦੁਆਰਾ ਚਲਾਇਆ ਜਾਣ ਵਾਲਾ ਟੈਕਸਟ-ਤੋਂ-ਸੰਗੀਤ ਜਨਰੇਟਰ, ਜਿਸ ਵਿੱਚ ਇੰਸਟਰੂਮੈਂਟਲ ਵਿਕਲਪ ਹੈ

ElevenLabs · ਆਡੀਓ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

88 / 4100

ਚਾਹੀਦੇ ਸੰਗੀਤ ਦਾ ਪਾਠ-ਵੇਰਵਾ।

ਮਿਲੀਸਕਿੰਟਾਂ ਵਿੱਚ ਵਿਕਲਪਿਕ ਗੀਤ ਮਿਆਦ, 3000 ms ਤੋਂ 600000 ms ਤੱਕ, ਸਿਰਫ਼ ਪ੍ਰੌਂਪਟ ਦੀ ਵਰਤੋਂ ਵੇਲੇ ਲਾਗੂ। ਨਾ ਦਿੱਤੇ ਜਾਣ 'ਤੇ ਮਾਡਲ ਪ੍ਰੌਂਪਟ ਤੋਂ ਮਿਆਦ ਨਿਰਧਾਰਤ ਕਰਦਾ ਹੈ।

ਉੱਨਤ output_format · force_instrumental · respect_sections_durations · composition_plan
ਡਿਫ਼ਾਲਟ mp3_44100_128

ਆਡੀਓ ਆਉਟਪੁੱਟ ਫਾਰਮੈਟ, ਟੀਅਰ ਦੀਆਂ ਲੋੜਾਂ ਅਧੀਨ: 192 kbps MP3 ਲਈ Creator ਟੀਅਰ ਜਾਂ ਉੱਚਾ ਅਤੇ 44.1 kHz PCM ਲਈ Pro ਟੀਅਰ ਜਾਂ ਉੱਚਾ ਲੋੜੀਂਦਾ ਹੈ। ਮੁੱਲ `codec_sample_rate_bitrate` ਦੀ ਪਾਲਣਾ ਕਰਦੇ ਹਨ; ਉਦਾਹਰਨ ਵਜੋਂ `mp3_22050_32`, 32 kbs 'ਤੇ 22.05 kHz MP3 ਦਰਸਾਉਂਦਾ ਹੈ। Twilio ਆਡੀਓ ਇਨਪੁੱਟ ਲਈ μ-law ਆਮ ਤੌਰ 'ਤੇ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ; ਇਸ ਫਾਰਮੈਟ ਨੂੰ mu-law ਵੀ ਲਿਖਿਆ ਜਾਂਦਾ ਹੈ ਜਾਂ u-law ਵਜੋਂ ਲਗਭਗ ਦਰਸਾਇਆ ਜਾਂਦਾ ਹੈ।

ਸੰਗੀਤ ਦੀ ਰਚਨਾ ਪਰਿਭਾਸ਼ਿਤ ਕਰਨ ਵਾਲੀ ਯੋਜਨਾ।

POST /run/elevenlabs/music?wait=20 ਕੋਟ → $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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Elevenlabs Music ਬਾਰੇ

4100 ਅੱਖਰਾਂ ਤੱਕ ਦੇ ਟੈਕਸਟ `prompt` ਤੋਂ ਜਾਂ ਵਿਸਤ੍ਰਿਤ `composition_plan` ਤੋਂ ਸੰਗੀਤ ਤਿਆਰ ਕਰਦਾ ਹੈ। ਪ੍ਰੌਂਪਟ ਨਾਲ `music_length_ms` 3000 ਤੋਂ 600000 ਮਿਲੀਸਕਿੰਟ ਤੱਕ ਹੋ ਸਕਦਾ ਹੈ, ਅਤੇ `force_instrumental` ਵੋਕਲ ਨਾ ਹੋਣ ਦੀ ਗਾਰੰਟੀ ਦਿੰਦਾ ਹੈ। `respect_sections_durations` ਇਹ ਨਿਰਧਾਰਤ ਕਰਦਾ ਹੈ ਕਿ ਯੋਜਨਾ ਦੇ ਭਾਗਾਂ ਦੇ ਸਮੇਂ ਦੀ ਕਿੰਨੀ ਸਖ਼ਤੀ ਨਾਲ ਪਾਲਣਾ ਹੋਵੇ। `output_format` ਰਾਹੀਂ ਕਈ ਕੋਡੈਕ ਅਤੇ ਸੈਂਪਲ-ਰੇਟ ਵਿਕਲਪ ਮਿਲਦੇ ਹਨ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਵਿਕਲਪਿਕ
ਕਿਸਮstring | null
≤ 4,100 ਅੱਖਰ
ਚਾਹੀਦੇ ਸੰਗੀਤ ਦਾ ਪਾਠ-ਵੇਰਵਾ।
composition_planਵਿਕਲਪਿਕ
ਕਿਸਮobject
ਸੰਗੀਤ ਦੀ ਰਚਨਾ ਪਰਿਭਾਸ਼ਿਤ ਕਰਨ ਵਾਲੀ ਯੋਜਨਾ।
composition_plan.positive_global_stylesਲੋੜੀਂਦਾ
ਕਿਸਮstring[]
ਗੀਤ ਦੌਰਾਨ ਸ਼ਾਮਲ ਕੀਤੀਆਂ ਜਾਣ ਵਾਲੀਆਂ ਸ਼ੈਲੀਆਂ।
composition_plan.negative_global_stylesਲੋੜੀਂਦਾ
ਕਿਸਮstring[]
ਗੀਤ ਦੌਰਾਨ ਹਟਾਈਆਂ ਜਾਣ ਵਾਲੀਆਂ ਸ਼ੈਲੀਆਂ।
composition_plan.sectionsਲੋੜੀਂਦਾ
ਕਿਸਮobject[]
ਗੀਤ ਬਣਾਉਣ ਵਾਲੇ ਭਾਗ।
composition_plan.sections[].section_nameਲੋੜੀਂਦਾ
ਕਿਸਮstring
1 – 100 characters
ਭਾਗ ਦਾ ਨਾਮ, 1 ਤੋਂ 100 ਅੱਖਰਾਂ ਦੀ ਲੰਬਾਈ ਵਾਲਾ।
composition_plan.sections[].positive_local_stylesਲੋੜੀਂਦਾ
ਕਿਸਮstring[]
ਇਸ ਭਾਗ ਵਿੱਚ ਸ਼ਾਮਲ ਕੀਤੀਆਂ ਜਾਣ ਵਾਲੀਆਂ ਸ਼ੈਲੀਆਂ।
composition_plan.sections[].negative_local_stylesਲੋੜੀਂਦਾ
ਕਿਸਮstring[]
ਇਸ ਭਾਗ ਵਿੱਚ ਹਟਾਈਆਂ ਜਾਣ ਵਾਲੀਆਂ ਸ਼ੈਲੀਆਂ।
composition_plan.sections[].duration_msਲੋੜੀਂਦਾ
ਕਿਸਮinteger
3,000 – 1,20,000
ਭਾਗ ਦੀ ਲੰਬਾਈ ਮਿਲੀਸਕਿੰਟਾਂ ਵਿੱਚ, 3000 ms ਤੋਂ 120000 ms ਤੱਕ।
composition_plan.sections[].linesਲੋੜੀਂਦਾ
ਕਿਸਮstring[]
ਇਸ ਭਾਗ ਦੇ ਬੋਲ, ਹਰ ਲਾਈਨ ਵਿੱਚ ਵੱਧ ਤੋਂ ਵੱਧ 200 ਅੱਖਰਾਂ ਤੱਕ।
music_length_msਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
3,000 – 6,00,000
ਮਿਲੀਸਕਿੰਟਾਂ ਵਿੱਚ ਵਿਕਲਪਿਕ ਗੀਤ ਮਿਆਦ, 3000 ms ਤੋਂ 600000 ms ਤੱਕ, ਸਿਰਫ਼ ਪ੍ਰੌਂਪਟ ਦੀ ਵਰਤੋਂ ਵੇਲੇ ਲਾਗੂ। ਨਾ ਦਿੱਤੇ ਜਾਣ 'ਤੇ ਮਾਡਲ ਪ੍ਰੌਂਪਟ ਤੋਂ ਮਿਆਦ ਨਿਰਧਾਰਤ ਕਰਦਾ ਹੈ।
force_instrumentalਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟfalse
ਸਿਰਫ਼ ਇੰਸਟਰੂਮੈਂਟਲ ਲਈ ਨਿਯੰਤਰਣ, ਸਿਰਫ਼ ਪ੍ਰੌਂਪਟ ਦੀ ਵਰਤੋਂ ਵੇਲੇ ਉਪਲਬਧ। ਇਸਨੂੰ true ਕਰਨ ਨਾਲ ਇੰਸਟਰੂਮੈਂਟਲ ਆਉਟਪੁੱਟ ਨਿਸ਼ਚਿਤ ਹੁੰਦਾ ਹੈ; false ਕਰਨ ਨਾਲ ਪ੍ਰੌਂਪਟ ਅਨੁਸਾਰ ਇੰਸਟਰੂਮੈਂਟਲ ਜਾਂ ਗੈਰ-ਇੰਸਟਰੂਮੈਂਟਲ ਸੰਗੀਤ ਬਣ ਸਕਦਾ ਹੈ।
respect_sections_durationsਵਿਕਲਪਿਕ
ਕਿਸਮboolean
ਡਿਫ਼ਾਲਟtrue
`composition_plan` ਲਈ ਭਾਗ-ਸਮਾਂ ਲਾਗੂ ਕਰਨਾ, ਇਸ ਯੋਜਨਾ ਤੋਂ ਬਾਹਰ ਕੋਈ ਪ੍ਰਭਾਵ ਨਹੀਂ। False ਨਾਲ ਮਾਡਲ ਵਿਅਕਤੀਗਤ ਭਾਗਾਂ ਦੀ ਲੰਬਾਈ ਬਦਲ ਸਕਦਾ ਹੈ, ਜਿਸ ਨਾਲ ਆਮ ਤੌਰ 'ਤੇ ਗੁਣਵੱਤਾ ਅਤੇ ਲੈਟੈਂਸੀ ਬਿਹਤਰ ਹੁੰਦੀ ਹੈ ਅਤੇ ਯੋਜਨਾ ਦੀ ਕੁੱਲ ਗੀਤ ਮਿਆਦ ਨਹੀਂ ਬਦਲਦੀ; true ਹਰ ਭਾਗ ਦੀ `duration_ms` ਨੂੰ ਬਿਲਕੁਲ ਲਾਗੂ ਕਰਦਾ ਹੈ।
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
ਆਡੀਓ ਆਉਟਪੁੱਟ ਫਾਰਮੈਟ, ਟੀਅਰ ਦੀਆਂ ਲੋੜਾਂ ਅਧੀਨ: 192 kbps MP3 ਲਈ Creator ਟੀਅਰ ਜਾਂ ਉੱਚਾ ਅਤੇ 44.1 kHz PCM ਲਈ Pro ਟੀਅਰ ਜਾਂ ਉੱਚਾ ਲੋੜੀਂਦਾ ਹੈ। ਮੁੱਲ `codec_sample_rate_bitrate` ਦੀ ਪਾਲਣਾ ਕਰਦੇ ਹਨ; ਉਦਾਹਰਨ ਵਜੋਂ `mp3_22050_32`, 32 kbs 'ਤੇ 22.05 kHz MP3 ਦਰਸਾਉਂਦਾ ਹੈ। Twilio ਆਡੀਓ ਇਨਪੁੱਟ ਲਈ μ-law ਆਮ ਤੌਰ 'ਤੇ ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ; ਇਸ ਫਾਰਮੈਟ ਨੂੰ mu-law ਵੀ ਲਿਖਿਆ ਜਾਂਦਾ ਹੈ ਜਾਂ u-law ਵਜੋਂ ਲਗਭਗ ਦਰਸਾਇਆ ਜਾਂਦਾ ਹੈ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

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"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ 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/pa/developers/models/elevenlabs/music.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt