Suno API
계획됨
구성된 경우 Suno 호환 제출 및 조회 경로를 사용합니다.
POST /suno/submit/{action}
Suno 음악 또는 가사 작업을 제출합니다. 예제는 선택된 최신 모델 문서 예제인 suno_music을 사용하며 Suno 제출 DTO의 모든 필드를 포함합니다.
Suno 제출
curl https://www.token168.cc/suno/submit/music \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN168_API_KEY" \
-d '{
"gpt_description_prompt": "Upbeat synthwave intro",
"prompt": "Instrumental synthwave track with a bright chorus",
"mv": "chirp-v5.5",
"title": "Neon API",
"tags": "synthwave, upbeat",
"continue_at": 0,
"task_id": "",
"continue_clip_id": "",
"make_instrumental": true
}'
POST /suno/fetch
JSON 본문으로 Suno 작업 상태를 조회합니다.
Suno 조회
curl https://www.token168.cc/suno/fetch \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN168_API_KEY" \
-d '{
"task_id": "suno_task_123"
}'
GET /suno/fetch/{id}
경로의 작업 ID로 Suno 작업 상태를 조회합니다.
ID로 Suno 조회
curl https://www.token168.cc/suno/fetch/suno_task_123 \
-H "Authorization: Bearer $TOKEN168_API_KEY"