promptstring필수Mini의 아이디어를 장르, 분위기, 악기로 전달합니다. 직접 가사나 instrumental은 1,000자, 자동 작사는 3,000자까지 입력합니다. Mini 추가 요금은 없습니다.
- 기본값
- 지정되지 않음
- 제약 조건
- minLength:1maxLength:3000
가벼운 노래 생성 모델 Suno v6 Mini API. 한 문장이나 직접 쓴 가사를 보내면 보컬이 담긴 완성 MP3 두 곡이 돌아오며, 요금은 v6와 같은 정액입니다.
예시는 선택한 엔드포인트의 공개 파라미터 정의를 사용합니다. API 키와 예시 미디어를 바꾼 뒤 서버에서 요청하세요.
SDK 및 연동https://api.spicyapi.ai/api/v1/jobs/createTaskAPI 키는 서버 환경 변수 SPICY_API_KEY에 보관하세요. Bearer 인증을 사용하고 JSON 요청에는 Content-Type: application/json을 지정하세요.
Authorization: Bearer $SPICY_API_KEY# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "suno/v6-mini/text-to-audio",
"input": {
"prompt": "Calm ambient pads with a slow rising motif"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"이 모델의 입력 스키마에서 뽑아낸 예시입니다. API도 모든 요청을 같은 스키마로 검증합니다.
이 필드들은 요청 본문의 input 객체 안에 넣습니다. 이름과 타입은 API와 동일합니다. 기본값이 적혀 있지 않은 필드는 임의로 가정하지 마세요.
promptstring필수Mini의 아이디어를 장르, 분위기, 악기로 전달합니다. 직접 가사나 instrumental은 1,000자, 자동 작사는 3,000자까지 입력합니다. Mini 추가 요금은 없습니다.
reference_audio_urlsarray<string>선택Mini에 사용 권한이 있는 MP3 또는 WAV 1개를 참고로 제공합니다. 길이는 6초~30분, 용량은 최대 500MB입니다. Mini 참조는 lyrics를 비우고 instrumental을 끈 뒤 generate_lyrics를 켜서 사용합니다. Mini 추가 요금은 없습니다.
reference_video_urlsarray<string>선택Mini 곡의 소재가 될 MP4 또는 WebM 1개를 전달합니다. 최대 100MB이며 길이는 241초 이내입니다. Mini 참조는 lyrics를 비우고 instrumental을 끈 뒤 generate_lyrics를 켜서 사용합니다. Mini 추가 요금은 없습니다.
image_urlsarray<string>선택Mini의 음악 아이디어에 JPEG, PNG, WebP 이미지를 최대 5장 제공합니다. 장당 한도는 10MB입니다. Mini 참조는 lyrics를 비우고 instrumental을 끈 뒤 generate_lyrics를 켜서 사용합니다. Mini 추가 요금은 없습니다.
persona_modelstring선택Mini에 보낼 페르소나 종류를 선택합니다. style_persona는 스타일, voice_persona는 목소리이며 persona_id와 함께 사용합니다. Mini 세부 제어는 직접 가사나 instrumental 모드에서 사용합니다. Mini 추가 요금은 없습니다.
"style_persona""voice_persona"persona_idstring선택Mini 초안에서 저장된 Suno 페르소나를 재사용하는 ID입니다. persona_model과 함께 보내며 새 페르소나를 만들지는 않습니다. Mini 세부 제어는 직접 가사나 instrumental 모드에서 사용합니다. Mini 추가 요금은 없습니다.
varietyinteger선택Mini 스타일 설명의 변화량을 정수 0~4로 지정합니다. 기본값은 1이며 0이 원래 태그를 유지한다는 Suno 설명은 별도로 검증하지 않았습니다. Mini 세부 제어는 직접 가사나 instrumental 모드에서 사용합니다. Mini 추가 요금은 없습니다.
audio_weightnumber선택Mini 보컬 초안에서 페르소나 음성의 영향력을 0~1, 간격 0.01로 설정합니다. 보컬 없는 곡에는 지원하지 않습니다. Mini 세부 제어는 직접 가사나 instrumental 모드에서 사용합니다. Mini 추가 요금은 없습니다.
weirdnessnumber선택Mini 초안의 실험성을 조절합니다. 0은 관습적, 1은 모험적이며 0.01 단위로 설정합니다. Mini 세부 제어는 직접 가사나 instrumental 모드에서 사용합니다. Mini 추가 요금은 없습니다.
style_weightnumber선택Mini 초안이 스타일 설명을 따르는 강도를 정합니다. 0~1 범위에서 0.01씩 조절합니다. Mini 세부 제어는 직접 가사나 instrumental 모드에서 사용합니다. Mini 추가 요금은 없습니다.
vocal_genderstring선택Mini 리드 보컬을 female 또는 male 쪽으로 유도합니다. 선호를 전달할 뿐이며 반영률은 측정하지 않았습니다. Mini 세부 제어는 직접 가사나 instrumental 모드에서 사용합니다. Mini 추가 요금은 없습니다.
"female""male"negative_promptstring선택Mini 초안에서 빼고 싶은 소리를 선택적으로 나열합니다. 왜곡이나 말하는 창법 등의 제외 목록을 500자 이내로 적습니다. Mini 추가 요금은 없습니다.
titlestring선택Mini 초안에 최대 80자의 이름을 붙이는 선택 항목입니다. 자동 가사 모드에서는 모델이 제목도 정합니다. Mini 세부 제어는 직접 가사나 instrumental 모드에서 사용합니다. Mini 추가 요금은 없습니다.
instrumentalboolean선택Mini로 보컬 없는 반주 초안을 만들 때 켭니다. 기본값은 false이며 켜면 prompt에 1,000자 이내의 스타일을 적습니다. Mini 추가 요금은 없습니다.
generate_lyricsboolean선택기본값 true에서는 lyrics가 비어 있고 instrumental이 꺼졌을 때 Mini가 작사합니다. 직접 보낸 가사가 우선합니다. Mini 추가 요금은 없습니다.
lyricsstring선택Mini가 부를 가사를 5,000자까지 입력합니다. 구간 태그는 별도 줄에 쓰고 다시 부를 후렴은 가사에도 반복합니다. Mini 추가 요금은 없습니다.
{
"additionalProperties": false,
"properties": {
"audio_weight": {
"description": "How strongly a persona's audio shapes the result, from 0 to 1. Songs with vocals only.",
"maximum": 1,
"minimum": 0,
"multipleOf": 0.01,
"type": "number",
"x-ui": {
"advanced": true,
"order": 43,
"step": 0.01,
"widget": "slider"
}
},
"generate_lyrics": {
"default": true,
"description": "Let the model write the lyrics from the prompt. Only applies when lyrics is empty and instrumental is off.",
"type": "boolean",
"x-ui": {
"advanced": false,
"order": 80,
"widget": "switch"
}
},
"image_urls": {
"description": "Up to 5 mood images (JPEG, PNG or WebP, 10 MB each). Only when the model writes the lyrics.",
"items": {
"contentMediaType": [
"image/jpeg",
"image/png",
"image/webp",
"image/gif"
],
"format": "uri",
"type": "string"
},
"maxItems": 5,
"type": "array",
"x-ui": {
"accept": [
"image/jpeg",
"image/png",
"image/webp"
],
"advanced": true,
"order": 20,
"widget": "multi-upload"
}
},
"instrumental": {
"default": false,
"description": "Generate music with no vocals.",
"type": "boolean",
"x-ui": {
"advanced": false,
"order": 70,
"widget": "switch"
}
},
"lyrics": {
"description": "Words to sing, sung in order. Section tags such as [Verse], [Chorus] and [Bridge] shape the song and are not sung.",
"maxLength": 5000,
"minLength": 1,
"type": "string",
"x-ui": {
"advanced": false,
"order": 90,
"rows": 10,
"widget": "textarea"
}
},
"negative_prompt": {
"description": "Styles or elements to keep out of the song.",
"maxLength": 500,
"minLength": 1,
"type": "string",
"x-ui": {
"advanced": true,
"order": 55,
"rows": 2,
"widget": "textarea"
}
},
"persona_id": {
"description": "ID of an existing Suno persona to reuse its style or voice.",
"maxLength": 200,
"minLength": 1,
"type": "string",
"x-ui": {
"advanced": true,
"order": 30,
"widget": "text"
}
},
"persona_model": {
"description": "Whether persona_id is a style persona or a voice persona.",
"enum": [
"style_persona",
"voice_persona"
],
"type": "string",
"x-ui": {
"advanced": true,
"enum_labels": {
"style_persona": "Style persona",
"voice_persona": "Voice persona"
},
"order": 29,
"widget": "select"
}
},
"prompt": {
"description": "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.",
"maxLength": 3000,
"minLength": 1,
"type": "string",
"x-ui": {
"order": 100,
"primary": true,
"rows": 4,
"widget": "textarea"
}
},
"reference_audio_urls": {
"description": "One reference audio clip (MP3 or WAV, 6 seconds to 30 minutes). Only when the model writes the lyrics.",
"items": {
"contentMediaType": [
"audio/mpeg",
"audio/wav"
],
"format": "uri",
"type": "string"
},
"maxItems": 1,
"type": "array",
"x-ui": {
"accept": [
"audio/mpeg",
"audio/wav"
],
"advanced": true,
"order": 18,
"widget": "multi-upload"
}
},
"reference_video_urls": {
"description": "One reference video (MP4 or WebM, up to 100 MB and 241 seconds). Only when the model writes the lyrics.",
"items": {
"contentMediaType": [
"video/mp4",
"video/webm",
"video/quicktime"
],
"format": "uri",
"type": "string"
},
"maxItems": 1,
"type": "array",
"x-ui": {
"accept": [
"video/mp4",
"video/webm"
],
"advanced": true,
"order": 19,
"widget": "multi-upload"
}
},
"style_weight": {
"description": "How closely to follow the style in the prompt, from 0 to 1.",
"maximum": 1,
"minimum": 0,
"multipleOf": 0.01,
"type": "number",
"x-ui": {
"advanced": true,
"order": 45,
"step": 0.01,
"widget": "slider"
}
},
"title": {
"description": "Song title (metadata, not sung). Applies with lyrics or an instrumental; otherwise the model names the song.",
"maxLength": 80,
"minLength": 1,
"type": "string",
"x-ui": {
"advanced": true,
"order": 60,
"widget": "text"
}
},
"variety": {
"description": "How different the two versions are from each other: 0 off, 1 normal (the model default), 2 high, 3 extra, 4 max.",
"maximum": 4,
"minimum": 0,
"type": "integer",
"x-ui": {
"advanced": true,
"order": 42,
"step": 1,
"widget": "slider"
}
},
"vocal_gender": {
"description": "Make a female or male lead vocal more likely. Applies with lyrics.",
"enum": [
"female",
"male"
],
"type": "string",
"x-ui": {
"advanced": true,
"enum_labels": {
"female": "Female",
"male": "Male"
},
"order": 50,
"widget": "select"
}
},
"weirdness": {
"description": "How experimental the song may get, from 0 (conventional) to 1 (unusual).",
"maximum": 1,
"minimum": 0,
"multipleOf": 0.01,
"type": "number",
"x-ui": {
"advanced": true,
"order": 44,
"step": 0.01,
"widget": "slider"
}
}
},
"required": [
"prompt"
],
"type": "object",
"x-pricing": {
"billingMode": "per_unit",
"variantFields": []
}
}HTTP 202는 접수되었다는 뜻이며 생성 완료가 아닙니다. 반환된 taskId를 저장하고 같은 작업을 조회하세요. 결과를 기다리는 동안 작업을 다시 생성하지 마세요.
HTTP/1.1 202 Accepted
Location: /api/v1/jobs/recordInfo?taskId=job_01k3m8x9q2z4v7n5p6r8s0t1w3
{
"code": 200,
"msg": "success",
"request_id": "req_example_create",
"data": {
"taskId": "job_01k3m8x9q2z4v7n5p6r8s0t1w3",
"state": "queued",
"estimatedCost": "0.750000"
}
}접수 응답에 이번 예상 비용이 포함되므로 앱의 작업 기록과 청구 화면에 같은 금액을 표시할 수 있습니다.
curl --get "https://api.spicyapi.ai/api/v1/jobs/recordInfo" \
--data-urlencode "taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"약 2초 간격으로 시작해서 점점 간격을 넓히세요. 종료 상태가 나오면 멈추고, 연결이 끊겼더라도 원래 taskId를 그대로 조회하세요. 다시 생성할 때는 처음에 쓴 Idempotency-Key와 본문을 그대로 써야 합니다.
import { verifyWebhook } from "@spicyapi/sdk";
// express.raw keeps the bytes we signed; express.json never matches.
app.post("/hooks/spicy", express.raw({ type: "application/json" }), (req, res) => {
const { payload } = verifyWebhook({
rawBody: req.body,
timestamp: req.header("X-Webhook-Timestamp"),
signature: req.header("X-Webhook-Signature"),
payloadVersion: Number(req.header("X-Webhook-Payload-Version")),
secret: process.env.SPICY_WEBHOOK_SECRET,
});
res.status(200).end();
void handleFinishedTask(payload);
});작업을 만들 때 callBackUrl을 넘기면 완료된 레코드가 POST로 전달됩니다 — 폴링 루프가 아예 필요 없습니다. 모든 전달에는 X-Webhook-Timestamp, X-Webhook-Signature, X-Webhook-Payload-Version이 함께 옵니다. 서명은 taskId.timestamp.sha256(body)에 대한 base64 HMAC-SHA256이므로 반드시 원본 바이트로 검증해야 합니다. JSON을 파싱했다가 다시 직렬화하면 바이트가 달라져 검증이 실패합니다. 실패한 전달은 재시도되므로 같은 taskId가 두 번 올 수 있습니다. 핸들러를 멱등하게 만드세요. 먼저 2xx로 답하고 처리는 그다음에 — 응답이 느리면 전달 실패로 간주됩니다.
state가 succeeded일 때만 output을 사용하세요. 실패 시 errorCode, errorMessage, request_id로 원인을 확인하세요. 예시 비용과 상태는 실제 청구 내역이 아닙니다.
{
"code": 200,
"msg": "success",
"request_id": "req_example_record",
"data": {
"taskId": "job_01k3m8x9q2z4v7n5p6r8s0t1w3",
"model": "suno/v6-mini/text-to-audio",
"state": "succeeded",
"output": {
"assets": [
{
"key": "tasks/2026/08/28/job_01k3m8x9q2z4v7n5p6r8s0t1w3/3f7a1c9e5b2d48f0a6c1e3d5b7f9a1c3.mp3",
"mime": "audio/mpeg",
"url": "https://example.r2.cloudflarestorage.com/results/job_01k3m8x9q2z4v7n5p6r8s0t1w3/result.mp3?X-Amz-Signature=SIGNATURE_FROM_RESPONSE",
"expiresAt": "2026-08-28T12:20:08.000Z"
}
]
},
"cost": "0.750000",
"settled": true,
"createdAt": "2026-08-28T12:00:00Z",
"completedAt": "2026-08-28T12:00:30Z"
}
}사용 가능한 파일은 assets[].url에서 바로 열거나 다운로드할 수 있으며 API Authorization 헤더가 필요하지 않습니다. 서명 URL은 expiresAt에 만료됩니다. 보관 기간 내에 작업을 다시 조회하면 URL이 갱신됩니다. 처리 중이거나 사용할 수 없는 파일에는 URL이 없습니다. 서명 URL은 비공개로 보관하세요.
앱, 터미널, AI 어시스턴트 또는 시각적 워크플로에서 SpicyAPI를 사용하세요. 원하는 설정 가이드를 선택하세요.
위 코드를 직접 쓸 필요는 없습니다. MCP 서버를 한 번만 연결해 두면 MCP를 지원하는 에이전트(Claude Code, Codex, Cursor, Windsurf, VS Code, Gemini CLI, Cline, LibreChat)가 이 모델을 이름으로 호출합니다. 셸에서 명령 한 줄로 실행할 수도 있습니다.
suno/v6-mini/text-to-audio로 네온 아래 선 댄서의 인물 사진을 만들어서 ./out/에 저장해 줘.
에이전트가 공개 카탈로그에서 모델을 찾고, 로컬 파일을 대신 업로드한 뒤, 정확한 견적과 최대 청구액을 보여 주고 확인을 기다립니다. 승인하기 전에는 요금이 발생하지 않습니다.
claude mcp add spicyapi -e SPICY_API_KEY=$SPICY_API_KEY \
-- npx --yes --package=@spicyapi/mcp spicyapi-mcp
npx skills add spicyapi-ai/spicy-skill첫 줄은 도구를, 둘째 줄은 Skill을 넘겨줍니다. Skill은 그 도구를 다루는 규칙입니다 — 청구 전에 견적을 받고, 로컬 파일은 바이트를 붙여 넣는 대신 업로드하고, 완성된 산출물 URL을 추측하지 않고 읽습니다. 다른 클라이언트도 각자의 설정 파일로 같은 서버를 사용합니다. 개발자 페이지를 참고하세요.
npx @spicyapi/cli tasks create --model suno/v6-mini/text-to-audio \
--input-json '{"prompt":"Calm ambient pads with a slow rising motif"}' \
--wait입력값은 위 예시와 마찬가지로 이 엔드포인트의 스키마에서 생성했습니다. --wait는 작업이 끝날 때까지 폴링해 결과를 출력하고, CI에서는 --yes로 확인 절차를 건너뜁니다. 먼저 SPICY_API_KEY를 설정하세요. API와 CLI, MCP 서버가 같은 키를 씁니다.
npx @spicyapi/cli tasks create --model suno/v6-mini/text-to-audio \
--input-json '{…}' --retention 1h --wait
npx @spicyapi/cli tasks get $TASK_ID # read back the retention that applied--retention은 보관 기간을 줄이기만 합니다 — 30m, 1h, 7d, 또는 0이면 작업이 종료 상태에 도달하는 즉시 삭제됩니다. 실제로 적용되는 값은 요청과 계정 설정, 플랫폼 상한 중 가장 짧은 값이므로 요청한 숫자가 그대로 반영됐다고 가정하지 말고 작업 레코드에서 다시 읽으세요. 계정이 허용하는 것보다 긴 값을 넘기면 아무 일도 일어나지 않습니다.
ComfyUI Manager나 아래 명령으로 SpicyAPI 노드를 설치한 뒤 캔버스에서 Suno v6 Mini · Text to Music를 검색하세요. 노드는 이 페이지와 같은 옵션을 제공하며, 실행하기 전에 가격을 보여 줍니다.
cd ComfyUI/custom_nodes
git clone https://github.com/spicyapi-ai/comfyui-spicyapi삽입된 패널은 이 페이지와 같은 스키마를 참조하므로 API 사양과 어긋나지 않습니다. 문서 검색 대상에 포함하려면 /api/embed/models/의 JSON을 받아 직접 렌더링하세요.
<iframe src="https://spicyapi.ai/embed/ko/models/suno-v6-mini/api?model=suno%2Fv6-mini%2Ftext-to-audio" width="100%" height="560" loading="lazy" title="요청 예시" style="border:1px solid rgba(0,0,0,.12)"></iframe>