Suno music and lyrics tasks
Access Suno music and lyrics tasks according to the actual model and channel configuration of this site.
Suno music and lyrics are asynchronous tasks, which are different from ordinary TTS and audio transcription. Musical actions and lyrical actions need to be verified separately.
Step one: Confirm actions and permissions
The Suno plug-in on this site provides MUSIC and LYRICS actions, and the corresponding task models and available prices are subject to the current site. The native action name and case are used according to the interface, and the chat model ID cannot be filled in the music task.
Step 2: Minimal Example of Lyrics
curl --fail-with-body https://dunduntoken.com/suno/submit/LYRICS -H "Authorization: Bearer $DUNDUN_API_KEY" -H "Content-Type: application/json" -d '{"prompt":"写一段关于雨后散步的简短中文歌词"}'
Save the returned gateway task ID. This example is a lyrics task and does not return a directly playable song file.
Step 3: Music Task
Use POST /suno/submit/MUSIC to set prompt words, style, title, music-only options and version according to the contract of the enabled service. Verify a small task first, and then try custom lyrics and other capabilities; there is no guarantee that all versions and official package options will be available.
Step 4: Query and Acceptance
Query GET /suno/fetch/{task_id}; batch query uses POST /suno/fetch and provides the ids array. Press Return to wait for completion before distinguishing the lyrics text from the audio results, saving the actual file and checking playback. A task may have multiple products, and the first item in the array is not automatically considered all results.
Responses methods and boundaries
The model declared by the plug-in can also be accessed according to the supported Responses mode, but the output item is not ordinary chat text, and the application needs to process media products. Music models that do not declare unified video or image capabilities may not be sent to the /v1/videos or image endpoint.
Troubleshooting
If the prompt is empty, correct the input parameters first; when creating a timeout, check the record first; if polling fails, the task ID and error will be retained. You must have the necessary rights to upload materials, lyrics and generated music. Downloading external files does not carry this site’s Key.