PopNowDocs API
Contenu principal

Référence API de Suno v6

Chansons complètes avec voix, à partir de vos paroles ou d’une courte idée

Une seule clé API PopNow suffit pour appeler Suno v6 depuis votre code. Vous trouverez ici les identifiants de modèle à envoyer, chaque champ d’entrée accepté, le coût d’une requête en USD et une requête à coller telle quelle dans un terminal.

Les descriptions des paramètres proviennent du schéma d’entrée du modèle et ne sont disponibles qu’en anglais.

En bref

Éditeur
Suno
Résultat
Audio
À partir de
$0.03 USD par requête
Durée habituelle
environ 45 s

Les prix sont affichés en USD et les frais sont déduits de votre solde PopNow. Le montant maximal est réservé à la réception de la tâche, puis la consommation réelle est facturée à la fin et le solde libéré. Les tâches en échec ne sont pas facturées. Obtenez un devis exact avant de lancer avec POST /api/v1/jobs/quote.

Musique

suno/v6/text-to-audio

Prix

OptionUSD
Par défaut$0.072 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
promptObligatoirestring—jusqu’à 3 000 caractèresDescribe 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.
lyricsFacultatifstring—jusqu’à 5 000 caractèresWords to sing, sung in order. Section tags such as [Verse], [Chorus] and [Bridge] shape the song and are not sung.
generate_lyricsFacultatifbooleantrue—Let the model write the lyrics from the prompt. Only applies when lyrics is empty and instrumental is off.
instrumentalFacultatifbooleanfalse—Generate music with no vocals.
titleFacultatifstring—jusqu’à 80 caractèresSong title (metadata, not sung). Applies with lyrics or an instrumental; otherwise the model names the song.
negative_promptFacultatifstring—jusqu’à 500 caractèresStyles or elements to keep out of the song.
vocal_genderFacultatifstring—female, maleMake a female or male lead vocal more likely. Applies with lyrics.
style_weightFacultatifnumber—de 0 à 1How closely to follow the style in the prompt, from 0 to 1.
weirdnessFacultatifnumber—de 0 à 1How experimental the song may get, from 0 (conventional) to 1 (unusual).
audio_weightFacultatifnumber—de 0 à 1How strongly a persona's audio shapes the result, from 0 to 1. Songs with vocals only.
varietyFacultatifinteger—de 0 à 4How different the two versions are from each other: 0 off, 1 normal (the model default), 2 high, 3 extra, 4 max.
persona_idFacultatifstring—jusqu’à 200 caractèresID of an existing Suno persona to reuse its style or voice.
persona_modelFacultatifstring—style_persona, voice_personaWhether persona_id is a style persona or a voice persona.
image_urlsFacultatifarray<string (uri)>—jusqu’à 5 élémentsUp to 5 mood images (JPEG, PNG or WebP, 10 MB each). Only when the model writes the lyrics.
reference_video_urlsFacultatifarray<string (uri)>—jusqu’à 1 élémentsOne reference video (MP4 or WebM, up to 100 MB and 241 seconds). Only when the model writes the lyrics.
reference_audio_urlsFacultatifarray<string (uri)>—jusqu’à 1 élémentsOne reference audio clip (MP3 or WAV, 6 seconds to 30 minutes). Only when the model writes the lyrics.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

POST /api/v1/jobs/createTask?wait=60
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 réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Studio de chansons

suno/v6/audio-cover

Prix

OptionUSD
Par défaut$0.072 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
audio_urlObligatoirestring——The song to work on: MP3 or WAV, up to 8 minutes. Use a recording you have the rights to.
promptObligatoirestring—jusqu’à 1 000 caractèresThe new style: genre, mood, instruments and voice, up to 1,000 characters. The melody comes from audio_url.
lyricsFacultatifstring—jusqu’à 5 000 caractèresWords for the cover, usually the original lyrics; edit lines to change what is sung. Section tags are not sung.
audio_weightFacultatifnumber—de 0 à 1How much the source recording weighs against the new style, from 0 to 1. A fine adjustment: the melody stays recognizable at every setting.
instrumentalFacultatifbooleanfalse—Make an instrumental cover with no vocals.
titleFacultatifstring—jusqu’à 80 caractèresTitle for the cover (metadata, not sung).
duration_secondsFacultatifinteger—de 10 à 360Target length in seconds (10–360). Suno treats it as a guide, not an exact length.
negative_promptFacultatifstring—jusqu’à 500 caractèresStyles or elements to keep out of the result.
vocal_genderFacultatifstring—female, maleMake a female or male lead vocal more likely.
style_weightFacultatifnumber—de 0 à 1How closely to follow the style in prompt, from 0 to 1.
weirdnessFacultatifnumber—de 0 à 1How experimental the result may get, from 0 (conventional) to 1 (unusual).
varietyFacultatifinteger—de 0 à 4How different the two versions are from each other: 0 off, 1 normal (the default), 2 high, 3 extra, 4 max.
persona_idFacultatifstring—jusqu’à 200 caractèresID of an existing Suno persona to reuse its style or voice.
persona_modelFacultatifstring—style_persona, voice_personaWhether persona_id is a style persona or a voice persona.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans audio_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

