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

Sonilo V1.1 Text to Music

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

ਮਾਡਲ id sonilo/v1.1/text-to-music
# 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/sonilo/v1.1/text-to-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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਉਦਾਹਰਨ ਵਰਗੀਆਂ ਫ਼ਾਈਲਾਂ: $0.225 225 API ਕ੍ਰੈਡਿਟ · ≈ ₽24.15 ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ ਚਲਾਉਣ ਤੋਂ ਪਹਿਲਾਂ ਮਾਪੀਆਂ ਜਾਂਦੀਆਂ ਹਨ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Sonilo ਟੈਕਸਟ ਤੋਂ ਸੰਗੀਤ ਲਿਪਸਿੰਕ1–600 s #stylized#transform#lipsync

ਟੈਕਸਟ ਤੋਂ ਸੰਗੀਤ, ਜੋ ਹਰ ਬੇਨਤੀ ਲਈ 3 ਤੱਕ ਟ੍ਰੈਕ ਅਤੇ 600 ਸਕਿੰਟ ਤੱਕ ਦੀ ਮਿਆਦ ਵਾਪਸ ਕਰਦਾ ਹੈ

Sonilo · ਆਡੀਓ

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

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

ਰਿਕਵੈਸਟ ਬਣਾਓ

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

•ਲੋੜੀਂਦਾ

ਚਾਹੀਦੇ ਸੰਗੀਤ ਦਾ ਟੈਕਸਟ ਵੇਰਵਾ।

ਡਿਫ਼ਾਲਟ 90

ਚਾਹੀਦੀ ਆਉਟਪੁੱਟ ਲੰਬਾਈ, ਸਕਿੰਟਾਂ ਵਿੱਚ, ਵੱਧ ਤੋਂ ਵੱਧ 600।

ਡਿਫ਼ਾਲਟ 1

ਤਿਆਰ ਕੀਤੇ ਜਾਣ ਵਾਲੇ ਵੱਖਰੇ ਸੰਗੀਤ ਟ੍ਰੈਕਾਂ ਦੀ ਗਿਣਤੀ।

POST /run/sonilo/v1.1/text-to-music?wait=20 ਕੋਟ → $0.225
# 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/sonilo/v1.1/text-to-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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

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

Sonilo V1.1 Text to Music ਬਾਰੇ

ਸ਼ੈਲੀ, ਮੂਡ ਅਤੇ ਸਾਜ਼ਾਂ ਦਾ ਵਰਣਨ ਕਰਨ ਵਾਲੇ ਇੱਕੋ ਟੈਕਸਟ ਪ੍ਰੌਮਪਟ ਤੋਂ ਸੰਗੀਤ ਤਿਆਰ ਕਰਦਾ ਹੈ। `duration` ਸਕਿੰਟਾਂ ਵਿੱਚ 1 ਤੋਂ 600 ਤੱਕ ਸੈੱਟ ਹੁੰਦੀ ਹੈ (ਡਿਫ਼ਾਲਟ 90), ਅਤੇ `num_samples` 1 ਤੋਂ 3 ਵੱਖਰੇ ਟ੍ਰੈਕ ਤਿਆਰ ਕਰਦਾ ਹੈ। ਨਤੀਜੇ ਵਿੱਚ ਪਹਿਲਾ ਟ੍ਰੈਕ `audio` ਅਤੇ ਸਾਰੇ ਟ੍ਰੈਕ `audios` ਵਿੱਚ AAC/m4a ਵਜੋਂ ਮਿਲਦੇ ਹਨ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
ਚਾਹੀਦੇ ਸੰਗੀਤ ਦਾ ਟੈਕਸਟ ਵੇਰਵਾ।
durationਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ90
1 – 600
ਚਾਹੀਦੀ ਆਉਟਪੁੱਟ ਲੰਬਾਈ, ਸਕਿੰਟਾਂ ਵਿੱਚ, ਵੱਧ ਤੋਂ ਵੱਧ 600।
num_samplesਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ1
1 – 3
ਤਿਆਰ ਕੀਤੇ ਜਾਣ ਵਾਲੇ ਵੱਖਰੇ ਸੰਗੀਤ ਟ੍ਰੈਕਾਂ ਦੀ ਗਿਣਤੀ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "sonilo/v1.1/text-to-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": 225,
    "usd": "0.225",
    "charged": 225,
    "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
    },
    "audios": [
      {
        "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.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}ਤੁਰੰਤ ਪਲੇਬੈਕ ਜਾਂ ਪ੍ਰੀਵਿਊ ਲਈ ਦਿੱਤਾ ਗਿਆ ਪਹਿਲਾ ਸੰਗੀਤ ਟ੍ਰੈਕ।
audios
array of object {url, content_type, file_name, file_size}AAC/m4a ਫ਼ਾਰਮੈਟ ਵਿੱਚ ਸਿਰਜੇ ਗਏ ਸੰਗੀਤ ਟ੍ਰੈਕਾਂ ਦਾ ਪੂਰਾ ਸੰਗ੍ਰਹਿ, ਹਰੇਕ ਸੈਂਪਲ ਲਈ ਇੱਕ ਟ੍ਰੈਕ ਸਮੇਤ।

ਹੋਰ ਮਾਡਲ: ਟੈਕਸਟ ਤੋਂ ਸੰਗੀਤ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/sonilo/v1.1/text-to-music.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt