curl --request POST \
--url https://api.evolink.ai/v1/audios/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "doubao-seed-audio-1-0",
"prompt": "오디오 생성 서비스에 오신 것을 환영합니다. 오늘 날씨가 참 좋네요.",
"format": "mp3"
}
'{
"created": 1775200000,
"id": "task-unified-1775200000-abcd1234",
"model": "doubao-seed-audio-1-0",
"object": "audio.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 15,
"audio_type": "audio_generation"
},
"type": "audio",
"usage": {
"credits_reserved": 9.6
}
}{
"error": {
"code": "missing_text",
"message": "필수 파라미터 누락: prompt",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "유효하지 않거나 만료된 토큰",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "할당량이 부족합니다. 계정을 충전해 주세요.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "토큰에 모델 접근 권한이 없음: doubao-seed-audio-1-0",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "요청이 너무 많습니다. 잠시 후 다시 시도해 주세요",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "서버 내부 오류",
"type": "api_error"
}
}Seed Audio 1.0
Seed-Audio 1.0 오디오 생성
- 세 가지 모드의 멀티모달 오디오 생성: 텍스트→오디오, 참조 오디오(음성 복제), 참조 이미지
- 요청당 최대
120초의 오디오 - 비동기 모드 — 반환된 작업 ID로 결과 조회
- 생성된 오디오 링크는 7일 동안 유효하므로 즉시 저장하시기 바랍니다
- 드물게 생성 결과가 공식 원본 링크로 제공되며, 유효 기간이 7일보다 짧을 수 있습니다. 필요한 결과는 즉시 다운로드해 보관하세요.
POST
/
v1
/
audios
/
generations
curl --request POST \
--url https://api.evolink.ai/v1/audios/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "doubao-seed-audio-1-0",
"prompt": "오디오 생성 서비스에 오신 것을 환영합니다. 오늘 날씨가 참 좋네요.",
"format": "mp3"
}
'{
"created": 1775200000,
"id": "task-unified-1775200000-abcd1234",
"model": "doubao-seed-audio-1-0",
"object": "audio.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 15,
"audio_type": "audio_generation"
},
"type": "audio",
"usage": {
"credits_reserved": 9.6
}
}{
"error": {
"code": "missing_text",
"message": "필수 파라미터 누락: prompt",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "유효하지 않거나 만료된 토큰",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "할당량이 부족합니다. 계정을 충전해 주세요.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "토큰에 모델 접근 권한이 없음: doubao-seed-audio-1-0",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "요청이 너무 많습니다. 잠시 후 다시 시도해 주세요",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "서버 내부 오류",
"type": "api_error"
}
}인증
##모든 엔드포인트는 Bearer Token 인증이 필요합니다##
API Key 발급:
API Key 관리 페이지를 방문하여 API Key를 발급받으세요
요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY
본문
application/json
오디오로 합성할 프롬프트 또는 텍스트
세 가지 생성 모드(전달된 참조 리소스에 따라 자동 감지됨):
- 텍스트→오디오:
prompt만 전달하여 프롬프트에서 직접 오디오 생성 - 참조 오디오(음성 복제):
audio_references와 함께 사용; 리터럴 마커@오디오N로 N번째 항목 참조(배열 순서대로1부터 번호 매김) - 참조 이미지:
image_urls와 함께 사용;prompt에는 합성할 텍스트만 입력
오디오 참조(
audio_references)와 이미지 참조(image_urls)는 상호 배타적이며, 요청당 하나만 사용할 수 있습니다.
제약 사항:
- 최대
1500자
Maximum string length:
1500예시:
"오디오 생성 서비스에 오신 것을 환영합니다. 오늘 날씨가 참 좋네요."
참조 리소스 목록. 각 항목은 음성 ID 또는 참조 오디오 URL일 수 있으며, 동일한 배열 안에서 두 유형을 혼합할 수 있습니다
- 음성 ID: 프리셋 음성의
voice_type— 전체 목록은 Seed-Audio 1.0 음성 목록 참고 - 오디오 URL: 음성 복제용 참조 오디오 클립 업로드
image_urls와 상호 배타적: 참조 오디오와 참조 이미지는 둘 중 하나만 선택할 수 있으며, 하나의 요청에서 함께 보낼 수 없습니다prompt에서 리터럴 마커@오디오N로 N번째 항목 참조(배열 순서대로1부터 번호 매김)- 생략 시 모델이
prompt를 기반으로 자유롭게 음성을 생성합니다
수량 제한:
- 배열 전체 최대
3개 항목(음성 ID와 오디오 URL 합산)
오디오 URL 제약 사항:
- 각 참조 클립 ≤
30초 및 ≤10 MB - 포맷:
wav/mp3/pcm/ogg_opus
Maximum array length:
3예시:
["zh_female_vv_uranus_bigtts"]
작업 완료 시 호출되는 HTTPS 콜백 URL
호출 시점:
- 작업이 완료, 실패 또는 취소될 때 트리거됨
- 정산 완료 후 전송됨
보안 제한:
- HTTPS만 지원
- 내부 IP 주소로의 콜백은 금지됨(127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x 등)
- URL 길이는
2048자를 초과할 수 없음
콜백 메커니즘:
- 타임아웃:
10초 - 실패 시 최대
3회 재시도(각 실패 후1/2/4초) - 콜백 본문은 작업 조회 응답과 동일한 포맷
- 2xx 응답은 성공으로 처리; 다른 상태 코드는 재시도를 트리거
예시:
"https://your-domain.com/webhooks/audio-completed"
응답
오디오 생성 작업이 정상적으로 생성됨