{"openapi":"3.0.2","info":{"title":"byteplus/seed-audio-1.0-multilingual","description":"The request body Comfy Router accepts for the model \"byteplus/seed-audio-1.0-multilingual\", and the response body it returns. The INPUT schema is the same schema the server validates a call against before it reaches the provider, so what is published and what is enforced cannot differ. `x-comfy-router-input-modalities` records the media kinds the model is documented to accept; the request schema is shared across sibling models and may admit media kinds this model ignores. The OUTPUT schema describes the provider's native result document exactly as Router returns it: Router does not validate, narrow or re-envelope the response, so the output schema is descriptive rather than enforced, and Comfy owns no output shape of its own.","version":"184f50e37c01"},"paths":{"/v2/models/byteplus/seed-audio-1.0-multilingual":{"post":{"operationId":"runRouterModel","summary":"Run byteplus/seed-audio-1.0-multilingual synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for a BytePlus Seed Audio 1.0 generation. The `example` below is the COMFY ROUTER form and deliberately omits `model`, which Router fills from the `{model}` path segment; a direct v1 call to POST /proxy/byteplus/api/v3/tts/create must add `model` to it. One example cannot serve both surfaces — this component is the Router input schema for BOTH seed-audio-1.0 spellings, so an example naming either one is refused by the other model's route for naming a different model, while the omitting form is valid on both.","example":{"audio_config":{"format":"wav","sample_rate":24000},"text_prompt":"Hello from Comfy Router."},"properties":{"audio_config":{"$ref":"#/components/schemas/BytePlusTTSAudioConfig"},"model":{"description":"Model identifier. Supported models: seed-audio-1.0 and seed-audio-1.0-multilingual. A direct v1 call to POST /proxy/byteplus/api/v3/tts/create MUST supply it — the proxy refuses any other value, and an omitted one, with a 400. It is NOT in this schema's `required` list because Comfy Router fills it from the `{model}` path segment of /v2/models/byteplus/{model}, so a Router caller omits it.","nullable":true,"type":"string"},"references":{"description":"Reference resources. Omit for text-only generation. Up to 3 audio references (each up to 30 seconds and 10 MB decoded; wav, mp3, pcm or ogg_opus) or exactly 1 image reference (up to 10 MB decoded; jpeg, png or webp). Image references cannot be mixed with audio references. Those ceilings are BytePlus's and are stated in DECODED bytes: base64 inflates an asset by about 4/3, and a Comfy Router call is capped at 100 MiB for the whole JSON document, so an inline `audio_data`/`image_data` reference sent to /v2/models/byteplus/{model} may carry roughly 75 MB decoded before the transport limit refuses it. BytePlus's own 10 MB per-reference ceiling is therefore what binds first for any single inlined reference, and three audio references at that ceiling now fit in one body; use `audio_url`/`image_url` to keep large assets out of the request entirely.\n","items":{"$ref":"#/components/schemas/BytePlusTTSReference"},"maxItems":3,"type":"array"},"text_prompt":{"description":"Prompt or text to synthesize (1 to 3,000 characters; an empty string is refused). When audio references are provided, reference them by order using @Audio1, @Audio2 and @Audio3.\n","maxLength":3000,"minLength":1,"type":"string"},"watermark":{"$ref":"#/components/schemas/BytePlusTTSWatermark"}},"required":["text_prompt"],"type":"object"}}}},"responses":{"200":{"description":"OK - the model's native JSON output, returned unchanged; the schema describes the provider's terminal result document as Router returns it.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/BytePlusTTSCreateResponse"}],"description":"Comfy Router output schema for the BytePlus Seed Audio 1.0 text-to-speech models: BytePlus's own generation response, forwarded unchanged. The operation is direct-return (`routerresult/classification.go` classifies `byteplus /api/v3/tts/create` as ReturnModeDirect), so the body a caller receives is this finished document from the one call rather than a task handle: the operation registers no task checker and declares no status route.\nThe generated audio arrives at one of two leaves and a caller selects by which key is present: inline base64 bytes at `audio`, or a temporary download URL at `url` which BytePlus expires after two hours. Router does not re-host the audio: the BytePlus re-host is the video task query only, so `url` stays BytePlus's own two-hour link and `audio` is inline. The example below populates BOTH, to document each leaf's shape rather than to claim a response carries both. A 2xx carrying NEITHER leaf is reachable: BytePlus reports a non-generating outcome in `code` and `message` on this same body, and Router forwards it unchanged, so a caller that switches on the two asset keys needs that third branch. `subtitle` is present only when the request set `audio_config.enable_subtitle`.\n`duration` and `original_duration` are BytePlus's own accounting in seconds — BytePlus's numbers, not the Comfy charge — and `original_duration`, rounded up to a whole second, is what the call meters on. Its 120-second ceiling is BytePlus's own limit on a single request, reported by them rather than re-clamped by Comfy: read it as their documented cap, not as a bound Comfy enforces on the value it meters.\n`code` and `message` are deliberately absent from the EXAMPLE: this schema does not enumerate BytePlus's status codes (it points at their error-code document instead), so a literal here would be an unverified claim on a page Comfy publishes.","example":{"audio":"PGJhc2U2ND4=","duration":1.2,"original_duration":1.2,"url":"https://example.invalid/byteplus/seed-audio/generated.wav"}}}}}}}}},"components":{"schemas":{"BytePlusTTSAudioConfig":{"description":"Output audio configuration.","properties":{"enable_subtitle":{"description":"Whether to enable the subtitle service. When enabled, the response includes utterance- and word-level timestamps (default: false).\n","type":"boolean"},"format":{"description":"Output audio format: wav (default), mp3, pcm or ogg_opus.","enum":["wav","mp3","pcm","ogg_opus"],"type":"string"},"loudness_rate":{"description":"-50 to 100; 100 means 2.0x volume, -50 means 0.5x volume (default: 0).","maximum":100,"minimum":-50,"type":"integer"},"pitch_rate":{"description":"-12 to 12 (default: 0).","maximum":12,"minimum":-12,"type":"integer"},"sample_rate":{"description":"Output sample rate: 8000, 16000, 24000 (default), 32000, 44100 or 48000.","enum":[8000,16000,24000,32000,44100,48000],"type":"integer"},"speech_rate":{"description":"-50 to 100; 100 means 2.0x speed, -50 means 0.5x speed (default: 0).","maximum":100,"minimum":-50,"type":"integer"}},"type":"object"},"BytePlusTTSCreateResponse":{"description":"Response body for a BytePlus Seed Audio 1.0 generation.","properties":{"audio":{"description":"Generated audio data, Base64-encoded.","type":"string"},"code":{"description":"Status code. Refer to the official error-code document for details.","type":"integer"},"duration":{"description":"Duration after speed or post-processing, in seconds.","format":"double","type":"number"},"message":{"description":"Status details.","type":"string"},"original_duration":{"description":"Original model output duration in seconds. Used for billing and capped at 120 seconds.","format":"double","type":"number"},"subtitle":{"$ref":"#/components/schemas/BytePlusTTSSubtitle"},"url":{"description":"Temporary audio URL, valid for 2 hours.","type":"string"}},"type":"object"},"BytePlusTTSReference":{"description":"A single reference resource. For an audio reference, provide exactly one of speaker, audio_data or audio_url. For an image reference, provide exactly one of image_data or image_url.\n","properties":{"audio_data":{"description":"Base64-encoded reference audio.","type":"string"},"audio_url":{"description":"URL of a remote reference audio file.","type":"string"},"image_data":{"description":"Base64-encoded reference image.","type":"string"},"image_url":{"description":"URL of a remote reference image.","type":"string"},"speaker":{"description":"Voice ID. Can be a supported Doubao TTS voice or a voice-clone voice ID.","type":"string"}},"type":"object"},"BytePlusTTSSubtitle":{"description":"Subtitle information for the audio. Present only when audio_config.enable_subtitle is set to true in the request.\n","properties":{"sentences":{"description":"Utterance-level subtitle information.","items":{"$ref":"#/components/schemas/BytePlusTTSSubtitleSegment"},"type":"array"},"text":{"description":"Subtitle text corresponding to the audio.","type":"string"},"words":{"description":"Word-level subtitle information.","items":{"$ref":"#/components/schemas/BytePlusTTSSubtitleSegment"},"type":"array"}},"type":"object"},"BytePlusTTSSubtitleSegment":{"description":"A single subtitle segment with timestamps.","properties":{"end_time":{"description":"Segment end time, in milliseconds from the beginning of the audio.","type":"integer"},"start_time":{"description":"Segment start time, in milliseconds from the beginning of the audio.","type":"integer"},"text":{"description":"The complete text of the segment.","type":"string"}},"type":"object"},"BytePlusTTSWatermark":{"description":"Watermark configuration object. An empty object is accepted.","properties":{"aigc_metadata":{"description":"Implicit watermark. Adds metadata to the synthesized audio header.","properties":{"content_producer":{"description":"Name or code of the synthesis service provider.","type":"string"},"content_propagator":{"description":"Name or code of the content distribution service provider.","type":"string"},"enable":{"description":"Whether to enable the implicit watermark (default: false).","type":"boolean"},"produce_id":{"description":"Content production ID.","type":"string"},"propagate_id":{"description":"Content distribution ID.","type":"string"}},"type":"object"},"aigc_watermark":{"description":"Explicit watermark switch. Adds an audio rhythm marker at the end of the synthesized audio (default: false).\n","type":"boolean"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"byteplus/seed-audio-1.0-multilingual","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text"],"x-comfy-router-output-modalities":["audio"]}
