feat(video): forward Token360 video options#5
Merged
1bcMax merged 1 commit intoMay 17, 2026
Conversation
Adds 6 optional fields to VideoGenerateOptions that the gateway can forward to Token360 / Seedance: - aspectRatio: 16:9 / 9:16 / 1:1 / etc. - resolution: 360p — 4K - generateAudio: explicit on/off (gateway only sends when caller provides) - seed: reproducibility - watermark: pass through user opt-in - returnLastFrame: enable clip chaining All fields are optional and silently ignored when the underlying model or provider doesn't support them. xAI Grok video calls are unaffected since the gateway filters these out before dispatching. Per Token360 docs: https://www.token360.ai/en-US/docs/api-reference/video-generation/submit-video-generation-request Companion gateway PR wires generate_audio + fixes the seconds→duration field-name bug that was silently dropping all duration overrides. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds 6 optional passthrough fields to
VideoGenerateOptionsso callers can drive new Token360 / Seedance video parameters:aspectRatio— 16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 21:9 / 9:21 / adaptiveresolution— 360p / 480p / 540p / 720p / 1080p / 1K / 2K / 4KgenerateAudio— explicit on/off (omitted = gateway falls back to Token360's default)seed— reproducibilitywatermark— caller opt-inreturnLastFrame— for clip chainingAll fields are optional. Existing callers passing only
model/imageUrl/durationSecondsare unaffected. xAI Grok video calls are unaffected since the companion gateway PR filters Token360-only fields before dispatching.Companion gateway PR also fixes a long-standing bug where
body.secondswas being sent to Token360 instead ofbody.duration— all Seedance calls were silently falling back to the default 5s regardless of caller request.Test plan
model/imageUrl/durationSeconds) compile and run unchangedgenerateAudiois omitted, nogenerate_audiofield appears in the body (Token360 then applies its own default)🤖 Generated with Claude Code