Skip to main content
POST
/
suno
/
generate
Step 3: Extend Music
curl --request POST \
  --url https://gptproto.com/suno/generate \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "<string>",
  "tags": "<string>",
  "mv": "<string>",
  "title": "<string>",
  "continue_clip_id": "<string>",
  "continue_at": 123,
  "infill_start_s": "<string>",
  "infill_end_s": "<string>"
}'
{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}

Overview

Music generation interface, can generate new music directly or continue existing musicIf you want to continue a user-uploaded music, you need to add -upload after the mv field, for example chirp-v3-5-upload

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
required
Your API key in the format: Bearer YOUR_API_KEY

Request Body

prompt
string
required
Prompt parameter
tags
string
Tags parameter
mv
string
Mv parameter
title
string
Title parameter
continue_clip_id
string
Continue Clip Id parameter
continue_at
integer
Continue At parameter
infill_start_s
string
Infill Start S parameter
infill_end_s
string
Infill End S parameter

Request Example

curl -X POST "https://gptproto.com/suno/generate" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "[Verse]\nStars they shine above me\nMoonlight softly glows\nWhispers in the night sky\nDreams that only grow\n\n[Verse 2]\nMidnight winds are calling\nCarrying a tune\nHeartbeats echo softly\nDancing with the moon\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way\n\n[Verse 3]\nShadows move and twinkle\nNighttime come alive\nMystery in the heavens\nStories that survive\n\n[Bridge]\nMagic fills the darkness\nWonder in the air\nEvery star a secret\nIn the sky I stare\n\n[Chorus]\nStarry night starry night\nLet your light ignite ignite\nBright as day bright as day\nGuide my way guide my way",
  "tags": "heavy metal",
  "mv": "chirp-v3-5",
  "title": "Starry ",
  "continue_clip_id": "73d482c0-c068-4202-8f2e-e4759e584f9b",
  "continue_at": 48,
  "infill_start_s": null,
  "infill_end_s": null
}'

Response

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}