Suno
Sign in to try Suno
Sign in with your Google account and top up credits to get started.
Sign in with GoogleUse via API
Base URL: https://adverraai.com/hub/api/v1 · Authenticate with Authorization: Bearer YOUR_API_KEY
# 1) Submit a task
curl https://adverraai.com/hub/api/v1/music/generations \
-H "Authorization: Bearer $ADVERRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "suno",
"prompt": "a cinematic shot of a city at night"
}'
# => {"id":"task_xxx","status":"queued",...}
# 2) Check status (every 3-5 seconds until status = completed)
curl https://adverraai.com/hub/api/v1/tasks/task_xxx -H "Authorization: Bearer $ADVERRA_API_KEY"
# => {"status":"completed","output":[{"type":"audio","url":"https://..."}]}
import requests, time
API = "https://adverraai.com/hub/api/v1"
H = {"Authorization": "Bearer YOUR_API_KEY"}
task = requests.post(f"{API}/music/generations", headers=H, json={
"model": "suno",
"prompt": "a cinematic shot of a city at night"
}).json()
while task["status"] not in ("completed", "failed"):
time.sleep(4)
task = requests.get(f"{API}/tasks/{task['id']}", headers=H).json()
print(task["status"], [o["url"] for o in task["output"]], task["credits_charged"])
const API = "https://adverraai.com/hub/api/v1", H = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" };
let task = await (await fetch(`${API}/music/generations`, { method: "POST", headers: H, body: JSON.stringify({
model: "suno",
"prompt": "a cinematic shot of a city at night"
}) })).json();
while (!["completed", "failed"].includes(task.status)) {
await new Promise(r => setTimeout(r, 4000));
task = await (await fetch(`${API}/tasks/${task.id}`, { headers: H })).json();
}
console.log(task.output);
Common parameters: prompt, image_urls, size / aspect_ratio, resolution, duration, n, negative_prompt, seed. Credits are reserved at an estimated price when you submit and adjusted to the actual cost when the task finishes (failed tasks are fully refunded).
Parameters for this model
Send as JSON in the request body. Fields marked * are required.
| Parameter | Type | Allowed values | Default | Description |
|---|---|---|---|---|
model * |
string | – | – | ID of the model to call — suno |
action |
string | generation, lyrics, inspo, sample, mashup, sounds, upsample-tags, extend, cover-song, upload-cover, upload-extend, replace-music, remove-section, crop, fade-in, fade-out, adjust-speed, concat, remaster, stems, stems-all, add-vocals, add-instrumental, add-stem, create-voice, persona, create-model, upload, vox, wav, generate-mp4, midi, aligned-lyrics, bpm | generation | Suno action (34 modes) — see the action table below; each action takes different parameters |
task_id |
string | – | – | Hub task ID of the source song (for actions that edit an existing song) |
audio_index |
integer | 1, 2, … | 1 | Which track of the source task (see tracks[] in the result) |
custom |
boolean | true, false | false | Custom mode with your own lyrics, style and title |
instrumental |
boolean | true, false | false | Instrumental only, without vocals |
version |
string | v6, v6-wild, v6-mini | v6 | Model version to use |
prompt |
string | – | – | Text describing what to generate |
title |
string | – | – | Title of the piece |
style |
string | – | – | Style of the result |
negative_tags |
string | – | – | Negative style tags (styles you don't want). **Only takes effect when custom=true**. |
auto_lyrics |
boolean | true, false | false | true=rewrite the provided lyrics creatively. **Only takes effect when custom=true**. |
persona_id |
string | – | – | Persona Style ID. Only applies when custom=true is used and mutually exclusive with custom_model_id. |
vocal_gender |
string | Male, Female | – | Gender of the vocals |
style_weight |
number | – | – | Style weight, 0.00–1.00. Validated and effective in both modes. |
weirdness_constraint |
number | – | – | creative score, 0.00–1.00. Both modes will validate and take effect. |
audio_weight |
number | – | – | Audio weight, 0.00–1.00. Validated and effective in both modes. |
variety |
string | off, normal, high, extra, max | – | Style variation: off / normal / high / extra / max. Optional; there is no fixed default. |
max_mode |
boolean | true, false | false | Whether to enable Max mode. Enable it requires custom=true and charges at twice the normal price. |
audio_format |
string | mp3, m4a, wav | – | Output audio format: mp3 / m4a / wav. If omitted, the service chooses the default. |
duration |
number | – | – | Length of the result in seconds |
โหมดทั้งหมดของ Suno (ใส่ใน action)
ส่งที่ POST https://adverraai.com/hub/api/v1/generate ด้วย "model": "suno" + "action": "…" (ไม่ใส่ = generation) · โหมดที่ต่อยอดจากเพลงเดิมใช้ task_id = รหัสงานใน Hub ที่ได้ตอนสร้างเพลง และ audio_index = เพลงที่เท่าไรในงานนั้น (ดูจาก tracks[] ในผลลัพธ์)
| action | ทำอะไร | ต้องใส่ | ใส่เพิ่มได้ |
|---|---|---|---|
| 🎵 สร้างเพลง | |||
generation | สร้างเพลง แต่งเพลงจากคำบรรยาย หรือใส่เนื้อร้องเอง (โหมดละเอียด) | — | custom, instrumental, version, custom_model_id, prompt, title, style, negative_tags, auto_lyrics, persona_id, vocal_gender, style_weight, weirdness_constraint, audio_weight, variety, max_mode, audio_format, duration |
lyrics | แต่งเนื้อเพลง ให้ AI แต่งเนื้อร้องจากหัวข้อ (ได้เป็นข้อความ ไม่มีเสียง) | prompt | lyrics_model |
inspo | แต่งจากเพลงตัวอย่าง ใช้เพลง 1–4 เพลงเป็นแรงบันดาลใจ สร้างเพลงใหม่ | audio_urls | version, custom_model_id, prompt, title, tags, negative_tags, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, auto_lyrics, variety, max_mode, audio_format |
sample | ทำเพลงจากท่อนตัวอย่าง ตัดช่วงหนึ่งของเพลงเดิมมาเป็นแซมเปิลแล้วแต่งเพลงใหม่ | task_id, start_s, end_s | audio_index, instrumental, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, auto_lyrics, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, variety, max_mode, audio_format |
mashup | ผสม 2 เพลง (Mashup) รวม 2 เพลงที่มีอยู่ให้เป็นเพลงใหม่ | task_ids | audio_indexes, instrumental, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, auto_lyrics, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, persona_id, variety, max_mode, audio_format |
sounds | เสียงเอฟเฟกต์ สร้างเสียงประกอบจากคำบรรยาย (แบบครั้งเดียวหรือวนลูป) | prompt | version, type, bpm, key, audio_format |
upsample-tags | ขยายสไตล์เพลง ให้ AI เกลาคำอธิบายแนวเพลง (style tags) ให้ละเอียดขึ้น | tags | |
| ✂️ แก้ไข / ต่อยอดเพลง | |||
extend | ต่อเพลงให้ยาวขึ้น ต่อเพลงที่มีอยู่ตั้งแต่วินาทีที่กำหนด | task_id, continue_at | audio_index, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, vocal_gender, style_weight, weirdness, weirdness_constraint, audio_weight, auto_lyrics, persona_id, duration_s, variety, max_mode, audio_format |
cover-song | คัฟเวอร์เปลี่ยนแนว ร้องเพลงเดิมใหม่ในแนวเพลงอื่น | task_id | audio_index, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, persona_id, duration_s, variety, max_mode, audio_format |
upload-cover | อัปโหลดเพลงแล้วคัฟเวอร์ ใช้ไฟล์เพลงของคุณเองแล้วทำคัฟเวอร์ | audio_url | version, custom_model_id, custom, instrumental, gpt_description, prompt, tags, title, negative_tags, style_weight, weirdness, audio_weight, auto_lyrics, vocal_gender, persona_id, duration_s, variety, max_mode, audio_format |
upload-extend | อัปโหลดเพลงแล้วต่อเพลง ใช้ไฟล์เพลงของคุณเองแล้วต่อให้ยาวขึ้น | audio_url, continue_at | version, custom_model_id, prompt, tags, title, negative_tags, style_weight, weirdness, audio_weight, auto_lyrics, vocal_gender, persona_id, duration_s, variety, max_mode, audio_format |
replace-music | แทนที่ท่อน สร้างช่วงเวลาที่เลือกใหม่ (เปลี่ยนเนื้อ/ทำนองบางท่อน) | task_id, start_s, end_s | audio_index, infill_lyrics, version, custom_model_id, prompt, title, tags, negative_tags, variety, max_mode, audio_format |
remove-section | ลบท่อน ตัดช่วงเวลาที่ไม่ต้องการออก | task_id, start_s, end_s | audio_index |
crop | ตัดเหลือบางช่วง เก็บไว้เฉพาะช่วงเวลาที่เลือก | task_id, start_s, end_s | audio_index |
fade-in | เฟดเข้า ค่อย ๆ ดังขึ้นตอนต้นเพลง | task_id, duration_s | audio_index, title |
fade-out | เฟดออก ค่อย ๆ เบาลงตอนท้ายเพลง | task_id, duration_s | audio_index, title |
adjust-speed | ปรับความเร็ว เร่งหรือหน่วงเพลง (คงคีย์เดิมได้) | task_id, speed | audio_index, keep_pitch, title |
concat | รวมเป็นเพลงเต็ม รวมท่อนที่ต่อไว้ให้เป็นเพลงเดียว | task_id | audio_index, audio_format |
remaster | มาสเตอร์ริ่ง ปรับคุณภาพเสียงให้ใสและเต็มขึ้น | task_id | audio_index, variation_category, audio_format |
| 🎚️ แยก / เพิ่มแทร็ก | |||
stems | แยกแทร็กเดียว ดึงเสียงร้อง กลอง เบส ฯลฯ ออกมาทีละแทร็ก | task_id | audio_index, stem_type, audio_format |
stems-all | แยกทุกแทร็ก แยกเพลงออกเป็นหลายแทร็กพร้อมกัน | task_id | audio_index, audio_format |
add-vocals | ใส่เสียงร้องให้ดนตรี เพิ่มเสียงร้องลงบนดนตรี/บีตที่มีอยู่ | task_id | audio_index, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, variety, max_mode, audio_format |
add-instrumental | ใส่ดนตรีให้เสียงร้อง เพิ่มดนตรีประกอบให้เสียงร้องที่มีอยู่ | task_id | audio_index, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, variety, max_mode, audio_format |
add-stem | เพิ่มแทร็กเครื่องดนตรี วางแทร็กใหม่ทับลงบนเพลงเดิม | task_id | audio_index, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, style_weight, weirdness, weirdness_constraint, audio_weight, variety, max_mode, audio_format |
| 🎤 เสียงร้อง / นักร้อง AI | |||
create-voice | สร้างเสียงร้องจากไฟล์ ดึงเสียงนักร้องจากไฟล์เพลงมาใช้ซ้ำ | audio_url | |
persona | สร้างนักร้อง (Persona) สร้างนักร้อง AI จากเพลงที่ทำไว้ แล้วใช้ร้องเพลงใหม่ด้วย persona_id | task_id, name | audio_index, describe, styles, vocal_start_s, vocal_end_s |
create-model | สร้างโมเดลเพลงของคุณเอง สอนโมเดลจากเพลงตัวอย่าง 6–24 เพลง (ใช้เวลาราว 20 นาที) | name, audio_urls | |
upload | นำเข้าไฟล์เพลง นำไฟล์เพลงของคุณเข้าระบบ เพื่อใช้กับโหมดอื่น (คัฟเวอร์ ต่อเพลง แยกแทร็ก) | audioFilePath | |
vox | ดึงท่อนเสียงร้อง (รุ่นเก่า) แบบเดิม — แนะนำใช้ "สร้างนักร้อง" แทน | task_id | audio_index, vocal_start_s, vocal_end_s |
| 📊 วิเคราะห์ / ส่งออก | |||
wav | ดาวน์โหลดไฟล์ MP3 / M4A / WAV ขอไฟล์คุณภาพสูงของเพลง | task_id | audio_index, formats, format |
generate-mp4 | ทำมิวสิกวิดีโอ (MV) สร้างวิดีโอประกอบเพลง | task_id | audio_index |
midi | แปลงเป็น MIDI ได้ไฟล์ MIDI ของเพลง | task_id | audio_index |
aligned-lyrics | เนื้อร้องตามเวลา เนื้อร้องพร้อมเวลาแต่ละบรรทัด (ทำซับ/คาราโอเกะ) | task_id | audio_index |
bpm | วัดจังหวะ (BPM) วิเคราะห์ความเร็วจังหวะเพลง | task_id | audio_index |
🤖 ต่อกับ AI Agent
คัดลอกข้อความนี้ไปวางให้ AI Agent (เช่น Claude, ChatGPT, Gemini, Cursor, Codex) แล้วมันจะเรียกใช้โมเดลนี้ผ่านระบบของเราได้ทันที · ในข้อความมีวิธีเชื่อมต่อ พารามิเตอร์ และวิธีรับผลงานครบ · เลือกคีย์ด้านบนเพื่อใส่ในข้อความที่จะคัดลอก
# Adverra AI Hub — Suno (`suno`)
You can use this AI model through the Adverra AI Hub REST API. Follow these instructions exactly.
## Connection
- Base URL: https://adverraai.com/hub/api/v1
- Header: `Authorization: Bearer <ADVERRA_API_KEY>` (read the credential from the ADVERRA_API_KEY environment variable). Never print the key.
- Header: `Content-Type: application/json`
- Endpoint: `POST https://adverraai.com/hub/api/v1/generate`
- Credits are deducted from the user's Adverra balance (check with `GET https://adverraai.com/hub/api/v1/me`).
## Example request body
```json
{
"model": "suno",
"prompt": "a cute cat wearing sunglasses"
}
```
## Parameters
- `model` (string, required) — ID of the model to call — suno
- `action` (string, optional) — Suno action (34 modes) — see the action table below; each action takes different parameters · allowed: generation, lyrics, inspo, sample, mashup, sounds, upsample-tags, extend, cover-song, upload-cover, upload-extend, replace-music, remove-section, crop, fade-in, fade-out, adjust-speed, concat, remaster, stems, stems-all, add-vocals, add-instrumental, add-stem, create-voice, persona, create-model, upload, vox, wav, generate-mp4, midi, aligned-lyrics, bpm · default: generation
- `task_id` (string, optional) — Hub task ID of the source song (for actions that edit an existing song)
- `audio_index` (integer, optional) — Which track of the source task (see tracks[] in the result) · allowed: 1, 2, … · default: 1
- `custom` (boolean, optional) — Custom mode with your own lyrics, style and title · allowed: true, false · default: false
- `instrumental` (boolean, optional) — Instrumental only, without vocals · allowed: true, false · default: false
- `version` (string, optional) — Model version to use · allowed: v6, v6-wild, v6-mini · default: v6
- `prompt` (string, optional) — Text describing what to generate
- `title` (string, optional) — Title of the piece
- `style` (string, optional) — Style of the result
- `negative_tags` (string, optional) — Negative style tags (styles you don't want). **Only takes effect when custom=true**.
- `auto_lyrics` (boolean, optional) — true=rewrite the provided lyrics creatively. **Only takes effect when custom=true**. · allowed: true, false · default: false
- `persona_id` (string, optional) — Persona Style ID. Only applies when custom=true is used and mutually exclusive with custom_model_id.
- `vocal_gender` (string, optional) — Gender of the vocals · allowed: Male, Female
- `style_weight` (number, optional) — Style weight, 0.00–1.00. Validated and effective in both modes.
- `weirdness_constraint` (number, optional) — creative score, 0.00–1.00. Both modes will validate and take effect.
- `audio_weight` (number, optional) — Audio weight, 0.00–1.00. Validated and effective in both modes.
- `variety` (string, optional) — Style variation: off / normal / high / extra / max. Optional; there is no fixed default. · allowed: off, normal, high, extra, max
- `max_mode` (boolean, optional) — Whether to enable Max mode. Enable it requires custom=true and charges at twice the normal price. · allowed: true, false · default: false
- `audio_format` (string, optional) — Output audio format: mp3 / m4a / wav. If omitted, the service chooses the default. · allowed: mp3, m4a, wav
- `duration` (number, optional) — Length of the result in seconds
## Suno actions (send `"action"` in the body; default `generation`)
All actions use the same endpoint `POST https://adverraai.com/hub/api/v1/generate` with `"model": "suno"`. Actions that work on an existing song take `task_id` = the Hub task ID returned when that song was made (e.g. `task_abc123`) and `audio_index` = which track of that task (1-based, see `tracks[].index` in the task result). Upload your own audio first with action `upload` (`audioFilePath` = public URL) and use that task's ID with `audio_index: 1`.
- `generation` — สร้างเพลง (แต่งเพลงจากคำบรรยาย หรือใส่เนื้อร้องเอง (โหมดละเอียด)) · optional: custom, instrumental, version, custom_model_id, prompt, title, style, negative_tags, auto_lyrics, persona_id, vocal_gender, style_weight, weirdness_constraint, audio_weight, variety, max_mode, audio_format, duration
- `lyrics` — แต่งเนื้อเพลง (ให้ AI แต่งเนื้อร้องจากหัวข้อ (ได้เป็นข้อความ ไม่มีเสียง)) · required: prompt · optional: lyrics_model
- `inspo` — แต่งจากเพลงตัวอย่าง (ใช้เพลง 1–4 เพลงเป็นแรงบันดาลใจ สร้างเพลงใหม่) · required: audio_urls · optional: version, custom_model_id, prompt, title, tags, negative_tags, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, auto_lyrics, variety, max_mode, audio_format
- `sample` — ทำเพลงจากท่อนตัวอย่าง (ตัดช่วงหนึ่งของเพลงเดิมมาเป็นแซมเปิลแล้วแต่งเพลงใหม่) · required: task_id, start_s, end_s · optional: audio_index, instrumental, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, auto_lyrics, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, variety, max_mode, audio_format
- `mashup` — ผสม 2 เพลง (Mashup) (รวม 2 เพลงที่มีอยู่ให้เป็นเพลงใหม่) · required: task_ids · optional: audio_indexes, instrumental, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, auto_lyrics, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, persona_id, variety, max_mode, audio_format
- `sounds` — เสียงเอฟเฟกต์ (สร้างเสียงประกอบจากคำบรรยาย (แบบครั้งเดียวหรือวนลูป)) · required: prompt · optional: version, type, bpm, key, audio_format
- `upsample-tags` — ขยายสไตล์เพลง (ให้ AI เกลาคำอธิบายแนวเพลง (style tags) ให้ละเอียดขึ้น) · required: tags
- `extend` — ต่อเพลงให้ยาวขึ้น (ต่อเพลงที่มีอยู่ตั้งแต่วินาทีที่กำหนด) · required: task_id, continue_at · optional: audio_index, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, vocal_gender, style_weight, weirdness, weirdness_constraint, audio_weight, auto_lyrics, persona_id, duration_s, variety, max_mode, audio_format
- `cover-song` — คัฟเวอร์เปลี่ยนแนว (ร้องเพลงเดิมใหม่ในแนวเพลงอื่น) · required: task_id · optional: audio_index, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, persona_id, duration_s, variety, max_mode, audio_format
- `upload-cover` — อัปโหลดเพลงแล้วคัฟเวอร์ (ใช้ไฟล์เพลงของคุณเองแล้วทำคัฟเวอร์) · required: audio_url · optional: version, custom_model_id, custom, instrumental, gpt_description, prompt, tags, title, negative_tags, style_weight, weirdness, audio_weight, auto_lyrics, vocal_gender, persona_id, duration_s, variety, max_mode, audio_format
- `upload-extend` — อัปโหลดเพลงแล้วต่อเพลง (ใช้ไฟล์เพลงของคุณเองแล้วต่อให้ยาวขึ้น) · required: audio_url, continue_at · optional: version, custom_model_id, prompt, tags, title, negative_tags, style_weight, weirdness, audio_weight, auto_lyrics, vocal_gender, persona_id, duration_s, variety, max_mode, audio_format
- `replace-music` — แทนที่ท่อน (สร้างช่วงเวลาที่เลือกใหม่ (เปลี่ยนเนื้อ/ทำนองบางท่อน)) · required: task_id, start_s, end_s · optional: audio_index, infill_lyrics, version, custom_model_id, prompt, title, tags, negative_tags, variety, max_mode, audio_format
- `remove-section` — ลบท่อน (ตัดช่วงเวลาที่ไม่ต้องการออก) · required: task_id, start_s, end_s · optional: audio_index
- `crop` — ตัดเหลือบางช่วง (เก็บไว้เฉพาะช่วงเวลาที่เลือก) · required: task_id, start_s, end_s · optional: audio_index
- `fade-in` — เฟดเข้า (ค่อย ๆ ดังขึ้นตอนต้นเพลง) · required: task_id, duration_s · optional: audio_index, title
- `fade-out` — เฟดออก (ค่อย ๆ เบาลงตอนท้ายเพลง) · required: task_id, duration_s · optional: audio_index, title
- `adjust-speed` — ปรับความเร็ว (เร่งหรือหน่วงเพลง (คงคีย์เดิมได้)) · required: task_id, speed · optional: audio_index, keep_pitch, title
- `concat` — รวมเป็นเพลงเต็ม (รวมท่อนที่ต่อไว้ให้เป็นเพลงเดียว) · required: task_id · optional: audio_index, audio_format
- `remaster` — มาสเตอร์ริ่ง (ปรับคุณภาพเสียงให้ใสและเต็มขึ้น) · required: task_id · optional: audio_index, variation_category, audio_format
- `stems` — แยกแทร็กเดียว (ดึงเสียงร้อง กลอง เบส ฯลฯ ออกมาทีละแทร็ก) · required: task_id · optional: audio_index, stem_type, audio_format
- `stems-all` — แยกทุกแทร็ก (แยกเพลงออกเป็นหลายแทร็กพร้อมกัน) · required: task_id · optional: audio_index, audio_format
- `add-vocals` — ใส่เสียงร้องให้ดนตรี (เพิ่มเสียงร้องลงบนดนตรี/บีตที่มีอยู่) · required: task_id · optional: audio_index, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, variety, max_mode, audio_format
- `add-instrumental` — ใส่ดนตรีให้เสียงร้อง (เพิ่มดนตรีประกอบให้เสียงร้องที่มีอยู่) · required: task_id · optional: audio_index, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, style_weight, weirdness, weirdness_constraint, audio_weight, vocal_gender, variety, max_mode, audio_format
- `add-stem` — เพิ่มแทร็กเครื่องดนตรี (วางแทร็กใหม่ทับลงบนเพลงเดิม) · required: task_id · optional: audio_index, version, custom_model_id, custom, prompt, gpt_description, title, tags, negative_tags, style_weight, weirdness, weirdness_constraint, audio_weight, variety, max_mode, audio_format
- `create-voice` — สร้างเสียงร้องจากไฟล์ (ดึงเสียงนักร้องจากไฟล์เพลงมาใช้ซ้ำ) · required: audio_url
- `persona` — สร้างนักร้อง (Persona) (สร้างนักร้อง AI จากเพลงที่ทำไว้ แล้วใช้ร้องเพลงใหม่ด้วย persona_id) · required: task_id, name · optional: audio_index, describe, styles, vocal_start_s, vocal_end_s
- `create-model` — สร้างโมเดลเพลงของคุณเอง (สอนโมเดลจากเพลงตัวอย่าง 6–24 เพลง (ใช้เวลาราว 20 นาที)) · required: name, audio_urls
- `upload` — นำเข้าไฟล์เพลง (นำไฟล์เพลงของคุณเข้าระบบ เพื่อใช้กับโหมดอื่น (คัฟเวอร์ ต่อเพลง แยกแทร็ก)) · required: audioFilePath
- `vox` — ดึงท่อนเสียงร้อง (รุ่นเก่า) (แบบเดิม — แนะนำใช้ "สร้างนักร้อง" แทน) · required: task_id · optional: audio_index, vocal_start_s, vocal_end_s
- `wav` — ดาวน์โหลดไฟล์ MP3 / M4A / WAV (ขอไฟล์คุณภาพสูงของเพลง) · required: task_id · optional: audio_index, formats, format
- `generate-mp4` — ทำมิวสิกวิดีโอ (MV) (สร้างวิดีโอประกอบเพลง) · required: task_id · optional: audio_index
- `midi` — แปลงเป็น MIDI (ได้ไฟล์ MIDI ของเพลง) · required: task_id · optional: audio_index
- `aligned-lyrics` — เนื้อร้องตามเวลา (เนื้อร้องพร้อมเวลาแต่ละบรรทัด (ทำซับ/คาราโอเกะ)) · required: task_id · optional: audio_index
- `bpm` — วัดจังหวะ (BPM) (วิเคราะห์ความเร็วจังหวะเพลง) · required: task_id · optional: audio_index
Example (extend a song): `{"model":"suno","action":"extend","task_id":"task_abc123","audio_index":1,"continue_at":60,"prompt":"[Verse 2] ..."}`
Example (separate vocals): `{"model":"suno","action":"stems","task_id":"task_abc123","stem_type":"lead_vocal"}`
Result: `output[]` = files, `tracks[]` = songs in order (`index`, `title`, `duration`, `lyrics`, `file` = index into output), `text` = lyrics / BPM / persona_id / model_id and other values for non-audio actions.
## Result
Returns a task object `{ "id": "task_...", "status": "queued" }`.
Poll `GET https://adverraai.com/hub/api/v1/tasks/{id}` every 5 seconds until `status` is `completed` or `failed`, then download every `output[].url` (links expire after about 24 hours).
If the user already has many jobs running, new jobs are queued automatically (`queued_waiting: true`) — keep polling, do not resubmit.
Optional: add `"wait": true` to the request to wait up to ~100 seconds for the result in one call.
## Errors
- 401 = invalid API key · 402 = not enough credits (tell the user to top up at https://adverraai.com/hub/topup.php) · 429 = too many requests (wait and retry) · 5xx = temporary error (credits are refunded automatically).
## MCP (optional)
Agents that support MCP can connect to `https://adverraai.com/hub/mcp.php` instead (setup guide: https://adverraai.com/hub/connect.php).
About this model
Suno is a Music model by Adverra AI Hub
Suno is an advanced AI model designed for comprehensive music generation. It empowers users to create full songs from simple text prompts, encompassing vocals, melodies, arrangements, and lyrics. This model is ideal for rapid prototyping and generating musical content across various applications.
Key features
- Generates complete songs from text prompts
- Includes vocals, melodies, and arrangements
- Supports custom lyrics input
- Offers different model versions: V6, V6 Wild, and V6 Mini
- Allows for extending and covering tracks
- Capable of splitting tracks into stems
- Provides inspiration mode for creative ideas
- Supports audio-to-audio transformations
What you can do
- Quickly producing music demos
- Generating musical ideas and concepts
- Creating soundtracks for short-form videos
- Developing advertising music
- Prototyping new songs
- Crafting instrumental pieces
- Adding AI-generated vocals to tracks
- Remixing and extending existing audio
Specs
- Input: Text prompts
- Output: Audio (complete songs, instrumentals, vocals)
- Supported models: Suno V6, V6 Wild, V6 Mini
- Capabilities: Text to Audio, Audio to Audio
Prompt tips
- Be specific with genre and mood (e.g., 'upbeat pop song with a catchy chorus').
- Include details about instruments or vocal styles (e.g., 'acoustic guitar ballad with a soulful female vocalist').
- Provide custom lyrics for more control over the song's narrative.
- Experiment with different model versions (V6, V6 Wild, V6 Mini) to find the best fit for your desired output.
- Use descriptive adjectives for atmosphere and emotion (e.g., 'melancholy piano piece with a hopeful melody').
Examples
Sample videos from the model developer's official channels