{"openapi":"3.0.2","info":{"title":"heygen/starfish","description":"The request body Comfy Router accepts for the model \"heygen/starfish\", 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":"4c0ceb6eff5b"},"paths":{"/v2/models/heygen/starfish":{"post":{"operationId":"runRouterModel","summary":"Run heygen/starfish synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request body for HeyGen v3 text-to-speech generation","example":{"text":"Hello from Comfy. This voice is generated with the HeyGen Starfish engine.","voice_id":"d2f4f24783d04e22ab49ee8fdc3715e0"},"properties":{"input_type":{"description":"Type of the input: 'text' for plain text, 'ssml' for SSML markup. Defaults to 'text'","type":"string"},"language":{"description":"Base language code (e.g. 'en'). Auto-detected from text when omitted","type":"string"},"locale":{"description":"BCP-47 locale tag (e.g. 'en-US'). When set, language is inferred from locale","type":"string"},"speed":{"description":"Speed multiplier (0.5-2.0)","format":"double","maximum":2,"minimum":0.5,"type":"number"},"text":{"description":"Text to synthesize (1-5000 characters)","maxLength":5000,"minLength":1,"type":"string"},"voice_id":{"description":"Voice ID to use. The voice must support the starfish engine","type":"string"}},"required":["text","voice_id"],"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/HeyGenSpeechResponse"},{"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/HeyGenSpeechData"},{"required":["audio_url"],"type":"object"}]}},"required":["data"],"type":"object"}],"description":"Comfy Router output schema for HeyGen's `starfish` text-to-speech voice model: the `POST /proxy/heygen/v3/voices/speech` response, forwarded unchanged. Unlike HeyGen's video operations this one is SYNCHRONOUS — it enrols no task and Router never polls it — so the first response is the finished generation.\nThe generated AUDIO is at `data.audio_url`. This id generates audio and not video: its three avatar/video siblings on the same provider are not enrolled in the Comfy Router catalog. Comfy Router requires that URL — a `200` carrying no `data.audio_url` is answered as a Comfy Router error rather than with this document — so through Router the field is always present. Fetch it; nothing is inlined.\n`data.duration` is the audio's length in seconds and is what HeyGen bills the call by. It is deliberately NOT required: HeyGen forwards a success carrying audio and no duration, and Comfy Router serves that body rather than denying the caller a result they legitimately got. `data.request_id` identifies this generation to HeyGen, and `data.word_timestamps` carries word-level timing data for the spoken text when HeyGen returns it.","example":{"data":{"audio_url":"https://example.invalid/heygen/starfish/speech.mp3","duration":12.5,"request_id":"018f2c7a-4b1e-7c3d-9a05-6e2f8b41d0c9"}}}}}}}}}},"components":{"schemas":{"HeyGenSpeechData":{"description":"Payload of a successful HeyGen text-to-speech response","properties":{"audio_url":{"description":"URL of the generated audio file","type":"string"},"duration":{"description":"Duration of the audio in seconds","format":"double","type":"number"},"request_id":{"description":"Unique identifier for this generation request","type":"string"},"word_timestamps":{"description":"Word-level timing data","items":{"$ref":"#/components/schemas/HeyGenWordTimestamp"},"type":"array"}},"type":"object"},"HeyGenSpeechResponse":{"description":"Response envelope for HeyGen text-to-speech","properties":{"data":{"$ref":"#/components/schemas/HeyGenSpeechData"}},"type":"object"},"HeyGenWordTimestamp":{"description":"Word-level timing data from TTS generation","properties":{"end":{"description":"End time in seconds","format":"double","type":"number"},"start":{"description":"Start time in seconds","format":"double","type":"number"},"word":{"description":"The word","type":"string"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"heygen/starfish","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text"],"x-comfy-router-output-modalities":["audio"]}
