POST
/v2/extend음악 API 확장
끝에 새로운 콘텐츠를 추가하여 기존 음악 트랙을 확장하세요.
POST
https://udioapi.pro/api/v2/extendtips
두 가지 모드: 원래 매개변수를 상속하거나 맞춤 매개변수를 사용합니다.
반환된 workId와 함께 Feed API를 사용하여 진행 상황을 확인하세요.
requestHeaders
| name | required | description |
|---|---|---|
Authorization | yes | 인증을 위한 Bearer 토큰 |
Content-Type | yes | application/json |
requestBody
요청 본문은 상속 모드 또는 사용자 정의 모드를 지원합니다.
상속 모드
원래 트랙 매개변수를 사용하여 확장
noAdditionalParams
사용자 정의 모드
맞춤 매개변수로 확장
| paramName | paramType | required | description | example |
|---|---|---|---|---|
prompt | string | yes | 새로운 가사 또는 설명 | Change the music style to be calm and lyrical. |
style | string | no | 음악 스타일 | lyrical |
title | string | no | 트랙 제목 | lyrical song |
extensionStartTime | number | no | 확장 시작 시간(초) | 150 |
tags | string | no | 추가 태그 | war |
commonParams
| paramName | paramType | required | description | example |
|---|---|---|---|---|
origin_task_id | string | yes | 원본 음악 생성의 작업 ID | gen20e094aeaadfe494ea33a5c80ee596083bksv |
extend_audio_index | number | yes | 첫 번째 오디오의 경우 0, 두 번째 오디오의 경우 1 | 0 |
custom_mode | boolean | no | 상속 모드의 경우 false, 사용자 정의 모드의 경우 true | false |
callback_url | string | no | 실시간 결과를 위한 선택적 웹훅 URL | https://your-domain.com/webhook |
responses
json
{
"code": 200,
"message": "success",
"workId": "ext2e31202d4f629447fa75f603ae2470565bksv"
}codeExamples
curl
curl -X POST "https://udioapi.pro/api/v2/extend" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"origin_task_id": "gen20e094aeaadfe494ea33a5c80ee596083bksv",
"extend_audio_index": 0,
"custom_mode": false
}'