PopNowDocs API
Contenuto principale

Riferimento API di Suno v6 Mini

Due canzoni veloci con voce da una sola frase

Con una sola chiave API di PopNow chiami Suno v6 Mini dal tuo codice. Qui trovi gli ID del modello da inviare, ogni campo di input accettato, quanti crediti costa ogni richiesta 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
10.8 crediti per richiesta ($0.108)

1 credito = 0,01 $. All’accettazione l’attività trattiene l’importo massimo possibile e alla fine addebita il consumo reale, arrotondato al credito superiore; il resto viene sbloccato. Le attività non riuscite non vengono addebitate. Per conoscere la cifra esatta prima di eseguire, chiama POST /api/v1/jobs/quote.

Musica

suno/v6-mini/text-to-audio

Prezzo

OpzioneCrediti (per richiesta)Dollari USA
Predefinito10.8$0.108

Parametri

CampoTipoPredefinitoValori ammessiA cosa serve
promptObbligatoriostring—fino a 3000 caratteriDescribe 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.
lyricsFacoltativostring—fino a 5000 caratteriWords to sing, sung in order. Section tags such as [Verse], [Chorus] and [Bridge] shape the song and are not sung.
generate_lyricsFacoltativobooleantrue—Let the model write the lyrics from the prompt. Only applies when lyrics is empty and instrumental is off.
instrumentalFacoltativobooleanfalse—Generate music with no vocals.
titleFacoltativostring—fino a 80 caratteriSong title (metadata, not sung). Applies with lyrics or an instrumental; otherwise the model names the song.
negative_promptFacoltativostring—fino a 500 caratteriStyles or elements to keep out of the song.
vocal_genderFacoltativostring—female, maleMake a female or male lead vocal more likely. Applies with lyrics.
style_weightFacoltativonumber—da 0 a 1How closely to follow the style in the prompt, from 0 to 1.
weirdnessFacoltativonumber—da 0 a 1How experimental the song may get, from 0 (conventional) to 1 (unusual).
audio_weightFacoltativonumber—da 0 a 1How strongly a persona's audio shapes the result, from 0 to 1. Songs with vocals only.
varietyFacoltativointeger—da 0 a 4How different the two versions are from each other: 0 off, 1 normal (the model default), 2 high, 3 extra, 4 max.
persona_idFacoltativostring—fino a 200 caratteriID of an existing Suno persona to reuse its style or voice.
persona_modelFacoltativostring—style_persona, voice_personaWhether persona_id is a style persona or a voice persona.
image_urlsFacoltativoarray<string (uri)>—fino a 5 elementiUp to 5 mood images (JPEG, PNG or WebP, 10 MB each). Only when the model writes the lyrics.
reference_video_urlsFacoltativoarray<string (uri)>—fino a 1 elementiOne reference video (MP4 or WebM, up to 100 MB and 241 seconds). Only when the model writes the lyrics.
reference_audio_urlsFacoltativoarray<string (uri)>—fino a 1 elementiOne 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.

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-mini/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.

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"

Passi successivi

In questa pagina