Suno icon

Suno

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

File Upload → Upload Base64

AI-generated

Summary

Upload a file to the Suno API using base64 encoded data or a data URL format, specifying the target upload path and optionally a file name.

Inputs

  • Base64 Data (required) — Base64 encoded file data or data URL format to upload
  • Upload Path (required) — File upload path without leading or trailing slashes
  • File Name — Optional file name with extension; if omitted, a random name is used

Output shape

a single JSON object containing the API response for the upload request

The response includes details from the Suno API about the uploaded file. The operation validates that the Base64 data is properly formatted and the upload path is not empty.

Links

Discussion