मुख्य सामग्री पर जाएँ
म्यूज़िकSuno

Suno V6

A complete song from a description: usually two takes, each with cover art.

मॉडल ID
suno/suno-v6
एंडपॉइंट
POST /v1/tasks

मूल्य

लागू होता हैMinuआधिकारिक मूल्यआधिकारिक मूल्य की तुलना में
हर अनुरोधप्रति अनुरोध$0.06——

गाने के अनुरोध का शुल्क एक बार, पूरा, तब लगता है जब वह नतीजा देता है। विफल अनुरोध का कोई शुल्क नहीं।

अनुरोध का उदाहरण

टास्क बनाएँ, फिर अंतिम स्टेटस आने तक उसे पोल करें। या callback_url दें और उसकी जगह साइन किया हुआ वेबहुक पाएँ।

# Create the task
curl https://api.minu.ai/v1/tasks \
  -H "Authorization: Bearer $MINU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "suno/suno-v6",
    "input": {
      "prompt": "Lo-fi hip hop for studying, mellow piano, vinyl crackle"
    }
  }'

# Then poll it with the id from the response
curl https://api.minu.ai/v1/tasks/$TASK_ID \
  -H "Authorization: Bearer $MINU_API_KEY"

इनपुट पैरामीटर

POST /v1/tasks के input ऑब्जेक्ट के फ़ील्ड।

इनपुट पैरामीटर
पैरामीटरप्रकारडिफ़ॉल्टमान्य मानविवरण
promptआवश्यकstring—अधिकतम 3,000 अक्षरWhat the song is about and how it should sound.
lyricsवैकल्पिकstring—अधिकतम 5,000 अक्षरYour own lyrics. Left out, the model writes them.
styleवैकल्पिकstring—अधिकतम 1,000 अक्षरThe musical style, for example “acoustic folk, warm, slow”.
titleवैकल्पिकstring—अधिकतम 80 अक्षर—
instrumentalवैकल्पिकbooleanfalse—True for a song without vocals.

जवाब में क्या आता है

एक पूरा हुआ टास्क, जैसा GET /v1/tasks/{id} लौटाता है। मान केवल उदाहरण हैं।

उदाहरण टास्क
{
  "id": "task_1k8r2m4p0a7c9e3g5j6n8q2s",
  "object": "task",
  "model": "suno/suno-v6",
  "status": "succeeded",
  "input": {
    "prompt": "Lo-fi hip hop for studying, mellow piano, vinyl crackle"
  },
  "outputs": [
    {
      "index": 0,
      "type": "audio",
      "url": "https://…",
      "mime": "audio/mpeg",
      "bytes": 3841022
    }
  ],
  "error": null,
  "estimated_cost_usd": "0.060000",
  "cost_usd": "0.060000",
  "metadata": null,
  "created_at": 1796212800,
  "started_at": 1796212801,
  "completed_at": 1796212842
}