POST /api/v1/jobs/createTask
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 réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Studio de chansons

suno/v6/audio-extend

Prix

OptionUSD
Par défaut$0.072 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
audio_urlObligatoirestring——The song to work on: MP3 or WAV, up to 8 minutes. Use a recording you have the rights to.
extend_at_secondsObligatoirenumber—au moins 0Where 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.
promptFacultatifstring—jusqu’à 1 000 caractèresStyle for the new part, up to 1,000 characters; repeat the song's own style to keep it consistent.
lyricsFacultatifstring—jusqu’à 5 000 caractèresWords for the new part. Section tags such as [Verse] and [Chorus] are not sung.
instrumentalFacultatifbooleanfalse—Make the new part instrumental, with no vocals.
titleFacultatifstring—jusqu’à 100 caractèresTitle for the extended song (metadata, not sung).
negative_promptFacultatifstring—jusqu’à 500 caractèresStyles or elements to keep out of the result.
vocal_genderFacultatifstring—female, maleMake a female or male lead vocal more likely.
style_weightFacultatifnumber—de 0 à 1How closely to follow the style in prompt, from 0 to 1.
weirdnessFacultatifnumber—de 0 à 1How experimental the result may get, from 0 (conventional) to 1 (unusual).
audio_weightFacultatifnumber—de 0 à 1How much the source recording weighs against the style in prompt, from 0 to 1.
varietyFacultatifinteger—de 0 à 4How different the two versions are from each other: 0 off, 1 normal (the default), 2 high, 3 extra, 4 max.
persona_idFacultatifstring—jusqu’à 200 caractèresID of an existing Suno persona to reuse its style or voice.
persona_modelFacultatifstring—style_persona, voice_personaWhether persona_id is a style persona or a voice persona.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans audio_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

POST /api/v1/jobs/createTask
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 réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Studio de chansons

suno/v6/audio-inpaint

Prix

OptionUSD
Par défaut$0.03 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
audio_urlObligatoirestring——The song to work on: MP3 or WAV, up to 8 minutes. Use a recording you have the rights to.
start_secondsObligatoirenumber—au moins 0Start of the section to replace, in seconds.
end_secondsObligatoirenumber—au moins 0End of the section to replace, in seconds: at least 10 seconds after start_seconds, and the section may cover at most half the song.
lyricsObligatoirestring—jusqu’à 5 000 caractèresWords the replaced section should sing.
full_lyricsObligatoirestring—jusqu’à 5 000 caractèresThe whole song's lyrics after the change: the new section in place, the other sections as they were.
promptObligatoirestring—jusqu’à 1 000 caractèresThe song's style: genre, mood, instruments and voice. Repeat the original style so the section blends in.
titleFacultatifstringUntitledjusqu’à 100 caractèresTitle for the edited song (metadata, not sung).
negative_promptFacultatifstring—jusqu’à 500 caractèresStyles or elements to keep out of the result.
vocal_genderFacultatifstring—female, maleMake a female or male lead vocal more likely.
style_weightFacultatifnumber—de 0 à 1How closely to follow the style in prompt, from 0 to 1.
weirdnessFacultatifnumber—de 0 à 1How experimental the result may get, from 0 (conventional) to 1 (unusual).
audio_weightFacultatifnumber—de 0 à 1How much the source recording weighs against the style in prompt, from 0 to 1.
varietyFacultatifinteger—de 0 à 4How different the two versions are from each other: 0 off, 1 normal (the default), 2 high, 3 extra, 4 max.
persona_idFacultatifstring—jusqu’à 200 caractèresID of an existing Suno persona to reuse its style or voice.
persona_modelFacultatifstring—style_persona, voice_personaWhether persona_id is a style persona or a voice persona.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans audio_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

