Riferimento API di Suno v6
Canzoni complete con voce dal tuo testo o da una breve idea
Con una sola chiave API di PopNow chiami Suno v6 dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanto costa ogni richiesta in USD e una richiesta da incollare nel terminale così com’è.
Le descrizioni dei parametri provengono dallo schema di input del modello e sono disponibili solo in inglese.
In sintesi
- Sviluppato da
- Suno
- Risultato
- Audio
- Da
- $0.03 USD per richiesta
- Tempo tipico
- circa 45 s
I prezzi sono indicati in USD e gli importi vengono addebitati sul tuo saldo PopNow. Alla ricezione viene riservato il massimo importo; al termine viene addebitato il consumo effettivo e il resto viene sbloccato. Le attività fallite non vengono addebitate. Per un preventivo esatto prima di eseguire, usa POST /api/v1/jobs/quote.
Musica
suno/v6/text-to-audio
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.072 per richiesta |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
promptObbligatorio | string | — | fino a 3000 caratteri | Describe the song: genre, mood, tempo, instruments and voice. With lyrics or an instrumental this is the style (up to 1,000 characters); with no lyrics the model writes the words from it. |
lyricsFacoltativo | string | — | fino a 5000 caratteri | Words to sing, sung in order. Section tags such as [Verse], [Chorus] and [Bridge] shape the song and are not sung. |
generate_lyricsFacoltativo | boolean | true | — | Let the model write the lyrics from the prompt. Only applies when lyrics is empty and instrumental is off. |
instrumentalFacoltativo | boolean | false | — | Generate music with no vocals. |
titleFacoltativo | string | — | fino a 80 caratteri | Song title (metadata, not sung). Applies with lyrics or an instrumental; otherwise the model names the song. |
negative_promptFacoltativo | string | — | fino a 500 caratteri | Styles or elements to keep out of the song. |
vocal_genderFacoltativo | string | — | female, male | Make a female or male lead vocal more likely. Applies with lyrics. |
style_weightFacoltativo | number | — | da 0 a 1 | How closely to follow the style in the prompt, from 0 to 1. |
weirdnessFacoltativo | number | — | da 0 a 1 | How experimental the song may get, from 0 (conventional) to 1 (unusual). |
audio_weightFacoltativo | number | — | da 0 a 1 | How strongly a persona's audio shapes the result, from 0 to 1. Songs with vocals only. |
varietyFacoltativo | integer | — | da 0 a 4 | How different the two versions are from each other: 0 off, 1 normal (the model default), 2 high, 3 extra, 4 max. |
persona_idFacoltativo | string | — | fino a 200 caratteri | ID of an existing Suno persona to reuse its style or voice. |
persona_modelFacoltativo | string | — | style_persona, voice_persona | Whether persona_id is a style persona or a voice persona. |
image_urlsFacoltativo | array<string (uri)> | — | fino a 5 elementi | Up to 5 mood images (JPEG, PNG or WebP, 10 MB each). Only when the model writes the lyrics. |
reference_video_urlsFacoltativo | array<string (uri)> | — | fino a 1 elementi | One reference video (MP4 or WebM, up to 100 MB and 241 seconds). Only when the model writes the lyrics. |
reference_audio_urlsFacoltativo | array<string (uri)> | — | fino a 1 elementi | One reference audio clip (MP3 or WAV, 6 seconds to 30 minutes). Only when the model writes the lyrics. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "suno/v6/text-to-audio",
"input": {
"prompt": "An upbeat indie pop song about a summer road trip, bright guitars, hand claps and a catchy whistled hook"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Studio di canzoni
suno/v6/audio-cover
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.072 per richiesta |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
audio_urlObbligatorio | string | — | — | The song to work on: MP3 or WAV, up to 8 minutes. Use a recording you have the rights to. |
promptObbligatorio | string | — | fino a 1000 caratteri | The new style: genre, mood, instruments and voice, up to 1,000 characters. The melody comes from audio_url. |
lyricsFacoltativo | string | — | fino a 5000 caratteri | Words for the cover, usually the original lyrics; edit lines to change what is sung. Section tags are not sung. |
audio_weightFacoltativo | number | — | da 0 a 1 | How much the source recording weighs against the new style, from 0 to 1. A fine adjustment: the melody stays recognizable at every setting. |
instrumentalFacoltativo | boolean | false | — | Make an instrumental cover with no vocals. |
titleFacoltativo | string | — | fino a 80 caratteri | Title for the cover (metadata, not sung). |
duration_secondsFacoltativo | integer | — | da 10 a 360 | Target length in seconds (10–360). Suno treats it as a guide, not an exact length. |
negative_promptFacoltativo | string | — | fino a 500 caratteri | Styles or elements to keep out of the result. |
vocal_genderFacoltativo | string | — | female, male | Make a female or male lead vocal more likely. |
style_weightFacoltativo | number | — | da 0 a 1 | How closely to follow the style in prompt, from 0 to 1. |
weirdnessFacoltativo | number | — | da 0 a 1 | How experimental the result may get, from 0 (conventional) to 1 (unusual). |
varietyFacoltativo | integer | — | da 0 a 4 | How different the two versions are from each other: 0 off, 1 normal (the default), 2 high, 3 extra, 4 max. |
persona_idFacoltativo | string | — | fino a 200 caratteri | ID of an existing Suno persona to reuse its style or voice. |
persona_modelFacoltativo | string | — | style_persona, voice_persona | Whether persona_id is a style persona or a voice persona. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in audio_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "suno/v6/audio-cover",
"input": {
"prompt": "Relaxed acoustic bossa nova, soft lead vocal, nylon-string guitar, upright bass and brushes",
"audio_url": "https://media.popnow.ai/audio/songs/sunday-pancakes-d2fd31c5.mp3"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Studio di canzoni
suno/v6/audio-extend
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.072 per richiesta |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
audio_urlObbligatorio | string | — | — | The song to work on: MP3 or WAV, up to 8 minutes. Use a recording you have the rights to. |
extend_at_secondsObbligatorio | number | — | almeno 0 | Where the new part starts, in seconds from the beginning of the song. Everything after this point is replaced; it must be earlier than the end of the song. |
promptFacoltativo | string | — | fino a 1000 caratteri | Style for the new part, up to 1,000 characters; repeat the song's own style to keep it consistent. |
lyricsFacoltativo | string | — | fino a 5000 caratteri | Words for the new part. Section tags such as [Verse] and [Chorus] are not sung. |
instrumentalFacoltativo | boolean | false | — | Make the new part instrumental, with no vocals. |
titleFacoltativo | string | — | fino a 100 caratteri | Title for the extended song (metadata, not sung). |
negative_promptFacoltativo | string | — | fino a 500 caratteri | Styles or elements to keep out of the result. |
vocal_genderFacoltativo | string | — | female, male | Make a female or male lead vocal more likely. |
style_weightFacoltativo | number | — | da 0 a 1 | How closely to follow the style in prompt, from 0 to 1. |
weirdnessFacoltativo | number | — | da 0 a 1 | How experimental the result may get, from 0 (conventional) to 1 (unusual). |
audio_weightFacoltativo | number | — | da 0 a 1 | How much the source recording weighs against the style in prompt, from 0 to 1. |
varietyFacoltativo | integer | — | da 0 a 4 | How different the two versions are from each other: 0 off, 1 normal (the default), 2 high, 3 extra, 4 max. |
persona_idFacoltativo | string | — | fino a 200 caratteri | ID of an existing Suno persona to reuse its style or voice. |
persona_modelFacoltativo | string | — | style_persona, voice_persona | Whether persona_id is a style persona or a voice persona. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in audio_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "suno/v6/audio-extend",
"input": {
"prompt": "Upbeat indie pop, 112 BPM, bright female vocal, ukulele, handclaps, warm bass, sunny and playful",
"audio_url": "https://media.popnow.ai/audio/songs/sunday-pancakes-d2fd31c5.mp3",
"extend_at_seconds": 55
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Studio di canzoni
suno/v6/audio-inpaint
Prezzo
| Opzione | USD |
|---|---|
Predefinito | $0.03 per richiesta |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
audio_urlObbligatorio | string | — | — | The song to work on: MP3 or WAV, up to 8 minutes. Use a recording you have the rights to. |
start_secondsObbligatorio | number | — | almeno 0 | Start of the section to replace, in seconds. |
end_secondsObbligatorio | number | — | almeno 0 | End of the section to replace, in seconds: at least 10 seconds after start_seconds, and the section may cover at most half the song. |
lyricsObbligatorio | string | — | fino a 5000 caratteri | Words the replaced section should sing. |
full_lyricsObbligatorio | string | — | fino a 5000 caratteri | The whole song's lyrics after the change: the new section in place, the other sections as they were. |
promptObbligatorio | string | — | fino a 1000 caratteri | The song's style: genre, mood, instruments and voice. Repeat the original style so the section blends in. |
titleFacoltativo | string | Untitled | fino a 100 caratteri | Title for the edited song (metadata, not sung). |
negative_promptFacoltativo | string | — | fino a 500 caratteri | Styles or elements to keep out of the result. |
vocal_genderFacoltativo | string | — | female, male | Make a female or male lead vocal more likely. |
style_weightFacoltativo | number | — | da 0 a 1 | How closely to follow the style in prompt, from 0 to 1. |
weirdnessFacoltativo | number | — | da 0 a 1 | How experimental the result may get, from 0 (conventional) to 1 (unusual). |
audio_weightFacoltativo | number | — | da 0 a 1 | How much the source recording weighs against the style in prompt, from 0 to 1. |
varietyFacoltativo | integer | — | da 0 a 4 | How different the two versions are from each other: 0 off, 1 normal (the default), 2 high, 3 extra, 4 max. |
persona_idFacoltativo | string | — | fino a 200 caratteri | ID of an existing Suno persona to reuse its style or voice. |
persona_modelFacoltativo | string | — | style_persona, voice_persona | Whether persona_id is a style persona or a voice persona. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in audio_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "suno/v6/audio-inpaint",
"input": {
"prompt": "Upbeat indie pop, 112 BPM, bright female vocal, ukulele, handclaps, warm bass, sunny and playful",
"audio_url": "https://media.popnow.ai/audio/songs/sunday-pancakes-d2fd31c5.mp3",
"start_seconds": 7,
"end_seconds": 20,
"lyrics": "Golden sunlight through the glass\nWe let all the morning pass\nMaple rivers overflow\nTake another moment slow",
"full_lyrics": "[Verse]\nGolden sunlight through the glass\nWe let all the morning pass\nMaple rivers overflow\nTake another moment slow\n\n[Pre-Chorus]\nTurn the radio up loud\nLet the morning drift around\n\n[Chorus]\nSunday pancakes, nowhere to be\nSyrup and laughter, you and me\nFlip it higher, catch it slow\nThis is the only plan we know\n\n[Bridge]\nNo alarms and no rush\nJust the sizzle and the hush\n\n[Chorus]\nSunday pancakes, nowhere to be\nSyrup and laughter, you and me\nFlip it higher, catch it slow\nThis is the only plan we know"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Separatore di tracce
suno/v6/audio-separation
Prezzo
| Opzione | USD |
|---|---|
stem_name = accordion | $0.12 per richiesta |
stem_name = acoustic_guitar | $0.12 per richiesta |
stem_name = arpeggiator | $0.12 per richiesta |
stem_name = backing_vocals | $0.12 per richiesta |
stem_name = banjo | $0.12 per richiesta |
stem_name = bass | $0.12 per richiesta |
stem_name = bells | $0.12 per richiesta |
stem_name = brass_section | $0.12 per richiesta |
stem_name = cello | $0.12 per richiesta |
stem_name = choir | $0.12 per richiesta |
stem_name = clarinet | $0.12 per richiesta |
stem_name = cymbals | $0.12 per richiesta |
stem_name = digital_piano | $0.12 per richiesta |
stem_name = distorted_electric_guitar | $0.12 per richiesta |
stem_name = drum_kit | $0.12 per richiesta |
stem_name = electric_bass | $0.12 per richiesta |
stem_name = electric_guitar | $0.12 per richiesta |
stem_name = electric_piano | $0.12 per richiesta |
stem_name = electronic_drum_kit | $0.12 per richiesta |
stem_name = fiddle | $0.12 per richiesta |
stem_name = flute | $0.12 per richiesta |
stem_name = french_horn | $0.12 per richiesta |
stem_name = glockenspiel | $0.12 per richiesta |
stem_name = guitar | $0.12 per richiesta |
stem_name = hand_clap | $0.12 per richiesta |
stem_name = harmonica | $0.12 per richiesta |
stem_name = harp | $0.12 per richiesta |
stem_name = horns | $0.12 per richiesta |
stem_name = keyboards | $0.12 per richiesta |
stem_name = kick | $0.12 per richiesta |
stem_name = lap_steel_guitar | $0.12 per richiesta |
stem_name = lead_electric_guitar | $0.12 per richiesta |
stem_name = lead_vocal | $0.12 per richiesta |
stem_name = mandolin | $0.12 per richiesta |
stem_name = marimba | $0.12 per richiesta |
stem_name = orchestra | $0.12 per richiesta |
stem_name = organ | $0.12 per richiesta |
stem_name = pedal_steel_guitar | $0.12 per richiesta |
stem_name = percussion | $0.12 per richiesta |
stem_name = piano | $0.12 per richiesta |
stem_name = rhythm_acoustic_guitar | $0.12 per richiesta |
stem_name = rhythm_electric_guitar | $0.12 per richiesta |
stem_name = risers | $0.12 per richiesta |
stem_name = saxophone | $0.12 per richiesta |
stem_name = shaker | $0.12 per richiesta |
stem_name = snare | $0.12 per richiesta |
stem_name = sound_effects | $0.12 per richiesta |
stem_name = string_section | $0.12 per richiesta |
stem_name = synth | $0.12 per richiesta |
stem_name = synth_bass | $0.12 per richiesta |
stem_name = synth_brass | $0.12 per richiesta |
stem_name = synth_keys | $0.12 per richiesta |
stem_name = synth_lead | $0.12 per richiesta |
stem_name = synth_pad | $0.12 per richiesta |
stem_name = synth_strings | $0.12 per richiesta |
stem_name = synth_voice | $0.12 per richiesta |
stem_name = tambourine | $0.12 per richiesta |
stem_name = tenor_saxophone | $0.12 per richiesta |
stem_name = timpani | $0.12 per richiesta |
stem_name = trombone | $0.12 per richiesta |
stem_name = trumpet | $0.12 per richiesta |
stem_name = upright_bass | $0.12 per richiesta |
stem_name = vibraphone | $0.12 per richiesta |
stem_name = violin | $0.12 per richiesta |
stem_name = woodwinds | $0.12 per richiesta |
separation_mode = all_stems | $0.3 per richiesta |
Parametri
| Campo | Tipo | Predefinito | Valori ammessi | A cosa serve |
|---|---|---|---|---|
audio_urlObbligatorio | string | — | — | The mixed song to separate: MP3 or WAV, up to 20 MB. Any song works, not only songs made with Suno. |
separation_modeFacoltativo | string | — | two_stems, all_stems | two_stems: vocals and background. all_stems: twelve instrument tracks, silent where an instrument is absent. Leave it out when you send stem_name. |
stem_nameFacoltativo | string | — | accordion, acoustic_guitar, arpeggiator, backing_vocals, banjo, bass, bells, brass_section, cello, choir, clarinet, cymbals, digital_piano, distorted_electric_guitar, … (+51) | Pull out one part instead: the result is that part plus everything else. Send it without separation_mode. |
Richiesta di esempio
Questa richiesta funziona così com’è; i campi omessi usano il valore predefinito. Prima salva la tua chiave in POPNOW_API_KEY.
L’esempio usa file di prova di PopNow in audio_url. Sostituiscili con i tuoi link HTTPS pubblici, file caricati o asset salvati.
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "suno/v6/audio-separation",
"input": {
"audio_url": "https://media.popnow.ai/audio/songs/sunday-pancakes-d2fd31c5.mp3"
}
}'La risposta contiene subito un taskId. Recupera il risultato con GET /api/v1/jobs/recordInfo, oppure aggiungi callBackUrl per ricevere una notifica.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
