Create a video (streaming)
Same request body as POST /v1/videos, but the response body IS the live fragmented-MP4 (fMP4) byte stream — frames arrive as they are generated, so playback can start before the clip is complete. The video id rides back in the X-Video-Id header; the full MP4 is stored too, so a later GET /v1/videos/{video_id}/content works.
Authorizations
Your Boson API key, sent as Authorization: Bearer $BOSON_API_KEY.
Body
Provide a ref_image plus exactly one driving input: input (audio-to-video) or input_tts (text-to-video).
Reference image (the face to animate): an http(s) URL, data URI, or base64-encoded raw image bytes. Supported formats: PNG, JPEG, WEBP. Inline (base64 / data-URI) payloads: max 10 MB.
Avatar model ID / public alias.
higgs-avatar Audio-to-video: the driving speech audio as an http(s) URL, data URI, or base64-encoded raw audio bytes. Supported formats: AAC, WAV, MP3, FLAC, OPUS. Max duration: 60 s (it sets the output video length). Provide exactly one of input / input_tts.
Text-to-video: a speech request (the same body as POST /v1/audio/speech). The gateway synthesizes the voice and the avatar lip-syncs to it. The nested stream field is not supported. Provide exactly one of input / input_tts.
Output video size (WxH): square 640x640, landscape 640x480, or portrait 480x640.
640x640, 640x480, 480x640 Response
The fragmented-MP4 (fMP4) byte stream.
The response is of type file.