> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Comfy Router로 Seed Audio 1.5 261128 사용하기

> Comfy Router를 통해 byteplus/seed-audio-1-5-261128을 호출합니다. 엔드포인트, 요청 형태 및 Router가 반환하는 응답을 설명합니다.

`byteplus/seed-audio-1-5-261128`에 대한 API 레퍼런스로, Comfy Router가 BytePlus에서 제공합니다.

**입력:** 텍스트, 이미지, 오디오, 비디오 · **출력:** 오디오 + 비디오

## 빠른 시작

[Comfy 워크스페이스](https://platform.comfy.org/profile/api-keys?onboarding=router)에서 키를 생성하고 `COMFY_API_KEY`로 내보내세요. Python과 TypeScript 스니펫은 Comfy SDK(`pip install comfy-sdk`, `npm install @comfyorg/sdk`)를 사용하며, cURL 스니펫은 동일한 호출을 원시 HTTP로 보냅니다.

**모델 ID:** `byteplus/seed-audio-1-5-261128`

**엔드포인트:** `POST https://api.comfy.org/v2/models/byteplus/seed-audio-1-5-261128`

> [tab] 결과를 기다리는 방식
>
> ```python Python theme={null}
> from comfy_sdk import Comfy
>
> # 환경 변수에서 COMFY_API_KEY를 읽습니다.
> # SDK는 멱등성 키를 자동으로 생성하고, 자동 재시도 시 이를 재사용합니다.
> with Comfy() as client:
>     result = client.models.run(
>         "byteplus/seed-audio-1-5-261128",
>         {
>             "content": [
>                 {
>                     "text": "Read with a calm English voice: 'Hello from Comfy Router.'",
>                     "type": "text",
>                 },
>             ],
>             "output_format": "mp3",
>         },
>     )
>
> print(result)
> ```
>
> ```typescript TypeScript theme={null}
> import { comfy } from "@comfyorg/sdk";
>
> // 환경 변수에서 COMFY_API_KEY를 읽습니다.
> // SDK는 멱등성 키를 자동으로 생성하고, 자동 재시도 시 이를 재사용합니다.
> const { data } = await comfy.models.run("byteplus/seed-audio-1-5-261128", {
>   content: [
>     {
>       text: "Read with a calm English voice: 'Hello from Comfy Router.'",
>       type: "text",
>     },
>   ],
>   output_format: "mp3",
> });
>
> console.log(data);
> ```
>
> ```bash cURL theme={null}
> curl https://api.comfy.org/v2/models/byteplus/seed-audio-1-5-261128 \
>   -H "X-API-Key: $COMFY_API_KEY" \
>   -H "Idempotency-Key: $(uuidgen)" \
>   -H "Content-Type: application/json" \
>   -d "{\"content\": [{\"text\":\"Read with a calm English voice: 'Hello from Comfy Router.'\",\"type\":\"text\"}], \"output_format\": \"mp3\"}"
> ```

> [tab] 실행 대기열에 넣고 나중에 수집
>
> 동일한 본문을 `POST https://api.comfy.org/v2/models/byteplus/seed-audio-1-5-261128/requests`로 보냅니다. Router는 실행이 접수되는 즉시 `request_id`와 함께 `201`을 응답하고, 결과는 준비되면 이 프로세스 또는 다른 프로세스에서 수집합니다. [대기 중 전달](https://docs.comfy.org/ko/development/comfy-router/queue.md)에서 상태, 취소, 수집 방법을 단계별로 설명합니다.
>
> ```python Python theme={null}
> import asyncio
> from comfy_sdk import AsyncComfy
>
> # 환경 변수에서 COMFY_API_KEY를 읽습니다.
> # 각 submit() 호출은 자체 Idempotency-Key를 생성하고, 자동 재시도 시 이를 재사용합니다.
> async def main():
>     async with AsyncComfy() as client:
>         handle = await client.models.submit(
>             "byteplus/seed-audio-1-5-261128",
>             {
>                 "content": [
>                     {
>                         "text": "Read with a calm English voice: 'Hello from Comfy Router.'",
>                         "type": "text",
>                     },
>                 ],
>                 "output_format": "mp3",
>             },
>         )
>         print("request_id:", handle.request_id)  # 모델 ID와 함께라면, 다른 프로세스에 필요한 전부입니다
>
>         # 요청이 완료될 때까지 폴링하며, 서버가 지정한 Retry-After만큼 기다립니다.
>         async for update in handle.iter_events():
>             print(update.status, update.queue_position)
>
>         # 공급자의 자체 페이로드이며, models.run()이 반환하는 것과 동일한 값입니다.
>         # 실패했거나 취소된 요청은 여기에서 타입이 지정된 Router 오류를 발생시킵니다.
>         result = await handle.get()
>
>     print(result)
>
> asyncio.run(main())
> ```
>
> ```typescript TypeScript theme={null}
> import { comfy } from "@comfyorg/sdk";
>
> // 환경 변수에서 COMFY_API_KEY를 읽습니다.
> // 각 submit() 호출은 자체 Idempotency-Key를 생성하고, 자동 재시도 시 이를 재사용합니다.
> const handle = await comfy.models.submit("byteplus/seed-audio-1-5-261128", {
>   content: [
>     {
>       text: "Read with a calm English voice: 'Hello from Comfy Router.'",
>       type: "text",
>     },
>   ],
>   output_format: "mp3",
> });
> console.log("requestId:", handle.requestId); // 모델 ID와 함께라면, 다른 프로세스에 필요한 전부입니다
>
> // 요청이 완료될 때까지 폴링하며, 서버가 지정한 Retry-After만큼 기다립니다.
> for await (const update of handle.events()) {
>   console.log(update.status, update.queuePosition);
> }
>
> // models.run()이 반환하는 것과 동일한 결과입니다. 실패했거나 취소된 요청은 여기에서 거부됩니다.
> const result = await handle.get();
>
> console.log(result.data);
> ```
>
> ```bash cURL theme={null}
> # 1. 제출합니다. Router는 request_id, status_url, response_url, cancel_url과 함께 201을 응답합니다.
> curl https://api.comfy.org/v2/models/byteplus/seed-audio-1-5-261128/requests \
>   -H "X-API-Key: $COMFY_API_KEY" \
>   -H "Idempotency-Key: $(uuidgen)" \
>   -H "Content-Type: application/json" \
>   -d "{\"content\": [{\"text\":\"Read with a calm English voice: 'Hello from Comfy Router.'\",\"type\":\"text\"}], \"output_format\": \"mp3\"}"
>
> # 2. status가 COMPLETED가 될 때까지 폴링하며, 각 응답이 지정한 Retry-After 초만큼 기다립니다.
> REQUEST_ID="<request_id from the 201 body>"
> curl -i https://api.comfy.org/v2/models/byteplus/seed-audio-1-5-261128/requests/$REQUEST_ID/status \
>   -H "X-API-Key: $COMFY_API_KEY"
>
> # 3. 수집합니다. 실행 중이면 상태 본문과 함께 202, 완료되면 모델의 원본 출력과 함께 200입니다.
> curl https://api.comfy.org/v2/models/byteplus/seed-audio-1-5-261128/requests/$REQUEST_ID \
>   -H "X-API-Key: $COMFY_API_KEY"
> ```

## 스키마

### 입력

**audio\_config** `object`

**audio\_config.loudness\_rate** `integer`

볼륨. 100은 2배, -50은 0.5배입니다. 기본값 0.

범위: `-50` \~ `100`

**audio\_config.pitch\_rate** `integer`

피치. 기본값 0.

범위: `-12` \~ `12`

**audio\_config.sample\_rate** `integer`

8000, 16000, 24000, 32000, 44100(기본값) 또는 48000. ogg\_opus는 48000만 지원합니다.

**audio\_config.speech\_rate** `integer`

속도. 100은 2배, -50은 0.5배입니다. 기본값 0.

범위: `-50` \~ `100`

**content** `object[]` *required*

입력입니다. 역할이 모드를 결정합니다. 텍스트→오디오: `text` 항목 하나와, 목소리를 지정하려면 역할이 `reference_audio`인 `audio_url` 항목 0\~6개, 또는 역할이 `reference_image`인 `image_url` 항목 하나를 넣습니다(이미지는 오디오나 비디오와 함께 사용할 수 없습니다). 비디오 더빙: `text` 항목, 역할이 `reference_video`인 `video_url` 하나, 그리고 선택적으로 `reference_audio` 항목을 넣습니다. 비디오 번역: 역할이 `dubbing_video`인 `video_url` 하나만 넣고 텍스트는 넣지 않습니다. 스템 분리: `text` 항목과 역할이 `separate_audio`인 `audio_url` 하나를 넣습니다. 서로 다른 모드의 역할을 섞을 수 없습니다.

**content\[].audio\_url** `object`

**content\[].audio\_url.url** `string` *required*

공개 http(s) URL 또는 작은 파일에 한해 base64 데이터 URL입니다. 요청 전체가 64 MB로 제한되므로 용량이 큰 오디오와 비디오는 URL로 보내세요. 참조 오디오는 wav 또는 mp3, 2~~30초, 최대 15 MB이며 모든 클립 합계가 최대 180초입니다. 분리할 오디오는 2~~360초, 최대 90 MB입니다. 비디오는 mp4 또는 mov, 4~~360초, 480p~~1080p이며 오디오 트랙이 있어야 합니다. 이미지는 jpeg, png, webp, bmp, tiff, gif, heic 또는 heif, 한 변 300~~6000 px, 가로세로 비율 0.4~~2.5, 10 MB 미만입니다.

**content\[].image\_url** `object`

**content\[].image\_url.url** `string` *required*

공개 http(s) URL 또는 작은 파일에 한해 base64 데이터 URL입니다. 요청 전체가 64 MB로 제한되므로 용량이 큰 오디오와 비디오는 URL로 보내세요. 참조 오디오는 wav 또는 mp3, 2~~30초, 최대 15 MB이며 모든 클립 합계가 최대 180초입니다. 분리할 오디오는 2~~360초, 최대 90 MB입니다. 비디오는 mp4 또는 mov, 4~~360초, 480p~~1080p이며 오디오 트랙이 있어야 합니다. 이미지는 jpeg, png, webp, bmp, tiff, gif, heic 또는 heif, 한 변 300~~6000 px, 가로세로 비율 0.4~~2.5, 10 MB 미만입니다.

**content\[].role** `string`

reference\_audio, separate\_audio, reference\_video, dubbing\_video 또는 reference\_image.

**content\[].text** `string`

프롬프트입니다. 말할 전체 대사, 목소리, 감정, 속도, 그리고 음악이나 효과음을 지정하세요. 비디오 번역에는 텍스트를 넣지 않습니다.

**content\[].type** `string` *required*

text, audio\_url 또는 video\_url.

**content\[].video\_url** `object`

**content\[].video\_url.url** `string` *required*

공개 http(s) URL 또는 작은 파일에 한해 base64 데이터 URL입니다. 요청 전체가 64 MB로 제한되므로 용량이 큰 오디오와 비디오는 URL로 보내세요. 참조 오디오는 wav 또는 mp3, 2~~30초, 최대 15 MB이며 모든 클립 합계가 최대 180초입니다. 분리할 오디오는 2~~360초, 최대 90 MB입니다. 비디오는 mp4 또는 mov, 4~~360초, 480p~~1080p이며 오디오 트랙이 있어야 합니다. 이미지는 jpeg, png, webp, bmp, tiff, gif, heic 또는 heif, 한 변 300~~6000 px, 가로세로 비율 0.4~~2.5, 10 MB 미만입니다.

**dubbing\_config** `object`

비디오 번역(역할 dubbing\_video)을 위한 설정입니다.

**dubbing\_config.custom\_subtitle** `object`

기계 번역을 건너뛰고 이 파일을 기준으로 더빙할 대상 언어의 UTF-8 SRT 파일입니다. 각 세그먼트는 최대 15초입니다. 용어집과 함께 사용할 수 없습니다.

**dubbing\_config.custom\_subtitle.format** `string` *required*

srt

**dubbing\_config.custom\_subtitle.url** `string` *required*

**dubbing\_config.dialogue\_enhancement** `string`

off(기본값), low, medium 또는 high.

**dubbing\_config.glossaries** `object[]`

고정 번역입니다. custom\_subtitle과 함께 사용할 수 없습니다.

**dubbing\_config.glossaries\[].source** `string` *required*

**dubbing\_config.glossaries\[].target** `string` *required*

**dubbing\_config.source\_language** `string`

zh 또는 en. 생략하면 언어를 자동 감지합니다.

**dubbing\_config.target\_language** `string`

비디오 번역 시 필수입니다. zh, en, ja, ko, de, fr, pt-BR, th, id, vi, ms, fil, it, ru, nl, pl, tr, sv, es-ES, es-MX, ar, pt-PT, fi, da, no, cs, hu, el, ro 또는 hi 중 하나입니다.

**include** `string[]`

추가 비디오 번역 출력: video\_url, subtitles.srt, subtitles.jsonl, subtitles\_source.srt, subtitles\_source.jsonl.

**model** `string`

모델 식별자입니다. 지원 모델: seed-audio-1-5-261128. POST /proxy/byteplus/api/v3/contents/generations를 직접 호출할 때는 반드시 지정해야 합니다. Comfy Router는 `{model}` 경로 세그먼트에서 이 값을 채웁니다.

**output\_format** `string`

출력 오디오 형식: wav(기본값), mp3, pcm 또는 ogg\_opus.

Router가 `GET /v2/models/byteplus/seed-audio-1-5-261128/openapi.json`에서 제공하는 스키마에서 생성되었으며, 이는 요청이 공급자에 도달하기 이전에 호출을 검증할 때 사용하는 것과 동일한 문서입니다.

### 출력

**audio\_config** `object`

**audio\_config.sample\_rate** `integer`

**content** `object`

**content.audios** `object[]`

**content.audios\[].description** `string`

**content.audios\[].type** `string`

스템 분리의 경우 스템 종류(speaker, sfx 또는 bgm)입니다.

**content.audios\[].url** `string`

다운로드 URL이며 24시간 동안 유효합니다.

**content.subtitles** `object[]`

**content.subtitles\[].format** `string`

**content.subtitles\[].url** `string`

**content.video\_url** `string`

요청에 video\_url이 포함된 경우 더빙된 비디오입니다.

**created** `integer`

형식: `int64`

**dubbing\_config** `object`

**id** `string`

**model** `string`

**output\_format** `string`

**subtitle** `boolean`

**usage** `object`

**usage.duration\_ms** `integer`

BytePlus의 사용 시간(밀리초)입니다. 텍스트를 오디오로 변환할 때 반환된 오디오보다 길 수 있습니다. Comfy는 이 값에 대해 과금하지 않습니다.

형식: `int64`

**usage.final\_duration\_ms** `integer`

반환된 오디오의 길이(밀리초)입니다. 스템 분리의 경우 입력 길이에 스템 수를 곱한 값입니다. Comfy는 이 값에 대해 과금합니다.

형식: `int64`

## 예제

### 입력

```json theme={null}
{
  "content": [
    {
      "text": "Read with a calm English voice: 'Hello from Comfy Router.'",
      "type": "text"
    }
  ],
  "output_format": "mp3"
}
```

### 출력

```json theme={null}
{
  "content": {
    "audios": [
      {
        "url": "https://example.invalid/byteplus/seed-audio-1-5/generated.mp3"
      }
    ]
  },
  "created": 1795664082,
  "id": "0217956640827568823a6d9d4020aa2a",
  "model": "seed-audio-1-5-261128",
  "output_format": "mp3",
  "usage": {
    "duration_ms": 2000,
    "final_duration_ms": 1910
  }
}
```

## 배포 전 확인

SDK는 `Idempotency-Key`를 생성하고 자동 재시도에 재사용합니다. 수동으로 재시도할 때는 원본 키를 재사용하세요. Router는 연결을 최대 10분간 유지할 수 있습니다.

요청이 실패하면 Router는 그 이유를 설명하는 `X-Comfy-Error-Type` 응답 헤더를 보냅니다. `422`는 Router가 공급자를 호출하기 전에 입력을 거부했음을 의미하고, `413`은 요청 본문이 Router가 허용하는 크기보다 컸음을 의미합니다. [결과 URL이 만료](https://docs.comfy.org/ko/development/comfy-router/reference.md#결과-에셋)될 수 있으므로 생성된 에셋은 즉시 다운로드하세요.

위의 필드 설명에 명시된 크기 제한은 해당 필드에 대한 공급자 자체의 한도이며, 공급자 사양에서 인용한 것입니다. Router는 전체 요청 본문에 별도의 상한을 적용하며, base64로 인코딩된 미디어도 여기에 포함됩니다. [요청 본문 크기](https://docs.comfy.org/ko/development/comfy-router/limitations.md)를 참고하세요.

이 페이지는 Comfy Router를 통해 호출하는 하나의 파트너 모델을 설명합니다. 동일한 `comfy-sdk` / `@comfyorg/sdk` 패키지에는 Comfy Cloud에서 전체 ComfyUI 워크플로 그래프를 실행하기 위한 두 번째 클라이언트도 포함되어 있습니다: `Comfy(api_key=...)` / `new Comfy({ apiKey })`, 그리고 `client.workflows`, `client.assets`, `client.jobs`가 있습니다. [Comfy SDKs](https://docs.comfy.org/ko/development/api-development/sdks.md)를 참조하세요.

> [card] [헤더](https://docs.comfy.org/ko/development/comfy-router/headers.md)
>
> 인증, 멱등성, 요청 ID, 오류 분류, 재시도 간격, 지출 한도.

> [card] [Router API 사용](https://docs.comfy.org/ko/development/comfy-router/api.md)
>
> 모델 검색, 검증 오류, 재시도, 과금.

> [card] [제한 사항](https://docs.comfy.org/ko/development/comfy-router/limitations.md)
>
> Router가 현재 지원하지 않는 기능과 대신 사용할 방법.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.