POST /api/v1/jobs/createTask
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 réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Séparateur de pistes

suno/v6/audio-separation

Prix

OptionUSD
stem_name = accordion$0.12 par requête
stem_name = acoustic_guitar$0.12 par requête
stem_name = arpeggiator$0.12 par requête
stem_name = backing_vocals$0.12 par requête
stem_name = banjo$0.12 par requête
stem_name = bass$0.12 par requête
stem_name = bells$0.12 par requête
stem_name = brass_section$0.12 par requête
stem_name = cello$0.12 par requête
stem_name = choir$0.12 par requête
stem_name = clarinet$0.12 par requête
stem_name = cymbals$0.12 par requête
stem_name = digital_piano$0.12 par requête
stem_name = distorted_electric_guitar$0.12 par requête
stem_name = drum_kit$0.12 par requête
stem_name = electric_bass$0.12 par requête
stem_name = electric_guitar$0.12 par requête
stem_name = electric_piano$0.12 par requête
stem_name = electronic_drum_kit$0.12 par requête
stem_name = fiddle$0.12 par requête
stem_name = flute$0.12 par requête
stem_name = french_horn$0.12 par requête
stem_name = glockenspiel$0.12 par requête
stem_name = guitar$0.12 par requête
stem_name = hand_clap$0.12 par requête
stem_name = harmonica$0.12 par requête
stem_name = harp$0.12 par requête
stem_name = horns$0.12 par requête
stem_name = keyboards$0.12 par requête
stem_name = kick$0.12 par requête
stem_name = lap_steel_guitar$0.12 par requête
stem_name = lead_electric_guitar$0.12 par requête
stem_name = lead_vocal$0.12 par requête
stem_name = mandolin$0.12 par requête
stem_name = marimba$0.12 par requête
stem_name = orchestra$0.12 par requête
stem_name = organ$0.12 par requête
stem_name = pedal_steel_guitar$0.12 par requête
stem_name = percussion$0.12 par requête
stem_name = piano$0.12 par requête
stem_name = rhythm_acoustic_guitar$0.12 par requête
stem_name = rhythm_electric_guitar$0.12 par requête
stem_name = risers$0.12 par requête
stem_name = saxophone$0.12 par requête
stem_name = shaker$0.12 par requête
stem_name = snare$0.12 par requête
stem_name = sound_effects$0.12 par requête
stem_name = string_section$0.12 par requête
stem_name = synth$0.12 par requête
stem_name = synth_bass$0.12 par requête
stem_name = synth_brass$0.12 par requête
stem_name = synth_keys$0.12 par requête
stem_name = synth_lead$0.12 par requête
stem_name = synth_pad$0.12 par requête
stem_name = synth_strings$0.12 par requête
stem_name = synth_voice$0.12 par requête
stem_name = tambourine$0.12 par requête
stem_name = tenor_saxophone$0.12 par requête
stem_name = timpani$0.12 par requête
stem_name = trombone$0.12 par requête
stem_name = trumpet$0.12 par requête
stem_name = upright_bass$0.12 par requête
stem_name = vibraphone$0.12 par requête
stem_name = violin$0.12 par requête
stem_name = woodwinds$0.12 par requête
separation_mode = all_stems$0.3 par requête

Paramètres

ChampTypeValeur par défautValeurs admisesRôle
audio_urlObligatoirestring——The mixed song to separate: MP3 or WAV, up to 20 MB. Any song works, not only songs made with Suno.
separation_modeFacultatifstring—two_stems, all_stemstwo_stems: vocals and background. all_stems: twelve instrument tracks, silent where an instrument is absent. Leave it out when you send stem_name.
stem_nameFacultatifstring—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.

Exemple de requête

Cette requête fonctionne telle quelle ; les champs omis gardent leur valeur par défaut. Placez d’abord votre clé dans POPNOW_API_KEY.

L’exemple utilise des fichiers d’exemple PopNow dans audio_url. Remplacez-les par vos propres liens HTTPS publics, fichiers envoyés ou ressources enregistrées.

POST /api/v1/jobs/createTask
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 réponse contient tout de suite un taskId. Récupérez le résultat avec GET /api/v1/jobs/recordInfo, ou ajoutez callBackUrl pour être prévenu.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Pour aller plus loin

Sur cette page