सामग्री पर जाएँ

DiffRhythm: Lyrics to Song

इंटीग्रेट करें

मॉडल id diffrhythm
# 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/diffrhythm?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "lyrics": "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.10 100 API क्रेडिट · ≈ ₽10.55 इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
Open model टेक्स्ट से संगीत रेफ़रेंस इनपुट95–285 s #music

वैकल्पिक स्टाइल प्रॉम्प्ट, संदर्भ ऑडियो और 95 s या 285 s अवधि के साथ लिरिक्स को पूरे गाने में बदलता है

Open model · ऑडियो

आपका पहला परिणाम यहाँ आएगा

नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

•आवश्यक

गीत-निर्माण प्रॉम्प्ट, जिसमें ठीक दो सेक्शन होते हैं और प्रत्येक की शुरुआत [chorus] या [verse] से होती है।

music_duration 95 s

निर्मित किए जाने वाले संगीत की लंबाई।

उन्नत style_prompt · reference_audio_url · scheduler · cfg_strength · num_inference_steps

निर्मित संगीत की शैली बताने वाला प्रॉम्प्ट।

फ़ाइल ड्रॉप करें, या

संगीत बनाने के लिए संदर्भ ऑडियो की ओर संकेत करने वाला URL।

scheduler डिफ़ॉल्ट euler

संगीत बनाते समय उपयोग किया जाने वाला शेड्यूलर।

डिफ़ॉल्ट 4

संगीत बनाते समय लागू की जाने वाली CFG स्ट्रेंथ।

डिफ़ॉल्ट 32

संगीत बनाने के लिए इन्फ़रेंस स्टेप की संख्या।

POST /run/diffrhythm?wait=20 कोटेशन → $0.10
# 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/diffrhythm?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "lyrics": "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 कुंजी प्राप्त करें

DiffRhythm: Lyrics to Song के बारे में

लिरिक्स से पूरा गाना बनाता है। `lyrics` में कम-से-कम दो सेक्शन होने चाहिए, जिनमें प्रत्येक [verse] या [chorus] टैग से शुरू हो। `style_prompt` या `reference_audio_url` से ध्वनि को निर्देशित करें और `music_duration` के लिए 95s या 285s चुनें। सैंपलिंग नियंत्रणों में `scheduler`, `cfg_strength` (1 से 10) और `num_inference_steps` (10 से 100) शामिल हैं।

पैरामीटर

नामप्रकार डिफ़ॉल्टअनुमत विवरण
lyricsआवश्यक
प्रकारstring
गीत-निर्माण प्रॉम्प्ट, जिसमें ठीक दो सेक्शन होते हैं और प्रत्येक की शुरुआत [chorus] या [verse] से होती है।
reference_audio_urlवैकल्पिक
प्रकारurl · audio
संगीत बनाने के लिए संदर्भ ऑडियो की ओर संकेत करने वाला URL।
style_promptवैकल्पिक
प्रकारstring
निर्मित संगीत की शैली बताने वाला प्रॉम्प्ट।
music_durationवैकल्पिक
प्रकारenum
डिफ़ॉल्ट95s
95s285s
निर्मित किए जाने वाले संगीत की लंबाई।
cfg_strengthवैकल्पिक
प्रकारnumber
डिफ़ॉल्ट4
1 – 10
संगीत बनाते समय लागू की जाने वाली CFG स्ट्रेंथ।
schedulerवैकल्पिक
प्रकारenum
डिफ़ॉल्टeuler
eulermidpointrk4implicit_adams
संगीत बनाते समय उपयोग किया जाने वाला शेड्यूलर।
num_inference_stepsवैकल्पिक
प्रकारinteger
डिफ़ॉल्ट32
10 – 100
संगीत बनाने के लिए इन्फ़रेंस स्टेप की संख्या।
आवश्यक

फ़ाइल पैरामीटर में सार्वजनिक https:// URL, 10 MB तक का data: URI, या अपलोड का file_url लिया जाता है। फ़ाइलें

आउटपुट

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "diffrhythm",
  "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": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "lyrics": "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.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}निर्मित संगीत वाली फ़ाइल।

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/diffrhythm.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt