Suno icon

Suno

Generate AI music, lyrics, and audio with the Suno API

File Upload → Upload Stream

AI-generated

Summary

Upload a file as a stream from a binary property to the Suno API's file upload endpoint.

Inputs

  • Binary Property (required) — Name of the binary property containing the file to upload (default is 'data').
  • Upload Path (required) — Path on the server where the file should be uploaded, without leading or trailing slashes.
  • File Name — Name of the file with extension to use for the upload. If omitted, a random name or the binary data's original file name is used.

Output shape

a single JSON object representing the upload response from the Suno API

The response includes data about the uploaded file; if the fileName parameter is omitted, the upload defaults to a random or inferred file name. Errors are thrown for missing or invalid parameters or upload failures.

Links

Discussion