Suno-API icon indicating copy to clipboard operation
Suno-API copied to clipboard

Need extend, negative_tags, cover, upload

Open jochemstoel opened this issue 1 year ago • 0 comments

Hi, thanks for creating this repo. I need additional methods for: extend, negative tags, cover and upload.

Implementing negative tags (exclude style) is easy, just add a property negative_tags to your HTTP request payload. Extend is easy too, all you need to do is provide the ID of the song you want to extend.

I have been investigating the suno.com website but I haven't found the right way yet to "cover" an audio. This is a new feature on their platform. I assume it also required a track id.

Lastly, I haven;t been able to upload my audio files to Suno yet. I have found so far that when you upload a file on the suno website, it sends a request to /audio with a payload of:

{
    "extension": "wav"
}

This will respond with:

{
    "id": "11b10f4c-6bf9-499b-8d49-f7bc4661bfcb",
    "url": "https://suno-uploads.s3.amazonaws.com/",
    "fields": {
        "Content-Type": "audio/wav",
        "key": "raw_uploads/11b10f4c-6bf9-499b-8d49-f7bc4661bfcb.wav",
        "AWSAccessKeyId": "...",
        "policy": "...",
        "signature": "..."
    },
    "is_file_uploaded": false
}

Then you need to request https://suno-uploads.s3.amazonaws.com/raw_uploads%2F11b10f4c-6bf9-499b-8d49-f7bc4661bfcb.wav (response.url + fields.key) and provide the file as payload.

Then a response comes from /upload-finish from Suno, followed by responses with progress indicators of the audio processing. For example:

{
    "id": "11b10f4c-6bf9-499b-8d49-f7bc4661bfca",
    "status": "processing",
    "title": ""
}

But I get stuck on the uploading file to amazon. Authentication errors etcetera. Can you implement these features?

jochemstoel avatar Oct 12 '24 07:10 jochemstoel