Skip to content

feat(video): forward Token360 video options#5

Merged
1bcMax merged 1 commit into
BlockRunAI:mainfrom
KillerQueen-Z:feat/video-token360-passthrough
May 17, 2026
Merged

feat(video): forward Token360 video options#5
1bcMax merged 1 commit into
BlockRunAI:mainfrom
KillerQueen-Z:feat/video-token360-passthrough

Conversation

@KillerQueen-Z
Copy link
Copy Markdown
Contributor

Summary

Adds 6 optional passthrough fields to VideoGenerateOptions so callers can drive new Token360 / Seedance video parameters:

  • aspectRatio — 16:9 / 9:16 / 1:1 / 4:3 / 3:4 / 21:9 / 9:21 / adaptive
  • resolution — 360p / 480p / 540p / 720p / 1080p / 1K / 2K / 4K
  • generateAudio — explicit on/off (omitted = gateway falls back to Token360's default)
  • seed — reproducibility
  • watermark — caller opt-in
  • returnLastFrame — for clip chaining

All fields are optional. Existing callers passing only model / imageUrl / durationSeconds are 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.seconds was being sent to Token360 instead of body.duration — all Seedance calls were silently falling back to the default 5s regardless of caller request.

Test plan

  • Existing callers (passing only model / imageUrl / durationSeconds) compile and run unchanged
  • New fields appear in the POST body when provided
  • When generateAudio is omitted, no generate_audio field appears in the body (Token360 then applies its own default)

🤖 Generated with Claude Code

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>
@1bcMax 1bcMax merged commit 150f8af into BlockRunAI:main May 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant